From d2e5828b62d765f97fea52ed6958ab039cd201ea Mon Sep 17 00:00:00 2001 From: infinitefusion Date: Sun, 12 Feb 2023 13:24:44 -0500 Subject: [PATCH] Fixes land surfing --- Data/Scripts/012_Overworld/004_Overworld_FieldMoves.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Data/Scripts/012_Overworld/004_Overworld_FieldMoves.rb b/Data/Scripts/012_Overworld/004_Overworld_FieldMoves.rb index 32bad7c00..62cc72cc1 100644 --- a/Data/Scripts/012_Overworld/004_Overworld_FieldMoves.rb +++ b/Data/Scripts/012_Overworld/004_Overworld_FieldMoves.rb @@ -784,7 +784,7 @@ def pbEndSurf(_xOffset, _yOffset) return false if !$PokemonGlobal.surfing x = $game_player.x y = $game_player.y - if $game_map.terrain_tag(x, y).can_surf && !$game_player.pbFacingTerrainTag.can_surf + if $game_map.terrain_tag(x, y).can_surf && !$game_player.pbFacingTerrainTag.can_surf || !$game_map.terrain_tag(x, y).can_surf $PokemonTemp.surfJump = [x, y] if pbJumpToward(1, false, true) $game_map.autoplayAsCue