Skip to content

Commit

Permalink
Merge branch 'wrath' of https://github.com/Hekili/hekili into wrath
Browse files Browse the repository at this point in the history
  • Loading branch information
Hekili committed Oct 10, 2023
2 parents 71d17ce + 8381bc5 commit 07d211e
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions Wrath/Druid.lua
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ spec:RegisterStateExpr("excess_e", function()
local time_to_cap = query_time + (100 - energy.current) / 10
local time_to_end = query_time + ttd
local trinket_active = false
if debuff.rip.up then
if settings.optimize_trinkets and debuff.rip.up then
local awaiting_trinket = false
for entry in pairs(trinket) do
local t_active = false
Expand All @@ -526,7 +526,7 @@ spec:RegisterStateExpr("excess_e", function()
end
end

if (not trinket_active) and combo_points.current == 5 and buff.savage_roar.up and debuff.rip.up and (not bite_before_rip or not settings.ferociousbite_enabled) then
if settings.optimize_finishers and (not trinket_active) and combo_points.current == 5 and buff.savage_roar.up and debuff.rip.up and (not bite_before_rip or not settings.ferociousbite_enabled) then
local roar_end = query_time + buff.savage_roar.remains
local rip_end = query_time + debuff.rip.remains
if min(roar_end, rip_end) < time_to_cap then
Expand Down Expand Up @@ -2947,6 +2947,28 @@ spec:RegisterSetting("optimize_rake", false, {
end
})

spec:RegisterSetting("optimize_trinkets", false, {
type = "toggle",
name = "Optimize Trinkets Enabled",
desc = "When enabled, energy will be pooled for upcoming trinket procs.\n\n"..
"Default: false",
width = "full",
set = function( _, val )
Hekili.DB.profile.specs[ 11 ].settings.optimize_trinkets = val
end
})

spec:RegisterSetting("optimize_finishers", false, {
type = "toggle",
name = "Optimize Finishers Enabled",
desc = "When enabled, energy will be pooled for upcoming finishers when CP=5.\n\n"..
"Default: false",
width = "full",
set = function( _, val )
Hekili.DB.profile.specs[ 11 ].settings.optimize_finishers = val
end
})

spec:RegisterSetting("druid_feral_footer", nil, {
type = "description",
name = "\n\n"
Expand Down

0 comments on commit 07d211e

Please sign in to comment.