Fix wrongly getting a battler position in the type effectiveness functions (#8787)

This commit is contained in:
Bassoonian 2026-01-04 12:46:00 +01:00 committed by GitHub
parent c39eb48b04
commit 0bed4761a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2394,7 +2394,7 @@ static u32 CheckTypeEffectiveness(u32 battlerAtk, u32 battlerDef)
static u32 CheckTargetTypeEffectiveness(u32 battler)
{
u32 battlerFoe = BATTLE_OPPOSITE(GetBattlerPosition(battler));
u32 battlerFoe = BATTLE_OPPOSITE(battler);
u32 foeEffectiveness = CheckTypeEffectiveness(battler, battlerFoe);
if (IsDoubleBattle())