mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-30 01:05:22 +02:00
Forgot to save Player.vb
This commit is contained in:
parent
a371268441
commit
bd647ef071
@ -1906,14 +1906,12 @@
|
|||||||
|
|
||||||
'Remove fainted Pokémon from player's team if the DeathInsteadOfFaint GameRule is activated.
|
'Remove fainted Pokémon from player's team if the DeathInsteadOfFaint GameRule is activated.
|
||||||
If CBool(GameModeManager.GetGameRuleValue("DeathInsteadOfFaint", "0")) = True Then
|
If CBool(GameModeManager.GetGameRuleValue("DeathInsteadOfFaint", "0")) = True Then
|
||||||
For i = 0 To Core.Player.Pokemons.Count - 1
|
If i <= Core.Player.Pokemons.Count - 1 Then
|
||||||
If i <= Core.Player.Pokemons.Count - 1 Then
|
If Core.Player.Pokemons(i).HP <= 0 Or Core.Player.Pokemons(i).Status = Pokemon.StatusProblems.Fainted Then
|
||||||
If Core.Player.Pokemons(i).HP <= 0 Or Core.Player.Pokemons(i).Status = Pokemon.StatusProblems.Fainted Then
|
Core.Player.Pokemons.RemoveAt(i)
|
||||||
Core.Player.Pokemons.RemoveAt(i)
|
i -= 1
|
||||||
i -= 1
|
|
||||||
End If
|
|
||||||
End If
|
End If
|
||||||
Next
|
End If
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
If Core.Player.CountFightablePokemon = 0 Then
|
If Core.Player.CountFightablePokemon = 0 Then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user