mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 15:00:25 +00:00
Correct GetStopMeleeLevel checks for some buff checks
This commit is contained in:
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user