Skip to content

Commit

Permalink
Do not suggest rejecting goals when autoApproveGoal option is set
Browse files Browse the repository at this point in the history
  • Loading branch information
g3force committed Nov 21, 2024
1 parent c6f8317 commit d09453e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/app/engine/process_continue_next_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ func (e *Engine) actionsToContinueFromStop() (actions []*ContinueAction, hints [
}

if e.currentState.HasGameEventByTeam(state.GameEvent_POSSIBLE_GOAL, team) &&
!e.currentState.HasGameEventByTeam(state.GameEvent_INVALID_GOAL, team) {
!e.currentState.HasGameEventByTeam(state.GameEvent_INVALID_GOAL, team) &&
!e.gameConfig.AutoApproveGoals {
continueActionRejectGoal := createContinueAction(
ContinueAction_REJECT_GOAL,
team,
Expand Down

0 comments on commit d09453e

Please sign in to comment.