[Bots] Fix rule Bots:FinishBuffing (#4788)

This commit is contained in:
nytmyr
2025-03-29 15:17:33 -05:00
committed by GitHub
parent deb298dda7
commit d554eb3423
4 changed files with 30 additions and 4 deletions
+16
View File
@@ -468,3 +468,19 @@ uint16 GetPetBotSpellType(uint16 spell_type) {
return spell_type;
}
bool IsBotBuffSpellType(uint16 spell_type) {
switch (spell_type) {
case BotSpellTypes::Buff:
case BotSpellTypes::PetBuffs:
case BotSpellTypes::ResistBuffs:
case BotSpellTypes::PetResistBuffs:
case BotSpellTypes::DamageShields:
case BotSpellTypes::PetDamageShields:
return true;
default:
return false;
}
return false;
}