From ac2db66876990d96ee7ce10c5649bdc3d2fa9124 Mon Sep 17 00:00:00 2001 From: Taurenkey Date: Sun, 15 Oct 2023 14:57:24 +0100 Subject: [PATCH] [PUSH] 3.1.0.3 --- XIVSlothCombo/Combos/JobHelpers/BLM.cs | 24 +++++++++--------------- XIVSlothCombo/XIVSlothCombo.cs | 2 -- XIVSlothCombo/XIVSlothCombo.csproj | 2 +- 3 files changed, 10 insertions(+), 18 deletions(-) diff --git a/XIVSlothCombo/Combos/JobHelpers/BLM.cs b/XIVSlothCombo/Combos/JobHelpers/BLM.cs index 73f39606c..d9b9bede9 100644 --- a/XIVSlothCombo/Combos/JobHelpers/BLM.cs +++ b/XIVSlothCombo/Combos/JobHelpers/BLM.cs @@ -56,7 +56,11 @@ public OpenerState CurrentState { if (value != currentState) { - if (value == OpenerState.PrePull) PrePullStep = 1; + if (value == OpenerState.PrePull) + { + Svc.Log.Debug($"Entered PrePull Opener"); + PrePullStep = 1; + } if (value == OpenerState.InOpener) OpenerStep = 1; if (value == OpenerState.OpenerFinished || value == OpenerState.FailedOpener) { @@ -340,6 +344,7 @@ private void ResetOpener() { PrePullStep = 0; OpenerStep = 0; + CurrentState = OpenerState.PrePull; ActionWatching.CombatActions.Clear(); ActionWatching.LastAction = 0; ActionWatching.LastAbility = 0; @@ -347,14 +352,10 @@ private void ResetOpener() ActionWatching.LastWeaponskill = 0; } - private bool openerEventsSetup = false; - public bool DoFullOpener(ref uint actionID, bool simpleMode) { if (!LevelChecked) return false; - if (!openerEventsSetup) { Service.Condition.ConditionChange += CheckCombatStatus; openerEventsSetup = true; } - if (CurrentState == OpenerState.PrePull || CurrentState == OpenerState.FailedOpener) if (DoPrePullSteps(ref actionID)) return true; @@ -370,17 +371,10 @@ public bool DoFullOpener(ref uint actionID, bool simpleMode) } } - return false; - } + if (!CustomComboFunctions.InCombat() && CurrentState is not OpenerState.PrePull) + ResetOpener(); - private void CheckCombatStatus(ConditionFlag flag, bool value) - { - if (flag == ConditionFlag.InCombat && value == false) ResetOpener(); - } - - internal void Dispose() - { - Service.Condition.ConditionChange -= CheckCombatStatus; + return false; } } diff --git a/XIVSlothCombo/XIVSlothCombo.cs b/XIVSlothCombo/XIVSlothCombo.cs index ab0d8e6a1..014b862af 100644 --- a/XIVSlothCombo/XIVSlothCombo.cs +++ b/XIVSlothCombo/XIVSlothCombo.cs @@ -180,8 +180,6 @@ public void Dispose() private void DisposeOpeners() { - BLM.BLM_ST_SimpleMode.BLMOpener.Dispose(); - BLM.BLM_ST_AdvancedMode.BLMOpener.Dispose(); NIN.NIN_ST_SimpleMode.NINOpener.Dispose(); NIN.NIN_ST_AdvancedMode.NINOpener.Dispose(); } diff --git a/XIVSlothCombo/XIVSlothCombo.csproj b/XIVSlothCombo/XIVSlothCombo.csproj index 987fa69df..98585940b 100644 --- a/XIVSlothCombo/XIVSlothCombo.csproj +++ b/XIVSlothCombo/XIVSlothCombo.csproj @@ -4,7 +4,7 @@ Team Sloth - - 3.1.0.2 + 3.1.0.3 XIVCombo for lazy players Copyleft attick 2021 thanks attick UwU