WoW API: SpellCanTargetUnit

From AddOn Studio
Revision as of 04:47, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API SpellCanTargetUnit to API SpellCanTargetUnit without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

unitId : 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.