View Single Post
12-20-13, 10:04 PM   #115
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Okay, I've gone ahead and implemented #5, and will commit a new version pending testing. Here's how it will work:

When a unit dies, goes offline, or resurrects while Mass Res is casting, a "LibResInfo_UnitUpdate" callback will be fired. This new callback will not fire for units who (a) resurrected with a res already available, since in that case you will get a ResExpired callback instead; or (b) died or went offline with another single-target res being cast on them, since in that case you will get a ResCancelled callback instead. When using RegisterAllCallbacks, the UnitUpdate callback will only be registered if the includeMassRes arg is set. The arguments will be as follows:
  • targetID - string: the unitID of the unit who died, went offline, or resurrected
  • targetGUID - string: the GUID of the unit who died, went offline, or resurrected
When it fires, you will be able to call LibResInfo:UnitHasIncomingRes to get more details.
__________________
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