[Bots] Fix buffs not overwriting lesser buffs (#4756)

This commit is contained in:
nytmyr 2025-03-06 16:03:50 -06:00 committed by GitHub
parent da824d5178
commit 94553501ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9767,7 +9767,7 @@ bool Bot::CastChecks(uint16 spell_id, Mob* tar, uint16 spell_type, bool precheck
)
)
&&
tar->CanBuffStack(spell_id, GetLevel(), true) < 0
tar->CanBuffStack(spell_id, GetLevel(), false) < 0
) {
LogBotSpellChecksDetail("{} says, 'Cancelling cast of {} on {} due to !CanBuffStack.'", GetCleanName(), GetSpellName(spell_id), tar->GetCleanName());
return false;