WoW:API SpellCanTargetUnit: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
(Updated to match the current API boilerplate.)
Line 1: Line 1:
{{wowapi}}
{{wowapi}} __NOTOC__
{{Stub/API}}
SpellCanTargetUnit("unit")


This will check for range, but not for LOS.
 
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.

Revision as of 18:35, 25 June 2007

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.