diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-01-25 19:37:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-01-25 19:37:34 +0300 |
commit | c3a177ac7e5c5706622349031316839aaed1ede1 (patch) | |
tree | 608ebfc33859364715dc885272900109e938e1ab /src/localplayer.cpp | |
parent | 3dd279181c4eee649dabf57fae9d98dde666489a (diff) | |
download | plus-c3a177ac7e5c5706622349031316839aaed1ede1.tar.gz plus-c3a177ac7e5c5706622349031316839aaed1ede1.tar.bz2 plus-c3a177ac7e5c5706622349031316839aaed1ede1.tar.xz plus-c3a177ac7e5c5706622349031316839aaed1ede1.zip |
Some fixed for evol range attack changes.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 0da291711..3df4a3214 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -1782,7 +1782,7 @@ void LocalPlayer::moveToTarget(unsigned int dist) case 6: case 7: dist = mAttackRange; - if (dist == 1) + if (dist == 1 && serverVersion < 1) dist = 2; default: break; @@ -3716,7 +3716,8 @@ void LocalPlayer::attack2(Being *target, bool keep, bool dontChangeEquipment) changeEquipmentBeforeAttack(target); if ((!target || getAttackType() == 0 || getAttackType() == 3) - || (withinAttackRange(target, true, 1) + || (withinAttackRange(target, serverVersion < 1, + serverVersion < 1 ? 1 : 0) && getPathLength(target) <= getAttackRange2())) { attack(target, keep); |