summaryrefslogtreecommitdiff
path: root/src/being/localplayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r--src/being/localplayer.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index a14bd3383..9cf739d74 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -84,6 +84,8 @@
#include "resources/sprite/animatedsprite.h"
+#include "net/net.h"
+
#include "utils/delete2.h"
#include "utils/gettext.h"
#include "utils/timer.h"
@@ -1612,6 +1614,10 @@ void LocalPlayer::specialMove(const unsigned char direction)
void LocalPlayer::magicAttack() const
{
+#ifdef EATHENA_SUPPORT
+ if (Net::getNetworkType() != ServerType::TMWATHENA)
+ return;
+#endif
if (!chatWindow || !isAlive()
|| !playerHandler->canUseMagic())
{