File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ def GetPlayerActions(self, state: pb2.State):
44
44
if state .world_model .self .is_goalie :
45
45
actions .append (pb2 .PlayerAction (helios_goalie = pb2 .HeliosGoalie ()))
46
46
elif state .world_model .self .is_kickable :
47
+ # First action has the highest priority
48
+ actions .append (pb2 .PlayerAction (helios_shoot = pb2 .HeliosShoot ()))
47
49
actions .append (pb2 .PlayerAction (helios_offensive_planner = pb2 .HeliosOffensivePlanner (lead_pass = True ,
48
50
direct_pass = True ,
49
51
through_pass = True ,
@@ -55,7 +57,6 @@ def GetPlayerActions(self, state: pb2.State):
55
57
cross = True ,
56
58
server_side_decision = False
57
59
)))
58
- actions .append (pb2 .PlayerAction (helios_shoot = pb2 .HeliosShoot ()))
59
60
else :
60
61
actions .append (pb2 .PlayerAction (helios_basic_move = pb2 .HeliosBasicMove ()))
61
62
else :
You can’t perform that action at this time.
0 commit comments