As part of the Unified Community Platform project, your wiki will be migrated to the new platform in the next few weeks. Read more here.

SpellCanTargetUnit

From Wowpedia
Jump to: navigation, search

Checks if the spell awaiting target selection can be cast on a specified 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.