From b8de96284501cf8aa90e1e9cda30db6ad0faa540 Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Thu, 18 Jul 2024 22:23:37 +0200 Subject: [PATCH] Update AutoBalance.cpp (#185) --- src/AutoBalance.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/AutoBalance.cpp b/src/AutoBalance.cpp index 100b273..28f3e75 100644 --- a/src/AutoBalance.cpp +++ b/src/AutoBalance.cpp @@ -6438,16 +6438,16 @@ class AutoBalance_CommandScript : public CommandScript { static std::vector ABCommandTable = { - { "setoffset", SEC_GAMEMASTER, true, &HandleABSetOffsetCommand, "Sets the global Player Difficulty Offset for instances. Example: (You + offset(1) = 2 player difficulty)." }, - { "getoffset", SEC_PLAYER, true, &HandleABGetOffsetCommand, "Shows current global player offset value." }, - { "mapstat", SEC_PLAYER, true, &HandleABMapStatsCommand, "Shows current autobalance information for this map" }, - { "creaturestat", SEC_PLAYER, true, &HandleABCreatureStatsCommand, "Shows current autobalance information for selected creature." }, + { "setoffset", HandleABSetOffsetCommand, SEC_GAMEMASTER, Console::Yes }, + { "getoffset", HandleABGetOffsetCommand, SEC_PLAYER, Console::Yes }, + { "mapstat", HandleABMapStatsCommand, SEC_PLAYER, Console::Yes }, + { "creaturestat", HandleABCreatureStatsCommand, SEC_PLAYER, Console::Yes } }; static std::vector commandTable = { - { "autobalance", SEC_PLAYER, false, NULL, "", ABCommandTable }, - { "ab", SEC_PLAYER, false, NULL, "", ABCommandTable }, + { "autobalance", ABCommandTable }, + { "ab", ABCommandTable }, }; return commandTable; }