Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API UnitDamage
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{wowapi}} __NOTOC__ 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 == === Arguments === :;unit : String - The [[unitId]] to get information for. (Likely only works for <tt>"player"</tt> and <tt>"pet"</tt>. Possibly for [[Beast Lore]]'d <tt>"target"</tt>s. -- unconfirmed) === Returns === : 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)
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:Wowapi
(
edit
)