summaryrefslogtreecommitdiff
path: root/src/spellmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/spellmanager.cpp')
-rw-r--r--src/spellmanager.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/spellmanager.cpp b/src/spellmanager.cpp
index fbf372de7..6dfdd483d 100644
--- a/src/spellmanager.cpp
+++ b/src/spellmanager.cpp
@@ -182,6 +182,14 @@ void SpellManager::invokeSpell(const TextCommand *const spell,
chatWindow->localChatInput(parseCommand(spell->getCommand(), target));
}
+void SpellManager::invokeCommand(const std::string &command,
+ const Being *const target)
+{
+ if (!chatWindow)
+ return;
+ chatWindow->localChatInput(parseCommand(command, target));
+}
+
std::string SpellManager::parseCommand(std::string command,
const Being *const target)
{