v0.13.8

UnitDamage

functionimplementedavailable in: camelot

Returns the damage stats for the unit.

signaturewowlua
function UnitDamage(    unit: string): (number, number, number, number, number, number, number)

Parameters

nametypedescription
unitstringLikely only works for "player" and "pet". Possibly for Beast Lore "target".

Returns

#nametypedescription
1minDamagenumberThe unit's minimum melee damage.
2maxDamagenumberThe unit's maximum melee damage.
3offhandMinDamagenumberThe unit's minimum offhand melee damage.
4offhandMaxDamagenumberThe unit's maximum offhand melee damage. (same as above)
5posBuffnumberpositive physical Bonus (should be >= 0)
6negBuffnumbernegative physical Bonus (should be <= 0)
7percentnumberpercentage 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 ↗.