Hopefully fixed a couple of crashes
This commit is contained in:
parent
5d4ae15b67
commit
a24f5ff637
|
@ -1756,9 +1756,11 @@
|
||||||
If CanFireStepEvent() = True Then
|
If CanFireStepEvent() = True Then
|
||||||
Dim addEggSteps As Integer = stepAmount
|
Dim addEggSteps As Integer = stepAmount
|
||||||
For Each p As Pokemon In Pokemons
|
For Each p As Pokemon In Pokemons
|
||||||
If p.Ability.Name.ToLower() = "magma armor" Or p.Ability.Name.ToLower() = "flame body" Then
|
If p.Ability IsNot Nothing Then
|
||||||
addEggSteps *= Random.Next(1, 4)
|
If p.Ability.Name.ToLower() = "magma armor" OrElse p.Ability.Name.ToLower() = "flame body" Then
|
||||||
Exit For
|
addEggSteps *= Random.Next(1, 4)
|
||||||
|
Exit For
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
If Core.Player.IsGameJoltSave = True Then
|
If Core.Player.IsGameJoltSave = True Then
|
||||||
Me.canCreateAutosave = False
|
Me.canCreateAutosave = False
|
||||||
Else
|
Else
|
||||||
If Not Me.PreScreen Is Nothing Then
|
If Me.PreScreen IsNot Nothing AndAlso Camera.Name IsNot Nothing Then
|
||||||
If Camera.Name <> "Overworld" Then
|
If Camera.Name <> "Overworld" Then
|
||||||
Me.canCreateAutosave = False
|
Me.canCreateAutosave = False
|
||||||
Else
|
Else
|
||||||
|
|
Loading…
Reference in New Issue