From faa629fe190cded836416c3e7d461b7f74b4ff25 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 26 Sep 2015 18:49:55 +0300 Subject: Disable differnt heal or magic action on non tmwa servers. --- src/actions/actions.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src') diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp index f77b22ddf..4655c9833 100644 --- a/src/actions/actions.cpp +++ b/src/actions/actions.cpp @@ -82,6 +82,7 @@ #include "net/ipc.h" #ifdef EATHENA_SUPPORT #include "net/mercenaryhandler.h" +#include "net/net.h" #include "net/vendinghandler.h" #endif #include "net/npchandler.h" @@ -486,6 +487,10 @@ impHandler(dropItemInvAll) impHandler(heal) { +#ifdef EATHENA_SUPPORT + if (Net::getNetworkType() != ServerType::TMWATHENA) + return false; +#endif if (actorManager && localPlayer) { std::string args = event.args; @@ -535,6 +540,10 @@ impHandler(heal) impHandler0(healmd) { +#ifdef EATHENA_SUPPORT + if (Net::getNetworkType() != ServerType::TMWATHENA) + return false; +#endif if (actorManager) { const int matk = PlayerInfo::getStatEffective(Attributes::MATK); @@ -564,6 +573,10 @@ impHandler0(healmd) impHandler0(itenplz) { +#ifdef EATHENA_SUPPORT + if (Net::getNetworkType() != ServerType::TMWATHENA) + return false; +#endif if (actorManager) { if (playerHandler && @@ -589,6 +602,10 @@ impHandler0(setHome) impHandler0(magicAttack) { +#ifdef EATHENA_SUPPORT + if (Net::getNetworkType() != ServerType::TMWATHENA) + return false; +#endif if (localPlayer) { localPlayer->magicAttack(); -- cgit v1.2.3-70-g09d2