From 3b7ef68c2a87eaf17cc3a68c5fa188cc293c1229 Mon Sep 17 00:00:00 2001 From: Hekili Date: Mon, 2 Oct 2023 11:20:36 -0400 Subject: [PATCH] Take another stab at Fire item_cutoff_active and time_to_combustion variables #2810. --- Dragonflight/MageFire.lua | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Dragonflight/MageFire.lua b/Dragonflight/MageFire.lua index 475aaaabe..188036f5f 100644 --- a/Dragonflight/MageFire.lua +++ b/Dragonflight/MageFire.lua @@ -903,12 +903,6 @@ spec:RegisterVariable( "overpool_fire_blasts", function () return 0 end ) --- # If Combustion is disabled, schedule the first Combustion far after the fight ends. --- actions.precombat+=/variable,name=time_to_combustion,value=fight_remains+100,if=variable.disable_combustion -spec:RegisterVariable( "time_to_combustion", function () - if action.combustion.disabled then return fight_remains + 100 end -end ) - -- # The duration of a Sun King's Blessing Combustion. -- actions.precombat+=/variable,name=skb_duration,value=dbc.effect.1016075.base_value spec:RegisterVariable( "skb_duration", function () @@ -963,7 +957,7 @@ end ) ]] -- actions+=/variable,name=phoenix_pooling,if=active_enemies>=variable.combustion_flamestrike,value=(variable.time_to_combustion= variable.combustion_flamestrike ) - variable.combustion_cast_remains end ) + +-- # If Combustion is disabled, schedule the first Combustion far after the fight ends. +-- actions.precombat+=/variable,name=time_to_combustion,value=fight_remains+100,if=variable.disable_combustion +-- spec:RegisterVariable( "time_to_combustion", function () +-- if action.combustion.disabled then return fight_remains + 100 end +-- end ) + -- actions.combustion_timing+=/variable,use_off_gcd=1,use_while_casting=1,name=time_to_combustion,value=variable.combustion_ready_time -- # Delay Combustion for after Firestarter unless variable.firestarter_combustion is set. @@ -1009,6 +1010,8 @@ end ) -- actions.combustion_timing+=/variable,use_off_gcd=1,use_while_casting=1,name=time_to_combustion,value=variable.combustion_ready_time,if=variable.combustion_ready_time+cooldown.combustion.duration*(1-(0.4+0.2*talent.firestarter)*talent.kindling)<=variable.time_to_combustion|variable.time_to_combustion>fight_remains-20 spec:RegisterVariable( "time_to_combustion", function () + if action.combustion.disabled then return fight_remains + 100 end + local crt = variable.combustion_ready_time local val = crt