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

Commit

Permalink
fix: use manual macro in manual will cancel the auto state.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 7, 2023
1 parent 4ad1f99 commit cc65acc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion RotationSolver/Commands/RSCommands_StateSpecialCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,18 @@ private static void UpdateToast()
private static unsafe void DoStateCommandType(StateCommandType stateType) => DoOneCommandType(stateType, EnumTranslations.ToSayout, role =>
{
if (DataCenter.StateType == StateCommandType.Smart
&& stateType == StateCommandType.Smart)
&& stateType == StateCommandType.Smart)
{
Service.Config.TargetingIndex += 1;
Service.Config.TargetingIndex %= Service.Config.TargetingTypes.Count;
}

if (DataCenter.StateType == StateCommandType.Manual
&& stateType == StateCommandType.Manual)
{
stateType = StateCommandType.Cancel;
}

DataCenter.StateType = stateType;

UpdateStateNamePlate();
Expand Down

0 comments on commit cc65acc

Please sign in to comment.