File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -775,7 +775,11 @@ func (e *Engine) placeBall(event *GameEvent) {
775
775
return
776
776
}
777
777
778
- if e .State .Division == config .DivA && // For division A
778
+ nextCommand , _ , _ := e .CommandForEvent (event )
779
+ if nextCommand == CommandPenalty || nextCommand == CommandKickoff {
780
+ e .SendCommand (CommandHalt , "" )
781
+ e .LogHint ("manualPlacement" , "manual placement required for kickoff and penalty" , teamInFavor )
782
+ } else if e .State .Division == config .DivA && // For division A
779
783
! e .State .TeamState [teamInFavor ].CanPlaceBall && // If team in favor can not place the ball
780
784
e .State .TeamState [teamInFavor .Opposite ()].CanPlaceBall && // If opponent team can place the ball
781
785
event .Type .resultsFromBallLeavingField () {
You can’t perform that action at this time.
0 commit comments