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 7d4b60c commit 9e0b16cCopy full SHA for 9e0b16c
internal/app/engine/process_botremoved.go
@@ -38,9 +38,13 @@ func (p *BotNumberProcessor) processBotNumber() {
38
func (e *Engine) processBotNumberPerTeam(team state.Team) {
39
40
teamInfo := e.currentState.TeamState[team.String()]
41
+ removalTime := e.gameConfig.YellowCardBotRemovalTime
42
+ if *e.currentState.GameState.Type != state.GameState_RUNNING {
43
+ removalTime = 0
44
+ }
45
newCards := newActiveYellowCards(
46
teamInfo.YellowCards,
- e.gameConfig.YellowCardDuration-e.gameConfig.YellowCardBotRemovalTime,
47
+ e.gameConfig.YellowCardDuration-removalTime,
48
)
49
50
numBots := e.gcState.TrackerStateGc.NumTeamRobots(team)
0 commit comments