From 844c35c5fca3a6710d69daeb1ba29d005bde1d78 Mon Sep 17 00:00:00 2001 From: SvsGit Date: Fri, 10 Mar 2017 12:18:51 +0300 Subject: [PATCH] Resto Druid Update Added pause while stealthed. Fixed Innervate: Will use it when conditions for Essence of G'Hanir are met and mana is lower then 80% --- Rotations/Druid/Restoration/RestorationSvs.lua | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Rotations/Druid/Restoration/RestorationSvs.lua b/Rotations/Druid/Restoration/RestorationSvs.lua index 78d51d784..6a5315947 100644 --- a/Rotations/Druid/Restoration/RestorationSvs.lua +++ b/Rotations/Druid/Restoration/RestorationSvs.lua @@ -178,9 +178,11 @@ local function runRotation() local inCombat = br.player.inCombat local inInstance = br.player.instance=="party" local inRaid = br.player.instance=="raid" + local stealthed = UnitBuffID("player",5215) ~= nil local lastSpell = lastSpellCast local level = br.player.level local lowestHP = br.friend[1].unit + local mana = br.player.power.mana.percent local mode = br.player.mode local perk = br.player.perk local php = br.player.health @@ -210,7 +212,7 @@ local function runRotation() enemies.yards40 = br.player.enemies(40) if isCastingSpell(spell.healingTouch) and buff.clearcasting.exists() then - RunMacroText("/stopcasting") + SpellStopCasting() end --ChatOverlay("|cff00FF00Abundance stacks: "..buff.abundance.stack().."") @@ -300,9 +302,9 @@ local function runRotation() end end -- Innervate - if isChecked("Essence of G'Hanir") and not isCastingSpell(spell.tranquility) and power < 80 then - if getLowAllies(getValue("Essence of G'Hanir")) >= getValue("Essence of G'Hanir Targets") then - if cast.innervate() then return end + if not isCastingSpell(spell.tranquility) and mana ~= nil then + if getLowAllies(getValue("Essence of G'Hanir")) >= getValue("Essence of G'Hanir Targets") and mana < 80 then + if cast.innervate("player") then return end end end -- Trinkets @@ -583,7 +585,7 @@ local function runRotation() --------------------------------- --- Out Of Combat - Rotations --- --------------------------------- - if not inCombat and not IsMounted() and getBuffRemain("player", 192002 ) < 10 then + if not inCombat and not IsMounted() and not stealthed and getBuffRemain("player", 192002 ) < 10 then actionList_Extras() if isChecked("OOC Healing") then actionList_PreCombat() @@ -592,7 +594,7 @@ local function runRotation() ----------------------------- --- In Combat - Rotations --- ----------------------------- - if inCombat and not IsMounted() and getBuffRemain("player", 192002 ) < 10 then + if inCombat and not IsMounted() and not stealthed and getBuffRemain("player", 192002 ) < 10 then -- Barkskin if isChecked("Barkskin") then if php <= getOptionValue("Barkskin") and inCombat then