View Single Post
Unread 09-02-12, 02:11 AM   #26
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 4,743
Okay. So I need to detect when someone dies during a Mass Res cast, and send a callback indicating that they now have a res being cast on them.

Also, I'm changing the order of returns from the API (both callback and functions) to avoid having icky nil values in the middle of the stack when Mass Res is involved. The new order will always be caster, end time, target. If there's no end time, then just caster, target. If you call LRI:UnitIsCastingRes and there's no target, then it's a Mass Res. I already updated the API doc pages, and will commit the change shortly.

Edit: More questsions for someone with access to Mass Res -- does INCOMING_RESURRECT_CHANGED fire for players who die during a Mass Res cast? Does UnitHasIncomingResurrection return true for them? If you change the debug level in LibResInfo to 2 or higher, you'll get a message in your chat frame when the event fires telling you who it fired for, and whether the API thinks they have an incoming res. You can move the messages to ChatFrame3 or something if you don't want them spamming ChatFrame1.
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!

Last edited by Phanx : 09-02-12 at 02:33 AM.
Phanx is offline   Reply With Quote