Skip to content

Commit 581de74

Browse files
author
Evan
committed
Fixed shootout
1 parent aa6d1f9 commit 581de74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/thunderbots/software/ai/hl/stp/tactic/penalty_kick_tactic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ void PenaltyKickTactic::calculateNextIntent(IntentCoroutine::push_type& yield)
134134

135135
auto [shot_location, extra] = raySegmentIntersection(shot_ray, Segment(field.enemyGoalpostPos(), field.enemyGoalpostNeg()));
136136

137-
if(!evaluate_penalty_shot() && !YEET_SHOOTING) {
137+
if(!evaluate_penalty_shot() && !YEET_SHOOTING && !((robot->getMostRecentTimestamp() - start_of_shoot) > Duration::fromSeconds(7))) {
138138
printf("\nGetting to position");
139139
yield(get_behind_ball_act.updateStateAndGetNextIntent(*robot, behind_ball, robot->orientation(), 0, true, false, AutokickType::NONE));
140140
printf("evaluate shot %d", evaluate_penalty_shot());

0 commit comments

Comments
 (0)