From 1670c09454743fb127e82fd0a46f68f868bb9364 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Thu, 3 Mar 2022 13:52:48 -0500 Subject: [PATCH] Scripts/Commands: Use enum type arg for HandleDebugAnimCommand Port From (https://github.com/TrinityCore/TrinityCore/commit/ec44c8296d155aab8862987848a87a1a81049c12) --- Source/Game/Chat/Commands/DebugCommands.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/Game/Chat/Commands/DebugCommands.cs b/Source/Game/Chat/Commands/DebugCommands.cs index 402859ccb..189617752 100644 --- a/Source/Game/Chat/Commands/DebugCommands.cs +++ b/Source/Game/Chat/Commands/DebugCommands.cs @@ -36,12 +36,13 @@ namespace Game.Chat class DebugCommands { [Command("anim", RBACPermissions.CommandDebugAnim)] - static bool HandleDebugAnimCommand(CommandHandler handler, uint emoteId) + static bool HandleDebugAnimCommand(CommandHandler handler, Emote emote) { Unit unit = handler.GetSelectedUnit(); if (unit) - unit.HandleEmoteCommand((Emote)emoteId); + unit.HandleEmoteCommand(emote); + handler.SendSysMessage($"Playing emote {emote}"); return true; }