Skip to content

Commit

Permalink
Fix overworld poison not working on newer generations config
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaizu authored and SBird1337 committed Apr 7, 2023
1 parent a870883 commit e1beb55
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/field_control_avatar.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,13 +565,11 @@ 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);
Expand Down

0 comments on commit e1beb55

Please sign in to comment.