diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-08-17 21:20:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-08-17 21:20:59 +0300 |
commit | 4a0c7b37814792f774ba288e28fa63cf12b3244f (patch) | |
tree | 731ee74b549641f97e0e31122ef220ec95e33c47 | |
parent | 04bc4f2b057c99a7b82ab95973180381824c85ab (diff) | |
download | mv-4a0c7b37814792f774ba288e28fa63cf12b3244f.tar.gz mv-4a0c7b37814792f774ba288e28fa63cf12b3244f.tar.bz2 mv-4a0c7b37814792f774ba288e28fa63cf12b3244f.tar.xz mv-4a0c7b37814792f774ba288e28fa63cf12b3244f.zip |
Change attack logic if enabled auto switching knife to bow.
-rw-r--r-- | src/localplayer.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 0dcf7e7c2..5192390bc 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -3464,10 +3464,7 @@ void LocalPlayer::attack2(Being *target, bool keep, bool dontChangeEquipment) if (target && target->getType() != Being::NPC) { mKeepAttacking = true; - if (mAttackWeaponType == 1) - moveToTarget(); - else - moveToTarget(mAttackRange); + moveToTarget(); } } } |