Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API UnitRangedAttack

Last wiki revision 2022-07-26

Returns the unit's ranged attack and modifier. base, modifier = UnitRangedAttack(unit)

  • unit: : UnitId - Likely only works for and
  • base: - The unit's base ranged attack number (0 if no ranged weapon is equipped)
  • modifier: - The total effect of all modifiers (positive and negative) to ranged attack.

local base, modifier = UnitRangedAttack("player"); local effective = base + modifier; message(effective);

Displays a message containing your effective ranged attack skill(Weapon Skill).

Source

https://warcraft.wiki.gg/wiki/API_UnitRangedAttack · 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.