Lore archive · Warcraft Wiki, 2023 dump
API UnitRangedDamage
Last wiki revision 2022-08-07
Returns the ranged attack speed and damage of the unit. speed, lowDmg, hiDmg, posBuff, negBuff, percent = UnitRangedDamage(player)
- unit: : UnitId - The unit to get information from. (Likely only works for and -- unconfirmed)
- speed: - The unit's ranged weapon speed (0 if no ranged weapon equipped).
- lowDmg: - The unit's minimum ranged damage.
- hiDmg: - The unit's maximum ranged damage.
- posBuff: - The unit's positive Bonus on ranged attacks (includes Spelldamage increases)
- negBuff: - The unit's negative Bonus on ranged attacks
- percent: - percentage modifier (usually 1)
local speed, lowDmg, hiDmg = UnitRangedDamage("player"); local avgDmg = (lowDmg + hiDmg) / 2; local avgDps = avgDmg / speed;
Calculates your average damage per second.
Source
https://warcraft.wiki.gg/wiki/API_UnitRangedDamage · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.