Revert "Fix overworld poison not working on newer generations config"

This reverts commit e1beb55a51.
This commit is contained in:
Philipp AUER 2023-04-07 11:35:30 +02:00 committed by GitHub
parent e1beb55a51
commit d57d8e6e71

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);