v0.13.8

UNIT_COMBAT

eventimplementedavailable in: camelot

Fires when a unit takes damage or heals, or an attack on it is blocked, absorbed or resisted. Blizzard's player and pet frames show it as feedback text on the portrait. · description by wowlua

declarationwowlua
declare event UNIT_COMBAT(unitTarget: string, event: string, flagText: string, amount: number, schoolMask: number)

Payload

#nametypedescription
1unitTargetstringThe unit affected.
2eventstringWhat happened, such as WOUND, BLOCK or IMMUNE.
3flagTextstringExtra detail, such as CRITICAL or GLANCING.
4amountnumberThe amount of damage or healing.
5schoolMasknumberBit mask of the damage schools involved.

Blizzard's documentation marks the event as synchronous.

In wowlua's emulated client

implementedThe emulator fires it on its own, from its units model. what the statuses mean

sources

Name, payload and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (Unit system, camelot 1.60.1). Description: written by wowlua where no documentation describes the entry.