Some improvements to priest, rogue and druid bots.

This commit is contained in:
ratkosrb
2021-11-18 16:04:12 +02:00
parent 2f58b8ccf0
commit 3c7eb0acad
2 changed files with 34 additions and 20 deletions
+2 -2
View File
@@ -1910,7 +1910,7 @@ void BattleBotAI::UpdateInCombatAI_Priest()
}
if (m_spells.priest.pPsychicScream &&
pVictim->CanReachWithMeleeAutoAttack(me) &&
GetAttackersInRangeCount(10.0f) &&
CanTryToCastSpell(me, m_spells.priest.pPsychicScream))
{
if (DoCastSpell(me, m_spells.priest.pPsychicScream) == SPELL_CAST_OK)
@@ -1926,7 +1926,7 @@ void BattleBotAI::UpdateInCombatAI_Priest()
}
if (m_spells.priest.pMindFlay &&
!pVictim->CanReachWithMeleeAutoAttack(me) &&
(!GetAttackersInRangeCount(10.0f) || me->HasAuraType(SPELL_AURA_SCHOOL_ABSORB)) &&
CanTryToCastSpell(pVictim, m_spells.priest.pMindFlay))
{
if (DoCastSpell(pVictim, m_spells.priest.pMindFlay) == SPELL_CAST_OK)