We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbf9e70 commit 4082cfdCopy full SHA for 4082cfd
internal/app/statemachine/placementPos.go
@@ -18,6 +18,12 @@ type BallPlacementPosDeterminer struct {
18
19
// Location determines the ball placement position based on the game event type
20
func (s *BallPlacementPosDeterminer) Location() *geom.Vector2 {
21
+ if *s.State.Stage == state.Referee_PENALTY_SHOOTOUT &&
22
+ s.State.NextCommand != nil && s.State.NextCommand.ForTeam.Known() {
23
+ teamInFavor := *s.State.NextCommand.ForTeam
24
+ return s.penaltyKick(teamInFavor)
25
+ }
26
+
27
switch *s.Event.Type {
28
// Ball out of field events (stopping)
29
case state.GameEvent_BALL_LEFT_FIELD_TOUCH_LINE:
0 commit comments