Fix wrongly getting a battler position in the type effectiveness functions (#8787)
This commit is contained in:
parent
c39eb48b04
commit
0bed4761a1
@ -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())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user