Originally Posted by mra4nii
Hello,
Is there a method/function to detect if the unit under focus is a boss? I can't find any function in wiki for this and so far the only way i see to do that is to check what textures are used to draw the target health bar borders.
|
Lua Code:
if GetUnitDifficulty("reticleover") == MONSTER_DIFFICULTY_DEADLY then
d("This unit is boss!")
end
All return values:
http://wiki.esoui.com/Globals#UIMonsterDifficulty
Default unit frames uses just 3 return values:
MONSTER_DIFFICULTY_NORMAL
MONSTER_DIFFICULTY_HARD
MONSTER_DIFFICULTY_DEADLY