Fandom

WoWWiki

API UnitDamage

104,998pages on
this wiki
Add New Page
Talk0 Share
WoW API < UnitDamage

Unit damage returns information about your current damage stats. Doesn't seem to return usable values for mobs, NPCs, or other players. The method returns 7 values, only some of which appear to be useful.

lowDmg, hiDmg, offlowDmg, offhiDmg, posBuff, negBuff, percentmod = UnitDamage("unit");

Parameters Edit

Arguments Edit

unit 
String - The unitId to get information for. (Likely only works for "player" and "pet". Possibly for Beast Lore'd "target"s. -- unconfirmed)

Returns Edit

lowDmg, hiDmg, offlowDmg, offhiDmg, posBuff, negBuff, percentmod
lowDmg 
Number - The unit's minimum melee damage.
hiDmg 
Number - The unit's maximum melee damage.
offlowDmg 
Number - The unit's minimum offhand melee damage.
offhiDmg 
Number - The unit's maximum offhand melee damage. (same as above)
posBuff 
Number - positive physical Bonus (should be >= 0)
negBuff 
Number - negative physical Bonus (should be <= 0)
percentmod 
Number - percentage modifier (usually 1; 0.9 for warriors in defensive stance)

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.