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
declare event UNIT_COMBAT(unitTarget: string, event: string, flagText: string, amount: number, schoolMask: number)Payload
| # | name | type | description |
|---|---|---|---|
| 1 | unitTarget | string | The unit affected. |
| 2 | event | string | What happened, such as WOUND, BLOCK or IMMUNE. |
| 3 | flagText | string | Extra detail, such as CRITICAL or GLANCING. |
| 4 | amount | number | The amount of damage or healing. |
| 5 | schoolMask | number | Bit 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.