From 48ecd1222ffdf06bce7df12181872233c2b876b6 Mon Sep 17 00:00:00 2001 From: nytmyr <53322305+nytmyr@users.noreply.github.com> Date: Wed, 9 Apr 2025 21:32:57 -0500 Subject: [PATCH] [Bots] Restore old buff overwrite blocking (#4832) - [#4756](https://github.com/EQEmu/Server/pull/4756) changed the way overwriting worked for buffs. It allowed stronger spells to overwrite lesser spells if they were already on the target. - However, this is a positive change but has its drawbacks with spells of similar value. It could cause an endless buff loop where they constantly replaced one another. Overall, the con of endless buffing outweighs the benefit of automatic overwriting lesser spells and the control should be left to only spell lists via `^spells` for bot owners as it was before to determine which buffs bots will cast. --- zone/bot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/bot.cpp b/zone/bot.cpp index 1885fd1a5..42e09cb43 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -9738,7 +9738,7 @@ bool Bot::CastChecks(uint16 spell_id, Mob* tar, uint16 spell_type, bool precheck ) ) && - tar->CanBuffStack(spell_id, GetLevel(), false) < 0 + tar->CanBuffStack(spell_id, GetLevel(), true) < 0 ) { LogBotSpellChecksDetail("{} says, 'Cancelling cast of {} on {} due to !CanBuffStack.'", GetCleanName(), GetSpellName(spell_id), tar->GetCleanName()); return false;