LibResInfo-1.0 provides the following callbacks to notify interested addons when resurrection-related actions or events occur.
LibResInfo_ResCastStarted
Fires when a group member starts casting a resurrection spell on another group member. For Mass Resurrection casts, a separate callback will be fired for each unit who will be ressed.
Arguments:
- targetUnit - string/nil: the unitID of the target of the spell
- targetGUID - string/nil: the GUID of the target of the spell
- casterUnit - string: the unitID of the unit casting the spell
- casterGUID - string: the GUID of the unit casting the spell
- endTime - number: the time -- comparable to GetTime() -- when the spell will finish casting
LibResInfo_ResCastCancelled
Fires when a group member stops casting a resurrection spell on another group member before the cast completes. This may happen if the caster deliberately cancels the spell, or if they are interrupted. For Mass Resurrection casts, a separate callback is fired for each unit who would have been ressed by the cast.
Arguments:
- targetUnit - string/nil: the unitID of the target of the spell
- targetGUID - string/nil: the GUID of the target of the spell
- casterUnit - string: the unitID of the unit casting the spell
- casterGUID - string: the GUID of the unit casting the spell
LibResInfo_ResCastFinished
Fires when a group member successfully finishes casting a resurrection spell on another group member. This callback is always followed by the LibResInfo_ResPending callback. For Mass Resurrection casts, a separate callback is fired for each unit who would have been ressed by the cast.
Arguments:
- targetUnit - string/nil: the unitID of the target of the spell
- targetGUID - string/nil: the GUID of the target of the spell
- casterUnit - string: the unitID of the unit casting the spell
- casterGUID - string: the GUID of the unit casting the spell
LibResInfo_ResPending
Fires when a group member receives a resurrection from another group member. This coincides with the appearance of a popup dialog box on the target's screen asking them to accept or decline the resurrection. This callback is always preceded by the LibResInfo_ResCastFinished callback.
Arguments:
- targetUnit - string/nil: the unitID of the group member who recieved the resurrection
- targetGUID - string/nil: the GUID of the group member who recieved the resurrection
LibResInfo_ResExpired
Fires when the resurrection available to a group member expires. This coincides with the disappearance of the popup dialog box on the target's screen asking them to accept or decline the resurrection. At this point, the resurrection is no longer available.
Also fires when a unit with an available resurrection goes offline or releases their spirit, as either of these actions will cancel the resurrection offer.
Arguments:
- targetUnit - string/nil: the unitID of the group member whose resurrection offer expired
- targetGUID - string/nil: the GUID of the group member whose resurrection offer expired
LibResInfo_ResUsed
Fired when a group member accepts an available resurrection. At this point, the unit is now alive.
Also fires when a unit returns their spirit to their corpse while a spell-sourced resurrection is available.
Arguments:
- targetUnit - string/nil: the unitID of the group member whose resurrection offer expired
- targetGUID - string/nil: the GUID of the group member whose resurrection offer expired
Facts
- Date created
- Aug 23, 2012
- Last updated
- Feb 22, 2013