@@ -12,9 +12,6 @@ func (e *Engine) BallPlacementPos() *Location {
12
12
if event == nil {
13
13
return nil
14
14
}
15
- if event .IsSecondary () || event .IsSkipped () {
16
- return nil
17
- }
18
15
19
16
switch event .Type {
20
17
case GameEventBallLeftFieldTouchLine :
@@ -53,20 +50,14 @@ func (e *Engine) BallPlacementPos() *Location {
53
50
return e .validateProtoLocation (event .Details .BotTippedOver .Location )
54
51
case GameEventBotInterferedPlacement :
55
52
return e .validateLocation (e .State .PlacementPos )
56
- case GameEventBotCrashDrawn :
57
- return e .validateProtoLocation (event .Details .BotCrashDrawn .Location )
58
53
case GameEventBotKickedBallTooFast :
59
54
return e .validateProtoLocation (event .Details .BotKickedBallTooFast .Location )
60
55
case GameEventBotDribbledBallTooFar :
61
56
return e .validateProtoLocation (event .Details .BotDribbledBallTooFar .Start )
62
57
case GameEventBotCrashUnique :
63
58
return e .validateProtoLocation (event .Details .BotCrashUnique .Location )
64
- case GameEventBotCrashUniqueSkipped :
65
- return e .validateProtoLocation (event .Details .BotCrashUniqueSkipped .Location )
66
59
case GameEventBotPushedBot :
67
60
return e .validateProtoLocation (event .Details .BotPushedBot .Location )
68
- case GameEventBotPushedBotSkipped :
69
- return e .validateProtoLocation (event .Details .BotPushedBotSkipped .Location )
70
61
case GameEventBotHeldBallDeliberately :
71
62
return e .validateProtoLocation (event .Details .BotHeldBallDeliberately .Location )
72
63
case GameEventAttackerDoubleTouchedBall :
@@ -97,6 +88,20 @@ func (e *Engine) BallPlacementPos() *Location {
97
88
return e .validateProtoLocation (event .Details .NoProgressInGame .Location )
98
89
case GameEventPlacementFailed :
99
90
return e .validateLocation (e .State .PlacementPos )
91
+ case GameEventBotTooFastInStop ,
92
+ GameEventBotCrashDrawn ,
93
+ GameEventUnsportingBehaviorMinor ,
94
+ GameEventUnsportingBehaviorMajor ,
95
+ GameEventMultipleFouls ,
96
+ GameEventMultiplePlacementFailures ,
97
+ GameEventBotCrashUniqueSkipped ,
98
+ GameEventBotPushedBotSkipped ,
99
+ GameEventAttackerTouchedOpponentInDefenseAreaSkipped ,
100
+ GameEventPlacementSucceeded ,
101
+ GameEventPrepared ,
102
+ GameEventBotSubstitution ,
103
+ GameEventTooManyRobots :
104
+ return nil
100
105
default :
101
106
log .Print ("Warn: Unknown game event: " , event .Type )
102
107
return nil
0 commit comments