Originally Posted by myrroddin
If you are checking for a specific boss, or a list of bosses, could you use INSTANCE_ENCOUNTER_ENGAGE_UNIT?
|
I'm not sure if you're suggesting this or asking how, but basically what you would do is on that event make a for loop from 1 to MAX_BOSS_FRAMES, check if UnitGUID('boss'..i) exists, and if it does extract the npc ID and compare it to the one in your list.
I don't think it's necessary to call UnitExists first since you need the GUID anyway and UnitGUID returns nil for an invalid unit ID.