From 7ce37819f70883f7af1ddaeab81e9e4df01181fe Mon Sep 17 00:00:00 2001 From: nytmyr <53322305+nytmyr@users.noreply.github.com> Date: Tue, 17 Dec 2024 13:10:24 -0600 Subject: [PATCH] add beneficial check to ^blockedbuffs --- zone/bot_commands/blocked_buffs.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/zone/bot_commands/blocked_buffs.cpp b/zone/bot_commands/blocked_buffs.cpp index a89c75e98..1a873b176 100644 --- a/zone/bot_commands/blocked_buffs.cpp +++ b/zone/bot_commands/blocked_buffs.cpp @@ -108,9 +108,8 @@ void bot_command_blocked_buffs(Client* c, const Seperator* sep) bool wipe = false; uint16 spell_id; - //AA help if (!arg1.compare("add")) { - if (!sep->IsNumber(2) || !IsValidSpell(atoi(sep->arg[2]))) { + if (!sep->IsNumber(2) || !IsValidSpell(atoi(sep->arg[2])) || !IsBeneficialSpell(atoi(sep->arg[2]))) { c->Message(Chat::Yellow, "You must enter a valid spell ID."); return; } @@ -368,9 +367,8 @@ void bot_command_blocked_pet_buffs(Client* c, const Seperator* sep) bool wipe = false; uint16 spell_id; - //AA help if (!arg1.compare("add")) { - if (!sep->IsNumber(2) || !IsValidSpell(atoi(sep->arg[2]))) { + if (!sep->IsNumber(2) || !IsValidSpell(atoi(sep->arg[2])) || !IsBeneficialSpell(atoi(sep->arg[2])) { c->Message(Chat::Yellow, "You must enter a valid spell ID."); return; }