WoW API: UnitIsPlusMob

Revision as of 04:47, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API UnitIsPlusMob to API UnitIsPlusMob without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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")

ParametersEdit

ArgumentsEdit

target
String - indicates who to check for elite status.

ReturnsEdit

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

UsageEdit

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