diff options
-rw-r--r-- | src/being/localplayer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp index a8ffc6175..8f0f7a4cd 100644 --- a/src/being/localplayer.cpp +++ b/src/being/localplayer.cpp @@ -831,11 +831,11 @@ void LocalPlayer::attack(Being *const target, } #ifdef TMWA_SUPPORT - const int dist_x = target->mX - mX; - const int dist_y = target->mY - mY; - if (Net::getNetworkType() == ServerType::TMWATHENA) { + const int dist_x = target->mX - mX; + const int dist_y = target->mY - mY; + if (abs(dist_y) >= abs(dist_x)) { if (dist_y > 0) |