View Single Post
08-05-16, 09:28 PM   #141
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Re: One person casting multiple resurrects -- it's literally not possible to cast two spells at the same time, even two instant-cast spells. Once the first one is done casting, it moves in the pending state instead, where it's tracked by the recipient, not the caster.

I'm going to handle objects (totem, brazier, pylon) differently -- casting the summoning spell (eg. by right clicking the item) will register CLEU and listen for SPELL_SUMMON, which will insert the object's GUID into a new table that maps objectGUID=>casterGUID, and then listen for SPELL_RESURRECT events originating from the object (at which point the resurrection will be handled the same as any other), and UNIT_DIED to clear out the object GUID and unregister CLEU if there's nothing else going on.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote