Wikia

WoWWiki

Watchlist Recent changes

API UnitClassification

Main Menue



Returns the classification of the specified unit (e.g., "elite" or "worldboss").

classification = UnitClassification(unit);

Arguments Edit

unit 
unitId - the unit to query, e.g. "target"

Returns Edit

classification 
String - the unit's classification: "worldboss", "rareelite", "elite", "rare", "normal" or "trivial"

Example Edit

if ( UnitClassification("target") == "worldboss" ) then
  -- If unit is a world boss show skull regardless of level
  TargetLevelText:Hide();
  TargetHighLevelTexture:Show();
end

Result

If the target is a world boss, then the level isn't shown in the target frame, instead a special high level texture is shown.

Pages on WoWWiki

94,146pages on
this wiki
Advertisement | Your ad here

Latest Photos

Add a Photo
55,612photos on this wiki
See more >

Recent Wiki Activity

See more >

Recent Questions

Around Wikia's network

Random Wiki