isspellclickpending
Returns if the cursor has a spell requiring a ground click.
isspellclickpending() : boolean-- altsIsSpellClickPending() : booleanspell() : boolean
Example
if isspellclickpending('player', 'target') then -- Do somethingend