View Single Post
07-23-13, 11:09 AM   #13
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
@Semlar: I was making the suggestion to use the event.
Oh, I was confused because I had already brought it up in my first post.

@Niketa

If you're trying to automatically set the master looter when you get into combat with specific bosses then I would make a table like Phanx had with the npc IDs as the keys so you don't need to loop over the entire table just to see if the boss is in there.

If you're going to use the combat log, make sure to only monitor events that actually put you in combat with the unit, for example SPELL_AURA_APPLIED fires for a lot of spells that don't (like hunter's mark) and should probably be ignored.

You also want to make sure you don't accidentally set the master looter again after the boss has died due to residual effects that could still be going off like void zones or dots.
  Reply With Quote