Triggering Lunar Eclipse resets the cooldown of Starfall.
Johnny C. Lam [10-23-13 - 07:20]
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
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
--</private-static-properties>
--<public-static-properties>
@@ -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)