UnitAttackPower
functionimplementedavailable in: camelot
Returns the unit's melee attack power and modifiers.
function UnitAttackPower( unit: string): (number, number, number)Parameters
| name | type | description |
|---|---|---|
unit | string | The unit to get information from. (Does not work for "target" - Possibly only "player" and "pet") |
Returns
| # | name | type | description |
|---|---|---|---|
| 1 | attackPower | number | |
| 2 | posBuff | number | The total effect of positive buffs to attack power. |
| 3 | negBuff | number | The total effect of negative buffs to the attack power (a negative number) |
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 ↗.