Scripts/Commands: Use enum type arg for HandleDebugAnimCommand
Port From (https://github.com/TrinityCore/TrinityCore/commit/ec44c8296d155aab8862987848a87a1a81049c12)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user