Originally Posted by gamegenius86
Actually Deadly does not always mean boss. I've ran across deadly monsters that do not have the Boss Bar.
Also how would you use IsDecoratedDisplayName() in context to your target?
Imo i would compare something(because there is no API call to get this) against the BossRank Globals. But since there is no way to get this, i have no idea >.<
|
OK, I have found another method:
Lua Code:
for i = 1, MAX_BOSSES do --global constant MAX_BOSSES = 6
local bossTag = "boss" .. i
if DoesUnitExist(bossTag) then
if GetUnitName("reticleover") == GetUnitName(bossTag) then
d("This unit is boss!")
end
end
end
If you do not want to run this check all the time, you can use EVENT_BOSSES_CHANGED. I did not try it, but BossBar (unit frame that is displayed over the compass) is registered for this event.