mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-20 22:08:22 +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:
|
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user