From 88d3bcfdf55b92d78822ff918d91b66fcce3a1e6 Mon Sep 17 00:00:00 2001 From: nytmyr <53322305+nytmyr@users.noreply.github.com> Date: Thu, 23 Jan 2025 15:16:30 -0600 Subject: [PATCH] Correct GetStopMeleeLevel checks for some buff checks --- zone/bot.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zone/bot.cpp b/zone/bot.cpp index 1972836c6..3b8eeaab5 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -9919,7 +9919,7 @@ bool Bot::CanCastSpellType(uint16 spell_type, uint16 spell_id, Mob* tar) { case Archetype::Caster: if ( tar->IsBot() && - (tar->GetLevel() > tar->CastToBot()->GetStopMeleeLevel()) && + (tar->GetLevel() >= tar->CastToBot()->GetStopMeleeLevel()) && ( IsEffectInSpell(spell_id, SE_AttackSpeed) || IsEffectInSpell(spell_id, SE_ReverseDS) @@ -9983,7 +9983,7 @@ bool Bot::CanCastSpellType(uint16 spell_type, uint16 spell_id, Mob* tar) { case Archetype::Caster: if ( tar->IsBot() && - (tar->GetLevel() > tar->CastToBot()->GetStopMeleeLevel()) && + (tar->GetLevel() >= tar->CastToBot()->GetStopMeleeLevel()) && ( IsEffectInSpell(spell_id, SE_AttackSpeed) || IsEffectInSpell(spell_id, SE_ReverseDS)