View Single Post
07-22-13, 04:29 AM   #6
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
Originally Posted by myrroddin View Post
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.
  Reply With Quote