diff options
Diffstat (limited to 'src/server/scripts')
| -rw-r--r-- | src/server/scripts/Commands/cs_debug.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/server/scripts/Commands/cs_debug.cpp b/src/server/scripts/Commands/cs_debug.cpp index eca67c1bf8e..eab6cc6993d 100644 --- a/src/server/scripts/Commands/cs_debug.cpp +++ b/src/server/scripts/Commands/cs_debug.cpp @@ -1242,11 +1242,19 @@ public: return true; } - //show animation - static bool HandleDebugAnimCommand(ChatHandler* handler, uint32 emoteId) + // Play emote animation + static bool HandleDebugAnimCommand(ChatHandler* handler, Emote emote) { if (Unit* unit = handler->getSelectedUnit()) - unit->HandleEmoteCommand(static_cast<Emote>(emoteId)); + unit->HandleEmoteCommand(emote); + + try + { + handler->PSendSysMessage("Playing emote %s", EnumUtils::ToConstant(emote)); + } catch (...) + { + handler->PSendSysMessage("Playing unknown emote"); + } return true; } |
