Join The Fan Lab, a private Fandom research community for users in the US and UK where you will be asked to share your opinions on all things gaming and entertainment! Click here to see if you qualify

UnitIsPlusMob

From Wowpedia
Jump to: navigation, search

Returns whether a mob is elite.

isElite = UnitIsPlusMob("unit")

Arguments

target 
String - unit to check for elite status.

Returns

isElite 
Flag - Indicates if the mob is elite, 1 if it is, nil if it is not.

Example

local isElite = UnitIsPlusMob("target")
 if isElite then
   print("Run away! Run away!")
 else
   CastSpellByName("Pyroblast")
 end