Fix overworld poison not working on newer generations config

This commit is contained in:
Jaizu 2023-04-07 11:07:52 +02:00 committed by Philipp AUER
parent a870883610
commit e1beb55a51

View File

@ -565,13 +565,11 @@ static bool8 TryStartStepCountScript(u16 metatileBehavior)
if (!(gPlayerAvatar.flags & PLAYER_AVATAR_FLAG_FORCED_MOVE) && !MetatileBehavior_IsForcedMovementTile(metatileBehavior)) if (!(gPlayerAvatar.flags & PLAYER_AVATAR_FLAG_FORCED_MOVE) && !MetatileBehavior_IsForcedMovementTile(metatileBehavior))
{ {
#if OW_POISON_DAMAGE < GEN_5
if (UpdatePoisonStepCounter() == TRUE) if (UpdatePoisonStepCounter() == TRUE)
{ {
ScriptContext_SetupScript(EventScript_FieldPoison); ScriptContext_SetupScript(EventScript_FieldPoison);
return TRUE; return TRUE;
} }
#endif
if (ShouldEggHatch()) if (ShouldEggHatch())
{ {
IncrementGameStat(GAME_STAT_HATCHED_EGGS); IncrementGameStat(GAME_STAT_HATCHED_EGGS);