Skip to content

Commit 93b768a

Browse files
committed
[bugfix] Only trigger multiplePlacementFailures once
1 parent 94eba6d commit 93b768a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/app/controller/engine.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ func (e *Engine) CardNumberIncremented(team Team) {
613613
}
614614

615615
func (e *Engine) PlacementFailuresIncremented(team Team) {
616-
if e.State.TeamState[team].BallPlacementFailures >= e.config.MultiplePlacementFailures {
616+
if e.State.TeamState[team].BallPlacementFailures == e.config.MultiplePlacementFailures {
617617
teamProto := team.toProto()
618618
event := GameEvent{Type: GameEventMultiplePlacementFailures,
619619
Details: GameEventDetails{MultiplePlacementFailures: &refproto.GameEvent_MultiplePlacementFailures{ByTeam: &teamProto}}}

0 commit comments

Comments
 (0)