Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

API UnitClassification

From WoW Classic Wiki

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

local classification = UnitClassification(unit);

Parameters

Arguments

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

Returns

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

Example

 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.