In SmartRes2, there is an option (because it could be spammy, it can be turned off) to whisper someone who is casting a duplicate res spell. The question is, how does one find out which are the duplicates? LibResComm-1.0 has a IsUnitBeingRessed API, which could be useful, and it knows the endTime for resses, along with the resser and the targetName.
Bob and Mary cast res spells on Frankthetank, and Mary's will land first; meanwhile, Joe is casting on Timthewizard.
If the option is turned on, then Bob will be whispered that there is a res spell being cast on Frankthetank, but Joe will not get whispered, since he is the only one casting on Timthewizard, and neither will Mary, since her spell lands first on Frankthetank.
The player (who has SmartRes2) should see LibCandybar-3.0 put up three bars: a green one for Mary casting on Frankthetank, a red bar for Bob, and another green bar for Joe.
I figure I can create all three bars, but I am a bit muddled on how to distinguish Bob's cast in this example.
See the logic in HealInc/ResMon.lua -> HealInc:UpdateResColors()
This involves keeping a table of all active resurrections with their endTimes. Then sorting this on the endTime. Then loop through all resurrections. You can then figure out which resurrection is going to land first, and whether there are any duplicates. And take action accordingly.
You need to keep a custom table with endTimes because LibResComm does not safe safe the endTimes and only transmits it on the event.