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:
@@ -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));
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user