Download
(13Kb)
Download
Updated: 07-29-18 04:49 AM
Updated:07-29-18 04:49 AM
Created:08-27-12 07:01 PM
Downloads:3,385
Favorites:5
MD5:

LibResInfo-1.0

Version: 27
by: Phanx [More]

I am no longer developing or maintaining World of Warcraft addons. I haven't played in years, and don't have the time or interest to continue working on addons for a game I don't play anymore. If you are an addon author interested in continuing one of my addons, please see https://phanx.net/addons/. If you are an addon user, sorry, but there won't be any more fixes or updates from me.
Library to provide information about resurrections cast in your group.
LibResInfo detects resurrection spell casts and identifies who they are being cast on, and provides that information to addons through callbacks and API methods. It supports all single- and multi-target class res spells, Soulstone, and engineering gadgets. It is fully embeddable, completely locale-independent, and does not require any other players in your group to have anything installed.

Requires LibStub and CallbackHandler-1.0.
Source Code & IssuesDocumentationEmbedding
If you are the CurseForge/WowAce packager, you can add the following in your .pkgmeta file:

Code:
externals:
    Libs/CallbackHandler-1.0: https://repos.wowace.com/wow/callbackhandler/trunk/CallbackHandler-1.0
    Libs/LibResInfo-1.0: https://repos.curseforge.com/wow/libresinfo
    Libs/LibStub: https://repos.wowace.com/wow/libstub/tags/1.0
Additional Notes

Support for Reincarnation is under consideration, but would require some guesswork, since until you actually see a shaman resurrect themselves, there's no way to tell if the ability is on cooldown or not.

No callbacks are fired for players who die while Mass Resurrection is being cast, but the API will return correct information (that the player has an incoming resurrection) so if it important for your addon, just check the player's status when they die.

No callbacks are fired for players who resurrect themselves by returning to their corpse while Mass Resurrection is the only res casting on them, but the API will (again) return correct information (that the player has no incoming resurrection) so if it important for your addon, just check the player's status when they resurrect.

Limitations

Due to limitations of the WoW API, it is not possible to detect:
  • ...when someone declines a resurrection manually by clicking "Decline" on the dialog box.
  • ...when someone has a wait time before they can accept a resurrection. In this case, the 60-second expiration time will be extended by the amount of time they are forced to wait, but the ResExpired callback will be fired at the 60-second mark since there's no way for LRI to know about the wait time.
  • ...who a player who joins the group while casting a resurrection spell is targeting.
  • ...whether a player who joins the group while dead has a resurrection being cast on them.
  • ...whether a player who joins the group while dead has a resurrection already available.

Lib: ResInfo-1.0
27 (2018-07-29)
Full Changelog Previous releases
  • Bump minor version
  • Update TOC
  • Fix missing parenthesis
  • Update for COMBAT_LOG_EVENT_UNFILTERED event change in WoW 8.0
  • Update for UNIT_SPELLCAST_x event changes in WoW 8.0
  • Alphabetize list of events
  • Add WoW 8.x UnitCastingInfo compat
  • Remove LOD flag
  • Add version info to debug help text
  • Enable debugging only in standalone version
  • Add WoW 8.x UnitAura compat
  • Update wowace external paths


Category Jump: