WoW:API UnitIsPlusMob: Difference between revisions
Jump to navigation
Jump to search
LoadAddOn - Documentation by Iznobad
(Initial explanation) |
(upgraded deprecated template) |
||
Line 1: | Line 1: | ||
{{wowapi}} | |||
UnitIsPlusMob("target") will return 1 if it is an elite mob or nothing if it is a normal mob | UnitIsPlusMob("target") will return 1 if it is an elite mob or nothing if it is a normal mob | ||
<center>'''LoadAddOn''' - ''Documentation by Iznobad''</center> | <center>'''LoadAddOn''' - ''Documentation by Iznobad''</center> | ||
Line 22: | Line 23: | ||
---- | ---- | ||
__NOTOC__ | __NOTOC__ | ||
Revision as of 18:13, 6 January 2007
← WoW API < UnitIsPlusMob
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 chekc for elite status. Basically only "target" makes sense, since 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