Skip to content

Commit feb7bcf

Browse files
committed
[feature] Reset placement failure counter on stage change
1 parent 93b768a commit feb7bcf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/app/controller/engine.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,8 @@ func (e *Engine) processStage(s *EventStage) error {
401401

402402
if s.StageOperation == StageNext {
403403
e.updateStage(e.State.Stage.Next())
404+
e.State.TeamState[TeamYellow].BallPlacementFailures = 0
405+
e.State.TeamState[TeamBlue].BallPlacementFailures = 0
404406
} else if s.StageOperation == StagePrevious {
405407
e.updateStage(e.State.Stage.Previous())
406408
} else if s.StageOperation == StageEndGame {

0 commit comments

Comments
 (0)