Fixed set movement type (#185)

This commit is contained in:
Golisopod-User
2022-08-08 22:10:12 +05:30
committed by GitHub
parent b2ddedbce1
commit bff0cc6974
2 changed files with 5 additions and 5 deletions

View File

@@ -578,13 +578,13 @@ end
def pbUpdateVehicle
if $PokemonGlobal&.diving
$game_player.set_movement_type(:diving)
$game_player.set_movement_type(:diving_stopped)
elsif $PokemonGlobal&.surfing
$game_player.set_movement_type(:surfing)
$game_player.set_movement_type(:surfing_stopped)
elsif $PokemonGlobal&.bicycle
$game_player.set_movement_type(:cycling)
$game_player.set_movement_type(:cycling_stopped)
else
$game_player.set_movement_type(:walking)
$game_player.set_movement_type(:walking_stopped)
end
end

View File

@@ -29,7 +29,7 @@ def pbFishingEnd
end
end
yield if block_given?
$game_player.set_movement_type(($PokemonGlobal.surfing) ? :surfing : :walking)
$game_player.set_movement_type(($PokemonGlobal.surfing) ? :surfing_stopped : :walking_stopped)
$game_player.lock_pattern = false
$game_player.straighten
$PokemonGlobal.fishing = false