Skip to content

Commit

Permalink
Resto Druid Update
Browse files Browse the repository at this point in the history
Added pause while stealthed. Fixed Innervate: Will use it when
conditions for Essence of G'Hanir are met and mana is lower then 80%
  • Loading branch information
SvsGit committed Mar 10, 2017
1 parent 932e1bf commit 844c35c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Rotations/Druid/Restoration/RestorationSvs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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().."")
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand All @@ -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
Expand Down

0 comments on commit 844c35c

Please sign in to comment.