v0.13.8

UnitRangedAttackPower

functionimplementedavailable in: camelot

Returns the ranged attack power of the unit.

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

Parameters

nametypedescription
unitstringLikely only works for "player" and "pet"

Returns

#nametypedescription
1attackPowernumberThe unit's base ranged attack power (seems to give a positive number even if no ranged weapon equipped)
2posBuffnumberThe total effect of positive buffs to ranged attack power.
3negBuffnumberThe 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 ↗.