Lore archive · Warcraft Wiki, 2023 dump
API UnitRangedAttackPower
Last wiki revision 2022-07-26
Returns the ranged attack power of the unit. base, posBuff, negBuff = UnitRangedAttackPower(unit)
- unit: : UnitId - Likely only works for and
- base: - The unit's base ranged attack power (seems to give a positive number even if no ranged weapon equipped)
- posBuff: - The total effect of positive buffs to ranged attack power.
- negBuff: - The total effect of negative buffs to the ranged attack power (a negative number)
local base, posBuff, negBuff = UnitRangedAttackPower("player"); local effective = base + posBuff + negBuff; message("Your current ranged attack power: " .. effective);
A message with your current ranged attack power is displayed.
Source
https://warcraft.wiki.gg/wiki/API_UnitRangedAttackPower · 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.