add beneficial check to ^blockedbuffs

This commit is contained in:
nytmyr
2024-12-17 13:10:24 -06:00
parent f33ed3d4cd
commit 7ce37819f7
+2 -4
View File
@@ -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;
}