From bb3a85b045a6135f7228023a7ba55fb1c9e6bd90 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 8 Feb 2016 20:48:25 +0300 Subject: Allow attack also if casting animation active. This need because casting animation not always can be stopped by request from server. Some times server not send stop packet by some reason. --- src/being/localplayer.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp index f59af9c10..ef034fc22 100644 --- a/src/being/localplayer.cpp +++ b/src/being/localplayer.cpp @@ -763,9 +763,13 @@ void LocalPlayer::attack(Being *const target, const bool keep, const int dist_x = target->getTileX() - mX; const int dist_y = target->getTileY() - mY; - // Must be standing or sitting to attack - if (mAction != BeingAction::STAND && mAction != BeingAction::SIT) + // Must be standing or sitting or casting to attack + if (mAction != BeingAction::STAND && + mAction != BeingAction::SIT && + mAction != BeingAction::CAST) + { return; + } if (!serverFeatures->haveAttackDirections()) { -- cgit v1.2.3-60-g2f50