Altosir@legacy41523576 (talk | contribs) m (Updated the {{wowapi}} tag on the top of the page.) |
Rocc48432@legacy41567919 (talk | contribs) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | {{wowapi}} |
+ | {{wowapi}} __NOTOC__ |
− | <center>'''UnitDamage''' ''-Documentation by [[User:The_ED|The_ED]]-''</center> |
||
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. |
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. |
||
Line 6: | Line 5: | ||
lowDmg, hiDmg, offlowDmg, offhiDmg, posBuff, negBuff, percentmod = UnitDamage("unit"); |
lowDmg, hiDmg, offlowDmg, offhiDmg, posBuff, negBuff, percentmod = UnitDamage("unit"); |
||
+ | == Parameters == |
||
− | ---- |
||
− | + | === Arguments === |
|
⚫ | |||
− | :("unit") |
||
+ | |||
⚫ | |||
⚫ | |||
− | ---- |
||
⚫ | |||
: lowDmg, hiDmg, offlowDmg, offhiDmg, posBuff, negBuff, percentmod |
: lowDmg, hiDmg, offlowDmg, offhiDmg, posBuff, negBuff, percentmod |
||
+ | |||
:;lowDmg : Number - The unit's minimum melee damage. |
:;lowDmg : Number - The unit's minimum melee damage. |
||
:;hiDmg : Number - The unit's maximum melee damage. |
:;hiDmg : Number - The unit's maximum melee damage. |
||
Line 21: | Line 20: | ||
:;posBuff : Number - positive physical Bonus (should be >= 0) |
:;posBuff : Number - positive physical Bonus (should be >= 0) |
||
:;negBuff : Number - negative physical Bonus (should be <= 0) |
:;negBuff : Number - negative physical Bonus (should be <= 0) |
||
− | :;percentmod : Number - percentage modifier (usually 1) |
+ | :;percentmod : Number - percentage modifier (usually 1; 0.9 for warriors in defensive stance) |
− | |||
− | |||
− | ---- |
Revision as of 19:52, 12 March 2007
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
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 "player" and "pet". Possibly for [Beast Lore]'d "target"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)