summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2009-05-19 18:00:33 +0100
committerDavid Athay <ko2fan@gmail.com>2009-05-19 18:00:33 +0100
commitd82bc279c910a5ba2fd3764a41e680448c8ba1e8 (patch)
tree2b78d8b8351be71e8eb8f66914c366825bed6468 /src/localplayer.cpp
parente975b11e1885457295a51778d8337b097549228d (diff)
downloadmana-d82bc279c910a5ba2fd3764a41e680448c8ba1e8.tar.gz
mana-d82bc279c910a5ba2fd3764a41e680448c8ba1e8.tar.bz2
mana-d82bc279c910a5ba2fd3764a41e680448c8ba1e8.tar.xz
mana-d82bc279c910a5ba2fd3764a41e680448c8ba1e8.zip
Fixed attacking.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 31b963ab..c9dc771d 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -738,9 +738,11 @@ void LocalPlayer::attack(Being *target, bool keep)
sound.playSfx("sfx/fist-swish.ogg");
}
-#ifdef EATHENA_SUPPORT
+#ifdef TMWSERV_SUPPORT
+ if (mLastAction == STAND)
+#endif
Net::getPlayerHandler()->attack(target->getId());
-
+#ifdef EATHENA_SUPPORT
if (!keep)
stopAttack();
#endif