summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/being/localplayer.cpp8
1 files 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())
{