WoW:API UnitIsPlusMob: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
(Initial explanation)
Line 1: Line 1:
{{API/Uncategorized}}
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>
 
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
 
----
__NOTOC__
{{Template:WoW API}}

Revision as of 20:54, 2 February 2006

UnitIsPlusMob("target") will return 1 if it is an elite mob or nothing if it is a normal mob

LoadAddOn - Documentation by Iznobad

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

Template:WoW API