From 3945c533f8930093b6101b00827a37d6bbde0fb4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 19 Oct 2011 00:04:40 +0300 Subject: Disable autofix position for move to target archer mode. --- src/localplayer.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/localplayer.cpp b/src/localplayer.cpp index f33a72bb0..58edbfd78 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -3779,8 +3779,11 @@ void LocalPlayer::fixAttackTarget() if (!mMap || !mTarget) return; - if (!getAttackType() || !config.getBoolValue("autofixPos")) + if (getMoveToTargetType() == 7 || !getAttackType() + || !config.getBoolValue("autofixPos")) + { return; + } const Vector &playerPos = getPosition(); Path debugPath = mMap->findPath( -- cgit v1.2.3-60-g2f50