UnitDamage
functionimplementedavailable in: camelot
Returns the damage stats for the unit.
function UnitDamage( unit: string): (number, number, number, number, number, number, number)Parameters
| name | type | description |
|---|---|---|
unit | string | Likely only works for "player" and "pet". Possibly for Beast Lore "target". |
Returns
| # | name | type | description |
|---|---|---|---|
| 1 | minDamage | number | The unit's minimum melee damage. |
| 2 | maxDamage | number | The unit's maximum melee damage. |
| 3 | offhandMinDamage | number | The unit's minimum offhand melee damage. |
| 4 | offhandMaxDamage | number | The unit's maximum offhand melee damage. (same as above) |
| 5 | posBuff | number | positive physical Bonus (should be >= 0) |
| 6 | negBuff | number | negative physical Bonus (should be <= 0) |
| 7 | percent | number | percentage modifier (usually 1; 0.9 for warriors in defensive stance) |
In wowlua's emulated client
implementedwowlua models the system behind it. what the statuses mean
Restrictions
sources
Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (Unit system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.