SpellCanTargetUnit

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 1.0.0 / 1.13.2

Returns true if the spell awaiting target selection can be cast on the unit.

canTarget = SpellCanTargetUnit(unitId)

Arguments

unitId
string (UnitId) - The unit to check.

Returns

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

Details

This will check for range, but not for LOS.