isspellclickpending

Returns if the cursor has a spell requiring a ground click.

isspellclickpending() : boolean
-- alts
IsSpellClickPending() : boolean
spell() : boolean

Example

if isspellclickpending('player', 'target') then
-- Do something
end