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 e3a3c03 commit a9ca468Copy full SHA for a9ca468
internal/app/engine/process_penalty.go
@@ -6,7 +6,8 @@ import (
6
)
7
8
func (e *Engine) processPenalty() {
9
- if *e.currentState.GameState.Type == state.GameState_PENALTY &&
+ if e.IsGameEventEnabled(state.GameEvent_PENALTY_KICK_FAILED) &&
10
+ *e.currentState.GameState.Type == state.GameState_PENALTY &&
11
goDur(e.currentState.CurrentActionTimeRemaining) < 0 {
12
var location *geom.Vector2
13
if e.gcState.TrackerStateGc.Ball != nil {
0 commit comments