diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-07 22:05:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-07 22:05:12 +0300 |
commit | 91e4a003fdcaa21e7d375d3eaf92ea9f6166b841 (patch) | |
tree | 5ab1312bbe541c417df19441d30fab399ac681d3 /src/being | |
parent | 6c077bb84b2b33339100382494163034ec092a0c (diff) | |
download | manaverse-91e4a003fdcaa21e7d375d3eaf92ea9f6166b841.tar.gz manaverse-91e4a003fdcaa21e7d375d3eaf92ea9f6166b841.tar.bz2 manaverse-91e4a003fdcaa21e7d375d3eaf92ea9f6166b841.tar.xz manaverse-91e4a003fdcaa21e7d375d3eaf92ea9f6166b841.zip |
Disable all legacy "magic" commands if server type not tmwa.
Diffstat (limited to 'src/being')
-rw-r--r-- | src/being/localplayer.cpp | 6 |
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()) { |