WoW API < SpellCanTargetUnit

Checks if the spell awaiting target selection can be cast on a specified unit.

canTarget = SpellCanTargetUnit(unitId)

Arguments[edit | edit source]

unitId : UnitId - The unit to check.

Returns[edit | edit source]

Boolean - Whether the spell can target the given unit.

Details[edit | edit source]

This will check for range, but not for LOS.
Community content is available under CC-BY-SA unless otherwise noted.