summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-25 22:09:53 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-25 22:09:53 +0300
commit46f4e5fb5c77d01de334e059b88837f8c7fe1f3e (patch)
tree3d20a6b2902e70caeedde5afcb65d0cb5913e69a /src/net/eathena
parentf8423bd2d31ac4da409cabdc84fa2e3962336103 (diff)
downloadmv-46f4e5fb5c77d01de334e059b88837f8c7fe1f3e.tar.gz
mv-46f4e5fb5c77d01de334e059b88837f8c7fe1f3e.tar.bz2
mv-46f4e5fb5c77d01de334e059b88837f8c7fe1f3e.tar.xz
mv-46f4e5fb5c77d01de334e059b88837f8c7fe1f3e.zip
Add chat command /immortal. Also add it to player context menu.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/adminhandler.cpp5
-rw-r--r--src/net/eathena/adminhandler.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/net/eathena/adminhandler.cpp b/src/net/eathena/adminhandler.cpp
index bf97226b3..8912750f4 100644
--- a/src/net/eathena/adminhandler.cpp
+++ b/src/net/eathena/adminhandler.cpp
@@ -295,4 +295,9 @@ void AdminHandler::disguise(const std::string &name) const
Gm::runCommand("disguise", name);
}
+void AdminHandler::immortal(const std::string &name) const
+{
+ Gm::runCharCommand("monsterignore", name);
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/adminhandler.h b/src/net/eathena/adminhandler.h
index d495f2aad..79ad2143e 100644
--- a/src/net/eathena/adminhandler.h
+++ b/src/net/eathena/adminhandler.h
@@ -126,6 +126,8 @@ class AdminHandler final : public Ea::AdminHandler
void disguise(const std::string &name) const override final;
+ void immortal(const std::string &name) const override final;
+
protected:
static std::string mStatsName;
};