Hobinbot@legacy41545296 (talk | contribs) (upgraded deprecated template) |
FormlessOne (talk | contribs) m (→Arguments) |
||
Line 9: | Line 9: | ||
== Parameters == |
== Parameters == |
||
=== Arguments === |
=== Arguments === |
||
− | :;target : String - indicates who to |
+ | :;target : String - indicates who to check for elite status. Basically, only "target" makes sense, because only mobs can be elite. |
=== Returns === |
=== Returns === |
Revision as of 19:00, 8 October 2007
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
UnitIsPlusMob("target") will return 1 if it is an elite mob or nothing if it is a normal mob
Check whether a mob is elite
isElite = UnitIsPlusMob("target")
Parameters
Arguments
- target
- String - indicates who to check for elite status. Basically, only "target" makes sense, because only mobs can be elite.
Returns
- isElite
- Flag - Indicates if the mob is elite, 1 if it is, nil if it is not.
Usage
local isElite = UnitIsPlusMob("target") if ( isElite ) then -- run away code else -- cast a nasty spell on the mob end