View Single Post
06-09-16, 08:36 AM   #1
lieandswell
A Cyclonian
 
lieandswell's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2007
Posts: 45
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.
__________________
1/5 15:55:46.001 UNIT_DIED, 0x0000000000000000, nil, 0x80000000, 0xF130001942161FB7, "Gamon", 0xa28
  Reply With Quote