We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e226d7 commit e4e1beeCopy full SHA for e4e1bee
internal/app/controller/engine.go
@@ -576,6 +576,14 @@ func (e *Engine) processGameEvent(event *GameEvent) error {
576
e.State.TeamState[team].BallPlacementFailures = 0
577
}
578
579
+ if event.Type == GameEventGoal {
580
+ team := event.ByTeam()
581
+ if team.Unknown() {
582
+ return errors.New("Missing team in game event")
583
+ }
584
+ e.State.TeamState[team].Goals++
585
586
+
587
e.State.PlacementPos = e.BallPlacementPos()
588
589
if e.State.GameState() != GameStateHalted && !event.IsSkipped() && !event.IsSecondary() {
0 commit comments