WoW API: SpellCanTargetUnit

From AddOn Studio
Jump to navigation Jump to search

WoW API < SpellCanTargetUnit


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

canTarget = SpellCanTargetUnit(unitId)


Arguments[edit]

unitId : UnitId - The unit to check.


Returns[edit]

canTarget
Boolean - Whether the spell can target the given unit.


Details[edit]

This will check for range, but not for LOS.