WoW API: SpellCanTargetUnit
← WoW API < SpellCanTargetUnit
Checks if the spell awaiting target selection can be cast on a specified unit.
canTarget = SpellCanTargetUnit(unitId)
ArgumentsEdit
- unitId : UnitId - The unit to check.
ReturnsEdit
- canTarget
- Boolean - Whether the spell can target the given unit.
DetailsEdit
- This will check for range, but not for LOS.