UnitRangedAttackPower
functionimplementedavailable in: camelot
Returns the ranged attack power of the unit.
function UnitRangedAttackPower( unit: string): (number, number, number)Parameters
| name | type | description |
|---|---|---|
unit | string | Likely only works for "player" and "pet" |
Returns
| # | name | type | description |
|---|---|---|---|
| 1 | attackPower | number | The unit's base ranged attack power (seems to give a positive number even if no ranged weapon equipped) |
| 2 | posBuff | number | The total effect of positive buffs to ranged attack power. |
| 3 | negBuff | number | The total effect of negative buffs to the ranged 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 ↗.