Scripts/Commands: Use enum type arg for HandleDebugAnimCommand

Port From (https://github.com/TrinityCore/TrinityCore/commit/ec44c8296d155aab8862987848a87a1a81049c12)
This commit is contained in:
hondacrx
2022-03-03 13:52:48 -05:00
parent 0116a7efa5
commit 1670c09454
+3 -2
View File
@@ -36,12 +36,13 @@ namespace Game.Chat
class DebugCommands class DebugCommands
{ {
[Command("anim", RBACPermissions.CommandDebugAnim)] [Command("anim", RBACPermissions.CommandDebugAnim)]
static bool HandleDebugAnimCommand(CommandHandler handler, uint emoteId) static bool HandleDebugAnimCommand(CommandHandler handler, Emote emote)
{ {
Unit unit = handler.GetSelectedUnit(); Unit unit = handler.GetSelectedUnit();
if (unit) if (unit)
unit.HandleEmoteCommand((Emote)emoteId); unit.HandleEmoteCommand(emote);
handler.SendSysMessage($"Playing emote {emote}");
return true; return true;
} }