summaryrefslogtreecommitdiff
path: root/src/wild_encounter.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wild_encounter.c')
-rw-r--r--src/wild_encounter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wild_encounter.c b/src/wild_encounter.c
index 84943b0d5..48fe3c116 100644
--- a/src/wild_encounter.c
+++ b/src/wild_encounter.c
@@ -388,7 +388,7 @@ static bool8 DoWildEncounterRateDiceRoll(u16 encounterRate)
static bool8 DoWildEncounterTest(u32 encounterRate, bool8 ignoreAbility)
{
encounterRate *= 16;
- if (TestPlayerAvatarFlags(6))
+ if (TestPlayerAvatarFlags(PLAYER_AVATAR_FLAG_MACH_BIKE | PLAYER_AVATAR_FLAG_ACRO_BIKE))
encounterRate = encounterRate * 80 / 100;
ApplyFluteEncounterRateMod(&encounterRate);
ApplyCleanseTagEncounterRateMod(&encounterRate);
@@ -463,7 +463,7 @@ bool8 StandardWildEncounter(u16 a, u16 b)
}
}
else if (MetatileBehavior_IsWaterWildEncounter(a) == TRUE
- || (TestPlayerAvatarFlags(8) && MetatileBehavior_IsBridge(a) == TRUE))
+ || (TestPlayerAvatarFlags(PLAYER_AVATAR_FLAG_SURFING) && MetatileBehavior_IsBridge(a) == TRUE))
{
if (gWildMonHeaders[headerNum].waterMonsInfo)
{