Scripts/Commands: Convert argument parsing of cheat commands to new system

Port From (https://github.com/TrinityCore/TrinityCore/commit/4aa1c742320d93bbebcb7cb737acc46ec3be6ffd)
This commit is contained in:
hondacrx
2022-06-03 22:35:16 -04:00
parent 59686e5f84
commit 5f16cea602
3 changed files with 121 additions and 143 deletions
+1 -1
View File
@@ -210,7 +210,7 @@ namespace Game.Chat
if (parameterTypes.Contains(typeof(StringArguments)))//Old system, can remove once all commands are changed.
return (bool)_methodInfo.Invoke(null, new object[] { handler, args });
else
return (bool)_methodInfo.Invoke(null, new object[] { handler }.Combine(CommandArgs.Parse(parameterTypes, args)));
return (bool)_methodInfo.Invoke(null, CommandArgs.Parse(handler, parameterTypes, args));
}