From e7704f00f35d6373d2b16cdc0314b583dfd0f733 Mon Sep 17 00:00:00 2001 From: Aeadoin <109764533+Aeadoin@users.noreply.github.com> Date: Wed, 30 Nov 2022 19:35:17 -0500 Subject: [PATCH] [Bots] Melee Bot Support for Spell Settings Commands (#2599) --- zone/bot_command.cpp | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/zone/bot_command.cpp b/zone/bot_command.cpp index d1839b01c..a917b73af 100644 --- a/zone/bot_command.cpp +++ b/zone/bot_command.cpp @@ -10239,7 +10239,6 @@ void bot_command_spell_list(Client* c, const Seperator *sep) } if (helper_is_help_or_usage(sep->arg[1])) { - c->Message(Chat::White, "You must target a Caster or Hybrid bot to use this command."); c->Message( Chat::White, fmt::format( @@ -10256,11 +10255,6 @@ void bot_command_spell_list(Client* c, const Seperator *sep) return; } - if (!my_bot->IsBotCaster() && !my_bot->IsBotHybrid()) { - c->Message(Chat::White, "You must target a Caster or Hybrid bot to use this command."); - return; - } - my_bot->ListBotSpells(); } @@ -10271,7 +10265,6 @@ void bot_command_spell_settings_add(Client *c, const Seperator *sep) } if (helper_is_help_or_usage(sep->arg[1])) { - c->Message(Chat::White, "You must target a Caster or Hybrid bot to use this command."); c->Message( Chat::White, fmt::format( @@ -10288,11 +10281,6 @@ void bot_command_spell_settings_add(Client *c, const Seperator *sep) return; } - if (!my_bot->IsBotCaster() && !my_bot->IsBotHybrid()) { - c->Message(Chat::White, "You must target a Caster or Hybrid bot to use this command."); - return; - } - auto arguments = sep->argnum; if ( arguments < 6 || @@ -10402,7 +10390,6 @@ void bot_command_spell_settings_delete(Client *c, const Seperator *sep) } if (helper_is_help_or_usage(sep->arg[1])) { - c->Message(Chat::White, "You must target a Caster or Hybrid bot to use this command."); c->Message( Chat::White, fmt::format( @@ -10419,11 +10406,6 @@ void bot_command_spell_settings_delete(Client *c, const Seperator *sep) return; } - if (!my_bot->IsBotCaster() && !my_bot->IsBotHybrid()) { - c->Message(Chat::White, "You must target a Caster or Hybrid bot to use this command."); - return; - } - auto arguments = sep->argnum; if ( arguments < 1 || @@ -10490,7 +10472,6 @@ void bot_command_spell_settings_list(Client *c, const Seperator *sep) } if (helper_is_help_or_usage(sep->arg[1])) { - c->Message(Chat::White, "You must target a Caster or Hybrid bot to use this command."); c->Message( Chat::White, fmt::format( @@ -10507,11 +10488,6 @@ void bot_command_spell_settings_list(Client *c, const Seperator *sep) return; } - if (!my_bot->IsBotCaster() && !my_bot->IsBotHybrid()) { - c->Message(Chat::White, "You must target a Caster or Hybrid bot to use this command."); - return; - } - my_bot->ListBotSpellSettings(); } @@ -10522,7 +10498,6 @@ void bot_command_spell_settings_toggle(Client *c, const Seperator *sep) } if (helper_is_help_or_usage(sep->arg[1])) { - c->Message(Chat::White, "You must target a Caster or Hybrid bot to use this command."); c->Message( Chat::White, fmt::format( @@ -10539,11 +10514,6 @@ void bot_command_spell_settings_toggle(Client *c, const Seperator *sep) return; } - if (!my_bot->IsBotCaster() && !my_bot->IsBotHybrid()) { - c->Message(Chat::White, "You must target a Caster or Hybrid bot to use this command."); - return; - } - auto arguments = sep->argnum; if ( arguments < 2 || @@ -10632,7 +10602,6 @@ void bot_command_spell_settings_update(Client *c, const Seperator *sep) } if (helper_is_help_or_usage(sep->arg[1])) { - c->Message(Chat::White, "You must target a Caster or Hybrid bot to use this command."); c->Message( Chat::White, fmt::format( @@ -10649,11 +10618,6 @@ void bot_command_spell_settings_update(Client *c, const Seperator *sep) return; } - if (!my_bot->IsBotCaster() && !my_bot->IsBotHybrid()) { - c->Message(Chat::White, "You must target a Caster or Hybrid bot to use this command."); - return; - } - auto arguments = sep->argnum; if ( arguments < 6 ||