From 1604dd8af946e865a5fcf1ddc2e533581892da39 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 24 Feb 2016 20:29:30 +0300 Subject: Add chat command /spawnslave. Also add it to monster context menu. --- src/actions/commands.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/actions/commands.cpp') diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index 7c451c861..d23eb5c12 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -1332,4 +1332,13 @@ impHandler(commandSpawn) return true; } +impHandler(commandSpawnSlave) +{ + const std::string args = event.args; + if (args.empty()) + return false; + adminHandler->spawnSlave(args); + return true; +} + } // namespace Actions -- cgit v1.2.3-60-g2f50