Okay. I am having problems tracking my Rejuvenation on players and even myself with this custom weak aura. Here is what I have going on:
Type: Custom
Event Type: Event
Event(s): COMBAT_LOG_EVENT_UNFILTERED
Custom Trigger
Code:
function(event, ...)
if event == "COMBAT_LOG_EVENT_UNFILTERED" then
local _, cleuevent, _, sourceGUID, _, _, _, destGUID, destname, _, _, duration, spellid, spellname
if cleuevent == "SPELL_AURA_APPLIED" then
if sourceGUID == UnitGUID("player") and spellid == 774 then
WA_Rejuv_Count = WA_Rejuv_Count + 1
WA_Rejuv_Ticks = WA_Rejuv_Ticks + 6
end
end
if cleuevent == "SPELL_AURA_REMOVED" then
if sourceGUID == UnitGUID("player") and spellid == 774 then
WA_RejuvCount = WA_Rejuv_Count - 1
end
end
if cleuevent == "SPELL_PERIODIC_HEAL" then
if sourceGUID == UnitGUID("player") and spellid == 774 then
WA_Rejuv_Ticks = WA_Rejuv_Ticks - 1
WA_Rejuv_Healing = WA_Rejuv_Ticks * 25000
end
end
end
if WA_Rejuv_Count then
WA_Rejuv_Act = true
return true
end
end
What my intention is is the following... First, I'd like to track the number of active Rejuvenations I have on members of my party. The problem I am having is that this does not even display when I'm in a solo group and cast the ability on myself. There must something wrong in the code that I cannot even get the weak aura to display true.
Secondly (and eventually), I'd like to be able to track the amount of potential healing done by all of my remaining Rejuvenations. I am still trying to teach myself the code and scour through various Ace/MMO-C threads on Google to figure out a way to track this. At first glance it would likely be easy -- total ticks remaining multiplied by some variable of healing. The problem arises if Rejuvenation is removed early or overwritten and potential stacks are lost. This could lead to a false value being returned. I will hopefully have this figured out soon.
Thank you for any help you have with the above!