Implement blocked_buffs and blocked_pet_buffs

This commit is contained in:
nytmyr
2024-12-15 23:09:32 -06:00
parent d144d58abc
commit e220163153
15 changed files with 1323 additions and 11 deletions
+4 -1
View File
@@ -4080,7 +4080,10 @@ bool Mob::SpellOnTarget(
}
// now check if the spell is allowed to land
if (RuleB(Spells, EnableBlockedBuffs)) {
if (
(!spelltar->IsBot() && RuleB(Spells, EnableBlockedBuffs)) ||
(spelltar->IsBot() && RuleB(Bots, AllowBotBlockedBuffs))
) {
// We return true here since the caster's client should act like normal
if (spelltar->IsBlockedBuff(spell_id)) {
LogSpells(