Skip to content

Commit 8956ba1

Browse files
authored
Some fixes for warrior bots (#3301)
1 parent 25b1c2a commit 8956ba1

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/game/PlayerBots/PartyBotAI.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2431,7 +2431,7 @@ void PartyBotAI::UpdateOutOfCombatAI_Warrior()
24312431
if (CanTryToCastSpell(me, m_spells.warrior.pBattleShout))
24322432
DoCastSpell(me, m_spells.warrior.pBattleShout);
24332433
else if (m_spells.warrior.pBloodrage &&
2434-
(me->GetPower(POWER_RAGE) < 10) &&
2434+
(me->GetPower(POWER_RAGE) < 100) &&
24352435
CanTryToCastSpell(me, m_spells.warrior.pBloodrage))
24362436
{
24372437
DoCastSpell(me, m_spells.warrior.pBloodrage);
@@ -2649,9 +2649,9 @@ void PartyBotAI::UpdateInCombatAI_Warrior()
26492649
}
26502650

26512651
if (m_spells.warrior.pWhirlwind &&
2652-
CanTryToCastSpell(pVictim, m_spells.warrior.pWhirlwind))
2652+
CanTryToCastSpell(me, m_spells.warrior.pWhirlwind))
26532653
{
2654-
if (DoCastSpell(pVictim, m_spells.warrior.pWhirlwind) == SPELL_CAST_OK)
2654+
if (DoCastSpell(me, m_spells.warrior.pWhirlwind) == SPELL_CAST_OK)
26552655
return;
26562656
}
26572657

@@ -2665,9 +2665,9 @@ void PartyBotAI::UpdateInCombatAI_Warrior()
26652665

26662666
if (m_spells.warrior.pDemoralizingShout &&
26672667
m_role == ROLE_TANK &&
2668-
CanTryToCastSpell(pVictim, m_spells.warrior.pDemoralizingShout))
2668+
CanTryToCastSpell(me, m_spells.warrior.pDemoralizingShout))
26692669
{
2670-
if (DoCastSpell(pVictim, m_spells.warrior.pDemoralizingShout) == SPELL_CAST_OK)
2670+
if (DoCastSpell(me, m_spells.warrior.pDemoralizingShout) == SPELL_CAST_OK)
26712671
return;
26722672
}
26732673

@@ -2677,7 +2677,7 @@ void PartyBotAI::UpdateInCombatAI_Warrior()
26772677
me->GetMotionMaster()->MoveChase(pVictim);
26782678
}
26792679

2680-
if (me->GetPower(POWER_RAGE) > 30)
2680+
if (me->GetPower(POWER_RAGE) > 300)
26812681
{
26822682
if (m_spells.warrior.pCleave && me->GetEnemyCountInRadiusAround(pVictim, 8.0f) > 1)
26832683
{
@@ -3309,7 +3309,7 @@ void PartyBotAI::UpdateInCombatAI_Druid()
33093309
return;
33103310
}
33113311

3312-
if ((me->GetPower(POWER_RAGE) > 80) ||
3312+
if ((me->GetPower(POWER_RAGE) > 800) ||
33133313
(GetAttackersInRangeCount(10.0f) > 1))
33143314
{
33153315
if (m_spells.druid.pDemoralizingRoar &&

0 commit comments

Comments
 (0)