mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Made Player Transfer event command not cancel surfing/diving, so pbTransferSurfing and pbTransferUnderwater are deprecated.
This commit is contained in:
@@ -576,9 +576,9 @@ def pbUpdateVehicle
|
||||
end
|
||||
end
|
||||
|
||||
def pbCancelVehicles(destination=nil)
|
||||
$PokemonGlobal.surfing = false
|
||||
$PokemonGlobal.diving = false
|
||||
def pbCancelVehicles(destination = nil, cancel_swimming = true)
|
||||
$PokemonGlobal.surfing = false if cancel_swimming
|
||||
$PokemonGlobal.diving = false if cancel_swimming
|
||||
$PokemonGlobal.bicycle = false if !destination || !pbCanUseBike?(destination)
|
||||
pbUpdateVehicle
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user