Fix bug where badge boost flag is inverted
This commit is contained in:
parent
6363e61043
commit
f79205af08
1 changed files with 1 additions and 1 deletions
|
@ -9852,7 +9852,7 @@ bool32 SetIllusionMon(struct Pokemon *mon, u32 battlerId)
|
||||||
|
|
||||||
bool8 ShouldGetStatBadgeBoost(u16 badgeFlag, u8 battlerId)
|
bool8 ShouldGetStatBadgeBoost(u16 badgeFlag, u8 battlerId)
|
||||||
{
|
{
|
||||||
#if B_BADGE_BOOST != GEN_3
|
#if B_BADGE_BOOST == GEN_3
|
||||||
if (gBattleTypeFlags & (BATTLE_TYPE_LINK | BATTLE_TYPE_EREADER_TRAINER | BATTLE_TYPE_RECORDED_LINK | BATTLE_TYPE_FRONTIER))
|
if (gBattleTypeFlags & (BATTLE_TYPE_LINK | BATTLE_TYPE_EREADER_TRAINER | BATTLE_TYPE_RECORDED_LINK | BATTLE_TYPE_FRONTIER))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
else if (GetBattlerSide(battlerId) != B_SIDE_PLAYER)
|
else if (GetBattlerSide(battlerId) != B_SIDE_PLAYER)
|
||||||
|
|
Loading…
Reference in a new issue