wowpedia
Main Menu


Returns true if the first unit can attack the second.

canAttack = UnitCanAttack(unit1, unit2)

Arguments

unit1
string : UnitId
unit2
string : UnitId - The unit to compare with the first unit.

Returns

canAttack
boolean