Fixes land surfing

This commit is contained in:
infinitefusion
2023-02-12 13:24:44 -05:00
parent 0aabfd982b
commit d2e5828b62

View File

@@ -784,7 +784,7 @@ def pbEndSurf(_xOffset, _yOffset)
return false if !$PokemonGlobal.surfing return false if !$PokemonGlobal.surfing
x = $game_player.x x = $game_player.x
y = $game_player.y 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] $PokemonTemp.surfJump = [x, y]
if pbJumpToward(1, false, true) if pbJumpToward(1, false, true)
$game_map.autoplayAsCue $game_map.autoplayAsCue