Skip to content

Commit 6a32746

Browse files
committed
[feature] Only ask for team decision when game is running
1 parent d62fb65 commit 6a32746

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/app/controller/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ func (c *GameController) OnNewEvent(event Event) {
269269

270270
func (c *GameController) askForTeamDecisionIfRequired(event Event) (handled bool) {
271271
handled = false
272-
if c.outstandingTeamChoice == nil {
272+
if c.outstandingTeamChoice == nil && c.Engine.State.GameState() == GameStateRunning {
273273
var byTeamProto refproto.Team
274274
var choiceType refproto.ControllerToTeamRequest_AdvantageChoice_Foul
275275
if event.GameEvent.Details.BotCrashUnique != nil {

0 commit comments

Comments
 (0)