Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
[PUSH] 3.1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Taurenkey committed Oct 15, 2023
1 parent 983376d commit ac2db66
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 18 deletions.
24 changes: 9 additions & 15 deletions XIVSlothCombo/Combos/JobHelpers/BLM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -340,21 +344,18 @@ private void ResetOpener()
{
PrePullStep = 0;
OpenerStep = 0;
CurrentState = OpenerState.PrePull;
ActionWatching.CombatActions.Clear();
ActionWatching.LastAction = 0;
ActionWatching.LastAbility = 0;
ActionWatching.LastSpell = 0;
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;

Expand All @@ -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;
}
}

Expand Down
2 changes: 0 additions & 2 deletions XIVSlothCombo/XIVSlothCombo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion XIVSlothCombo/XIVSlothCombo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<PropertyGroup>
<Authors>Team Sloth</Authors>
<Company>-</Company>
<Version>3.1.0.2</Version>
<Version>3.1.0.3</Version>
<!-- This is the version that will be used when pushing to the repo.-->
<Description>XIVCombo for lazy players</Description>
<Copyright>Copyleft attick 2021 thanks attick UwU</Copyright>
Expand Down

0 comments on commit ac2db66

Please sign in to comment.