We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5b329b commit 8050f23Copy full SHA for 8050f23
1 file changed
internal/app/statemachine/change_switchcolors.go
@@ -9,5 +9,13 @@ func (s *StateMachine) processChangeSwitchColors(newState *state.State) (changes
9
10
// 'FirstKickoffTeam' is bound to the team, not the color, so we have to also switch this
11
*newState.FirstKickoffTeam = newState.FirstKickoffTeam.Opposite()
12
+
13
+ // 'NextCommand' and 'Command' are bound to the team, not the color, so we have to also switch these
14
+ if newState.NextCommand != nil && newState.NextCommand.ForTeam != nil {
15
+ *newState.NextCommand.ForTeam = newState.NextCommand.ForTeam.Opposite()
16
+ }
17
+ if newState.Command != nil && newState.Command.ForTeam != nil {
18
+ *newState.Command.ForTeam = newState.Command.ForTeam.Opposite()
19
20
return
21
}
0 commit comments