From bd9b37ec020031b43cd58de7d0cfaee296a8faed Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Wed, 27 Nov 2013 14:03:52 +0000 Subject: [PATCH] Reaching an Eclipse state trigger's Nature's Grace. git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1218 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- OvaleEclipse.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/OvaleEclipse.lua b/OvaleEclipse.lua index f6a5388..94a5b84 100644 --- a/OvaleEclipse.lua +++ b/OvaleEclipse.lua @@ -35,6 +35,8 @@ local self_class = select(2, API_UnitClass("player")) local LUNAR_ECLIPSE = ECLIPSE_BAR_LUNAR_BUFF_ID local SOLAR_ECLIPSE = ECLIPSE_BAR_SOLAR_BUFF_ID +-- Nature's Grace: You gain 15% spell haste for 15 seconds each time you trigger an Eclipse. +local NATURES_GRACE = 16886 local CELESTIAL_ALIGNMENT = 112071 local EUPHORIA = 81062 local STARFALL = 48505 @@ -183,13 +185,17 @@ function OvaleEclipse:ApplySpellAfterCast(state, spellId, targetGUID, startCast, if eclipse <= -100 then eclipse = -100 direction = 1 - state:AddAuraToGUID(self_guid, LUNAR_ECLIPSE, self_guid, "HELPFUL", endCast, math.huge) + state:AddAuraToGUID(self_guid, LUNAR_ECLIPSE, self_guid, "HELPFUL", endCast, math.huge, spellcast.snapshot) -- Reaching Lunar Eclipse resets the cooldown of Starfall. state:ResetSpellCooldown(STARFALL, endCast) + -- Reaching Eclipse state grants Nature's Grace. + state:AddAuraToGUID(self_guid, NATURES_GRACE, self_guid, "HELPFUL", endCast, endCast + 15, spellcast.snapshot) elseif eclipse >= 100 then eclipse = 100 direction = -1 - state:AddAuraToGUID(self_guid, SOLAR_ECLIPSE, self_guid, "HELPFUL", endCast, math.huge) + state:AddAuraToGUID(self_guid, SOLAR_ECLIPSE, self_guid, "HELPFUL", endCast, math.huge, spellcast.snapshot) + -- Reaching Eclipse state grants Nature's Grace. + state:AddAuraToGUID(self_guid, NATURES_GRACE, self_guid, "HELPFUL", endCast, endCast + 15, spellcast.snapshot) end end end -- 1.7.9.5