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.