From d8e540625c6de78b0eca0551b20055a754f2a55e Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Wed, 23 Oct 2013 07:20:07 +0000 Subject: [PATCH] Triggering Lunar Eclipse resets the cooldown of Starfall. git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1103 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- OvaleState.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/OvaleState.lua b/OvaleState.lua index 5957ec0..f9b22e7 100644 --- a/OvaleState.lua +++ b/OvaleState.lua @@ -46,6 +46,8 @@ local self_runesCD = {} -- Aura IDs for Eclipse buffs. local LUNAR_ECLIPSE = 48518 local SOLAR_ECLIPSE = 48517 +-- Spell ID for Starfall (Balance specialization spell). +local STARFALL = 48505 -- -- @@ -476,6 +478,13 @@ function OvaleState:ApplySpellCost(spellId, startCast, endCast) if self.state.eclipse <= -100 then self.state.eclipse = -100 AddEclipse(endCast, LUNAR_ECLIPSE) + -- Reaching Lunar Eclipse resets the cooldown of Starfall. + local cd = self:GetCD(STARFALL) + if cd then + cd.start = 0 + cd.duration = 0 + cd.enable = 0 + end elseif self.state.eclipse >= 100 then self.state.eclipse = 100 AddEclipse(endCast, SOLAR_ECLIPSE) -- 1.7.9.5