UnitIsEnemy

From Warcraft Wiki
Jump to navigation Jump to search

Returns true if the specified units are hostile to each other.

isEnemy = UnitIsEnemy(unit1, unit2)

Arguments

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

Returns

isEnemy
boolean