How to detect if mob is boss
What's the best way to tell if a unit is a boss? If you mouseover a friendly faction boss, for example, the tooltip will read "Level ?? (Boss)". I'm having trouble tracking down where that text is coming from. Presumably the "??" is coming from UnitLevel(), but that returns -1 for normal mobs if they're >10 levels higher than you.
|
Lua Code:
|
Quote:
|
Quote:
Edit: It also returns elite for instance bosses. |
comparision for friendly bosses and instance / raid bosses
Lua Code:
|
Quote:
I'm trying to make unit frames that show bosses differently than elites or higher-level mobs. Maybe I could make a big table out of EJ_GetCreatureInfo() and then check unit names against that. Seems a bit expensive, though. |
http://www.wowace.com/addons/libbossids-1-0/
Already been done, although I'm unsure if it'll be updated for Legion |
Quote:
|
All times are GMT -6. The time now is 05:17 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI