v0.13.8

UnitRangedDamage

functionimplementedavailable in: camelot

Returns the ranged attack speed and damage of the unit.

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

Parameters

nametypedescription
unitstringThe unit to get information from. (Likely only works for "player" and "pet" -- unconfirmed)

Returns

#nametypedescription
1speednumberThe unit's ranged weapon speed (0 if no ranged weapon equipped).
2minDamagenumberThe unit's minimum ranged damage.
3maxDamagenumberThe unit's maximum ranged damage.
4posBuffnumberThe unit's positive Bonus on ranged attacks (includes Spelldamage increases)
5negBuffnumberThe unit's negative Bonus on ranged attacks
6percentnumberpercentage modifier (usually 1)

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 ↗.