We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87a1692 commit 359b80aCopy full SHA for 359b80a
1 file changed
shared/src/main/java/eu/darkbot/shared/utils/SafetyFinder.java
@@ -340,6 +340,9 @@ protected void moveToSafety(SafetyInfo safety) {
340
|| (movement.getDestination().distanceTo(safety) < safety.getRadius() && lastMoveTimer.isActive())) return;
341
342
hero.setRunMode();
343
+ if (attacker.isAttacking() && !(escape == Escaping.SIGHT && stopRunningNoSight.getValue())) {
344
+ attacker.stopAttack();
345
+ }
346
347
double angle = safety.angleTo(hero) + Math.random() * 0.2 - 0.1;
348
movement.moveTo(Location.of(safety, angle, -safety.getRadius() * (0.3 + (0.60 * Math.random())))); // 30%-90% radius
0 commit comments