[Bots] Melee Bot Support for Spell Settings Commands (#2599)

This commit is contained in:
Aeadoin 2022-11-30 19:35:17 -05:00 committed by GitHub
parent 639f8e184a
commit e7704f00f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ||