Skip to content

Commit 32cae1d

Browse files
committed
Bug fix
1 parent c16edc7 commit 32cae1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FormularBot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def run(agent):
144144
if stack != 'kickoff':
145145
if stack == 'getting boost' and (not(close and distance_ball_friendly_goal < 2000) and ((distance_ball_friendly_goal > 6000 and agent.me.boost > 20) or (distance_ball_friendly_goal < 6000 and close) or goalie or shooting)):
146146
agent.clear()
147-
if stack == 'going centre' and (shooting or goalie or (close and (agent.me.location.y * side(agent.team < 2500 * side(agent.team)) or agent.me.location.y * side(agent.team > 2500 * side(agent.team)))):
147+
if stack == 'going centre' and (shooting or goalie or (close and (agent.me.location.y * side(agent.team < 2500 * side(agent.team)) or agent.me.location.y * side(agent.team > 2500 * side(agent.team))))):
148148
agent.clear()
149149
elif stack == 'going centre':
150150
if not me_onside:

0 commit comments

Comments
 (0)