Skip to content

Commit dbdd894

Browse files
authored
Stop attack before changing target if pull takes too long
1 parent 946035f commit dbdd894

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Core/Goals/PullTargetGoal.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ public override void Update()
146146

147147
if (PullDurationMs > MAX_PULL_DURATION)
148148
{
149+
input.PressStopAttack();
149150
input.PressClearTarget();
150151
Log("Pull taking too long. Clear target and face away!");
151152
input.TurnRandomDir(1000);

0 commit comments

Comments
 (0)