Click

Clicks the ground at the given position. This is useful for casting spells on the ground.

Click(x, y, z)
-- chainable
cast(spellid, target):click(x,y,z)
cast(spellid, target):atcursor()
cast(spellId, 'none'):clickunit('target')

Example

Casts a pending ground spell at the targets feet.

local pending = IsSpellPending()
if pending == 64 then
local x, y, z = ObjectPosition('target')
Click(x, y, z)
end