WoW:API UnitResistance: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 15: Line 15:
1 - (unknown type)  
1 - (unknown type)  


2 - (unknown type)  
2 - (Fire)


3 - (unknown type)  
3 - (Nature)  


4 - (unknown type)  
4 - (Frost)  


5 - (unknown type)  
5 - (Shadow)
 
6 - (Arcane)  


6 - (unknown type)
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------



Revision as of 14:31, 26 April 2005

Appears to return a value describing the base resistance to physical or magical damage. Does not count additional resistance provided by buffs, etc.


Arguments

"Unit" The unit to be evaluated (appears to only work on "player")

"resistanceIndex" Number defining resistance type.

0 - Armor rating

1 - (unknown type)

2 - (Fire)

3 - (Nature)

4 - (Frost)

5 - (Shadow)

6 - (Arcane)


Example

/script SendChatMessage("My base armor is ".. UnitResistance("player", 0)) end;