mirror of
https://github.com/pret/pokeemerald.git
synced 2026-10-01 22:38:10 -05:00
Fix wrong battler argument in GetBattleMovePriority call (#7576)
This commit is contained in:
@@ -238,7 +238,7 @@ static bool32 ShouldSwitchIfHasBadOdds(u32 battler)
|
||||
maxDamageTaken = damageTaken;
|
||||
bestPlayerMove = playerMove;
|
||||
}
|
||||
if (GetBattleMovePriority(opposingBattler, gAiLogicData->abilities[battler], playerMove) > 0 && damageTaken > maxDamageTakenPriority && !AI_DoesChoiceEffectBlockMove(opposingBattler, playerMove))
|
||||
if (GetBattleMovePriority(opposingBattler, gAiLogicData->abilities[opposingBattler], playerMove) > 0 && damageTaken > maxDamageTakenPriority && !AI_DoesChoiceEffectBlockMove(opposingBattler, playerMove))
|
||||
{
|
||||
maxDamageTakenPriority = damageTaken;
|
||||
bestPlayerPriorityMove = playerMove;
|
||||
|
||||
Reference in New Issue
Block a user