Correct GetStopMeleeLevel checks for some buff checks

This commit is contained in:
nytmyr
2025-01-23 15:16:30 -06:00
parent b836e78adb
commit 88d3bcfdf5
+2 -2
View File
@@ -9919,7 +9919,7 @@ bool Bot::CanCastSpellType(uint16 spell_type, uint16 spell_id, Mob* tar) {
case Archetype::Caster: case Archetype::Caster:
if ( if (
tar->IsBot() && tar->IsBot() &&
(tar->GetLevel() > tar->CastToBot()->GetStopMeleeLevel()) && (tar->GetLevel() >= tar->CastToBot()->GetStopMeleeLevel()) &&
( (
IsEffectInSpell(spell_id, SE_AttackSpeed) || IsEffectInSpell(spell_id, SE_AttackSpeed) ||
IsEffectInSpell(spell_id, SE_ReverseDS) IsEffectInSpell(spell_id, SE_ReverseDS)
@@ -9983,7 +9983,7 @@ bool Bot::CanCastSpellType(uint16 spell_type, uint16 spell_id, Mob* tar) {
case Archetype::Caster: case Archetype::Caster:
if ( if (
tar->IsBot() && tar->IsBot() &&
(tar->GetLevel() > tar->CastToBot()->GetStopMeleeLevel()) && (tar->GetLevel() >= tar->CastToBot()->GetStopMeleeLevel()) &&
( (
IsEffectInSpell(spell_id, SE_AttackSpeed) || IsEffectInSpell(spell_id, SE_AttackSpeed) ||
IsEffectInSpell(spell_id, SE_ReverseDS) IsEffectInSpell(spell_id, SE_ReverseDS)