Revert "Fix overworld poison not working on newer generations config" (#2892)

This commit is contained in:
Jaizu 2023-04-07 11:49:23 +02:00 committed by GitHub
commit f4ea663ab2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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