Commit 9a73ae69 authored by Merathilis's avatar Merathilis

We want the classification:icon tag also on retail. Lazy @Azilroka <3

parent 965d15ea
......@@ -1182,6 +1182,20 @@ ElvUF.Tags.Methods['classificationcolor'] = function(unit)
end
end
ElvUF.Tags.Events['classification:icon'] = 'UNIT_NAME_UPDATE'
ElvUF.Tags.Methods['classification:icon'] = function(unit)
if UnitIsPlayer(unit) then
return
end
local classification = UnitClassification(unit)
if classification == "elite" or classification == "worldboss" then
return CreateAtlasMarkup("nameplates-icon-elite-gold", 32, 32)
elseif classification == "rareelite" or classification == 'rare' then
return CreateAtlasMarkup("nameplates-icon-elite-silver", 32, 32)
end
end
ElvUF.Tags.SharedEvents.PLAYER_GUILD_UPDATE = true
ElvUF.Tags.Events['guild'] = 'UNIT_NAME_UPDATE PLAYER_GUILD_UPDATE'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment