View Single Post
05/03/14, 04:11 AM   #3
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by mra4nii View Post
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:
  1. if GetUnitDifficulty("reticleover") == MONSTER_DIFFICULTY_DEADLY then
  2.    d("This unit is boss!")
  3. 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
  Reply With Quote