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

Commit

Permalink
fix: add reset gcd action in target.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Jul 22, 2023
1 parent 2f24cd0 commit 9638433
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Resources/HostileCastingArea.json
Original file line number Diff line number Diff line change
Expand Up @@ -286,5 +286,6 @@
25344,
1761,
1554,
1384
1384,
8230
]
3 changes: 2 additions & 1 deletion RotationSolver/Updaters/ActionUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ internal static class ActionUpdater
internal static IAction WrongAction { get; set; }
static Random _wrongRandom = new();

internal static void Dispose()
internal static void ClearNextAction()
{
SetAction(0);
WrongAction = NextAction = NextGCDAction = null;
}

internal static void UpdateNextAction()
Expand Down
3 changes: 2 additions & 1 deletion RotationSolver/Updaters/MajorUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ private unsafe static void FrameworkUpdate(Framework framework)
if (!IsValid)
{
TargetUpdater.ClearTarget();
ActionUpdater.ClearNextAction();
return;
}
if ((int)Svc.ClientState.ClientLanguage == 4 && !_showed)
Expand Down Expand Up @@ -175,6 +176,6 @@ public static void Dispose()
PreviewUpdater.Dispose();
ActionSequencerUpdater.SaveFiles();
SocialUpdater.Disable();
ActionUpdater.Dispose();
ActionUpdater.ClearNextAction();
}
}

0 comments on commit 9638433

Please sign in to comment.