Cleanup some commands

This commit is contained in:
nytmyr
2025-01-28 22:08:20 -06:00
parent 60d96d6ac6
commit 548e3ca81b
13 changed files with 43 additions and 23 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ void bot_command_spell_idle_priority(Client* c, const Seperator* sep)
if (sep->IsNumber(1)) {
spell_type = atoi(sep->arg[1]);
if (spell_type < BotSpellTypes::START || spell_type > BotSpellTypes::END) {
if (!EQ::ValueWithin(spell_type, BotSpellTypes::START, BotSpellTypes::END)) {
c->Message(Chat::Yellow, "You must choose a valid spell type. Spell types range from %i to %i", BotSpellTypes::START, BotSpellTypes::END);
return;