Wikia

WoWWiki

API UnitIsPlusMob

Talk0
101,697pages on
this wiki
WoW API < UnitIsPlusMob

UnitIsPlusMob("unit") 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("unit")

Parameters Edit

Arguments Edit

target 
String - indicates who to check for elite status.

Returns Edit

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

Usage Edit

local isElite = UnitIsPlusMob("target")
 if isElite then
    -- run away code
 else
    -- cast a nasty spell on the mob
 end

Around Wikia's network

Random Wiki