Auto-commit: changes committed

main
Emlembow 5 months ago
parent 3f6bf3ef64
commit daaf678513
  1. 11
      RestoDruid.lua

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

Loading…
Cancel
Save