Skip to content

Commit 4b641ac

Browse files
committed
[bugfix] Convert new advantage choice event to skipped event
1 parent 89fdfd3 commit 4b641ac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/app/controller/teamConnection.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ func (c *GameController) ProcessTeamRequests(teamName string, request refproto.T
5353
c.outstandingTeamChoice.Event.GameEvent.Details.BotPushedBotSkipped = c.outstandingTeamChoice.Event.GameEvent.Details.BotPushedBot
5454
c.outstandingTeamChoice.Event.GameEvent.Details.BotPushedBot = nil
5555
c.outstandingTeamChoice.Event.GameEvent.Type = GameEventBotPushedBotSkipped
56+
case GameEventAttackerTouchedOpponentInDefenseArea:
57+
c.outstandingTeamChoice.Event.GameEvent.Details.AttackerTouchedOpponentInDefenseAreaSkipped = c.outstandingTeamChoice.Event.GameEvent.Details.AttackerTouchedOpponentInDefenseArea
58+
c.outstandingTeamChoice.Event.GameEvent.Details.AttackerTouchedOpponentInDefenseArea = nil
59+
c.outstandingTeamChoice.Event.GameEvent.Type = GameEventAttackerTouchedOpponentInDefenseAreaSkipped
5660
default:
5761
return errors.Errorf("Unsupported advantage choice game event: %v", c.outstandingTeamChoice.Event.GameEvent.Type)
5862
}

0 commit comments

Comments
 (0)