From 2efa9bea3829fbb63564f9ef3414a5ffaaf9478e Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Wed, 21 May 2014 13:07:20 +0000 Subject: [PATCH] Fix management of shadow_word_death_reset_cooldown_buff. The shadow_word_death_reset_cooldown_buff was never being set due to an improper class check (find-and-replace error) and the wrong information would have been set for the buff start and ending times. git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1474 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- OvaleShadowWordDeath.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OvaleShadowWordDeath.lua b/OvaleShadowWordDeath.lua index 6d44de0..c0b35bf 100644 --- a/OvaleShadowWordDeath.lua +++ b/OvaleShadowWordDeath.lua @@ -58,14 +58,14 @@ function OvaleShadowWordDeath:OnInitialize() end function OvaleShadowWordDeath:OnEnable() - if self_class == "OvaleShadowWordDeath" then + if self_class == "PRIEST" then self_guid = API_UnitGUID("player") self:RegisterMessage("Ovale_SpecializationChanged") end end function OvaleShadowWordDeath:OnDisable() - if self_class == "OvaleShadowWordDeath" then + if self_class == "PRIEST" then self:UnregisterMessage("Ovale_SpecializationChanged") end end @@ -85,8 +85,8 @@ function OvaleShadowWordDeath:COMBAT_LOG_EVENT_UNFILTERED(event, timestamp, cleu local spellId, overkill = arg12, arg16 if SHADOW_WORD_DEATH[spellId] and not (overkill and overkill > 0) then local now = API_GetTime() - self.start = atTime - self.ending = atTime + self.duration + self.start = now + self.ending = now + self.duration self.stacks = 1 OvaleAura:GainedAuraOnGUID(self_guid, self.start, self.spellId, self_guid, "HELPFUL", nil, nil, self.stacks, nil, self.duration, self.ending, nil, self.name, nil, nil, nil) end -- 1.7.9.5