UnitHasIncomingRes
Returns information about the resurrection available to the specified unit, or the resurrection spell that is currently being cast on the specified unit.
status, endTime, casterUnit, casterGUID = lib:UnitHasIncomingRes(unit)
Arguments
- unit - string: unitID or unitGUID of the unit to query
Returns
- status - string: "PENDING" if the unit has a resurrection waiting to be accepted, or "CASTING" if the unit is the target of at least one casting resurrection spell or if Mass Resurrection is being cast
- endTime - number: the time comparable to GetTime() -- when the unit's available resurrection will expire, or when the first casting resurrection spell targeting the unit will finish
- casterUnit - string: the unitID of the unit casting the resurrection spell that will finish before any other resurrection spells targeting the same unit
- casterGUID - string: the GUID of the unit casting the resurrection spell that will finish before any other resurrection spells targeting the same unit
All returns are nil if the unit does not have a resurrection available and is not the target of any casting resurrection spells.
UnitIsCastingRes
Returns information about the resurrection spell being cast by the specified unit.
endTime, targetUnit, targetGUID, isFirst = lib:UnitIsCastingRes(unit)
Arguments
- unit - string: unitID or unitGUID of the unit to query
Returns
- endTime - number: the time -- comparable to GetTime() -- when the resurrection spell being cast by the unit will finish casting
- targetUnit - string/nil: the unitID of the target of spell being cast by the unit, or nil if the unit is casting Mass Resurrection
- targetGUID - string/nil: the GUID of the target of spell being cast by the unit, or nil if the unit is casting Mass Resurrection
- isFirst - boolean: true if the unit's single-target spell will finish casting before any other resurrection spells targeting the same unit, or if the unit's Mass Resurrection will finish casting before any other Mass Resurrections
All returns are nil if the unit is not casting a resurrection spell.
Facts
- Date created
- Aug 23, 2012
- Last updated
- Feb 21, 2013