Potential bugfix for 2x debug move on water

This commit is contained in:
Jasper "JappaWakka" Speelman 2022-04-07 12:01:32 +02:00
parent 7165cd70bc
commit e62c49b7bb
3 changed files with 7 additions and 3 deletions

View File

@ -109,7 +109,9 @@
Next
If canSurf = True Then
Screen.Camera.Move(1)
If CType(Screen.Camera, OverworldCamera)._debugWalk = False Then
Screen.Camera.Move(1)
End If
Screen.Level.PokemonEncounter.TryEncounterWildPokemon(Me.Position, Spawner.EncounterMethods.Surfing, "")
End If

View File

@ -92,7 +92,9 @@
Next
If canSurf = True Then
Screen.Camera.Move(1)
If CType(Screen.Camera, OverworldCamera)._debugWalk = False Then
Screen.Camera.Move(1)
End If
Screen.Level.PokemonEncounter.TryEncounterWildPokemon(Me.Position, Spawner.EncounterMethods.Surfing, "")
End If

View File

@ -848,7 +848,7 @@ Public Class OverworldCamera
End If
If GameController.IS_DEBUG_ACTIVE = True Or Core.Player.SandBoxMode = True Then
If _debugWalk = True Then
If _debugWalk = True AndAlso CType(Core.CurrentScreen, OverworldScreen).ActionScript.IsReady = True Then
cannotWalk = False
End If
End If