WoW:API SpellCanTargetUnit: Difference between revisions

m
Move page script moved page API SpellCanTargetUnit to WoW:API SpellCanTargetUnit without leaving a redirect
mNo edit summary
m (Move page script moved page API SpellCanTargetUnit to WoW:API SpellCanTargetUnit without leaving a redirect)
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
SpellCanTargetUnit("unit")
{{wowapi}} __NOTOC__


[[Category:API Functions|SpellCanTargetUnit]]
 
[[Category:API Spell Functions|SpellCanTargetUnit]]
Checks if the spell awaiting target selection can be cast on a specified unit.
canTarget = SpellCanTargetUnit([[UnitId|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.
Anonymous user