diff --git a/RestoDruid.lua b/RestoDruid.lua index 3ed4213..393586d 100644 --- a/RestoDruid.lua +++ b/RestoDruid.lua @@ -3,8 +3,6 @@ local Tinkr, Bastion = ... local RestoModule = Bastion.Module:New('RestoDruid') local Player = Bastion.UnitManager:Get('player') local Target = Bastion.UnitManager:Get('target') -local lastEfflorescenceCast = 0 - -- Initialize SpellBook local SpellBook = Bastion.SpellBook:New() @@ -89,6 +87,9 @@ local function ShouldUseFlourish() return GetRejuvCount() >= 3 and WildGrowth:GetTimeSinceLastCast() <= 6 end +-- Efflorescence cast tracking +local lastEfflorescenceCast = 0 + -- Default APL DefaultAPL:AddSpell( Efflorescence:CastableIf(function(self) @@ -113,7 +114,7 @@ DefaultAPL:AddSpell( DefaultAPL:AddSpell( Rejuvenation:CastableIf(function(self) return Lowest:Exists() and self:IsKnownAndUsable() and not Player:IsCastingOrChanneling() - and Lowest:GetHP() <= 90 and not Player:GetAuras():FindMy(SoulOfTheForestBuff):IsUp() + and Lowest:GetHP() <= 95 and not Player:GetAuras():FindMy(SoulOfTheForestBuff):IsUp() end):SetTarget(Lowest) ) @@ -128,7 +129,7 @@ DefaultAPL:AddSpell( WildGrowth:CastableIf(function(self) return Player:Exists() and self:IsKnownAndUsable() and not Player:IsCastingOrChanneling() and (Player:GetAuras():FindMy(SoulOfTheForestBuff):IsUp() or - Player:GetPartyHPAround(30, 90) >= 3) + Player:GetPartyHPAround(30, 95) >= 3) and not Player:IsMoving() end):SetTarget(Player) ) @@ -146,7 +147,7 @@ DefaultAPL:AddSpell( DefaultAPL:AddSpell( CenarionWard:CastableIf(function(self) return Tank:Exists() and self:IsKnownAndUsable() and not Player:IsCastingOrChanneling() - and Tank:GetHP() <= 90 + and Tank:GetHP() <= 95 end):SetTarget(Tank) )