Returns whether two units are enemies


See also Unit functions.

Signature:

isEnemy = UnitIsEnemy("unit", "unit")

Arguments:

  • unit - A unit (string, unitID)
  • unit - Another unit (string, unitID)

Returns:

  • isEnemy - 1 if the units are enemies; otherwise nil (1nil)