Returns whether a unit is currently in combat


See also Unit functions, Combat functions.

Signature:

inCombat = UnitAffectingCombat("unit")

Arguments:

  • unit - A unit to query (string, unitID)

Returns:

  • inCombat - 1 if the unit is currently involved in combat; otherwise nil (1nil)