Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Register
Advertisement

Returns true if the unit is in combat.

affectingCombat = UnitAffectingCombat(unit)

Arguments[]

unit
string : UnitId - The unit to check.

Returns[]

affectingCombat
boolean - Returns true if the unit is in combat or has aggro, false otherwise.

Details[]

  • Returns true when initiating combat.
  • Returns true if aggroed, even if enemy doesn't land a blow.
  • For hunters, it returns true shortly after pet enters combat.
  • If using timed spell such as aimed shot, returns true when spell fires (not during charge up).
  • Returns to false on death.
  • Returns false if the unit being checked for aggro is out of range, or in another zone.
  • Returns false if a unit is proximity-aggroed. It wont return true until it either attacks or is attacked.
Advertisement