mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-28 00:04:33 +02:00
Update Whirlwind.vb
This commit is contained in:
parent
dab05aef31
commit
3ba7822ae0
@ -73,7 +73,11 @@
|
|||||||
'trainer battle
|
'trainer battle
|
||||||
If own = True Then
|
If own = True Then
|
||||||
If BattleScreen.Trainer.CountUseablePokemon > 1 Then
|
If BattleScreen.Trainer.CountUseablePokemon > 1 Then
|
||||||
BattleScreen.Battle.SwitchOutOpp(BattleScreen, -1, "")
|
Dim i As Integer = Core.Random.Next(0, BattleScreen.Trainer.Pokemons.count)
|
||||||
|
While BattleScreen.Trainer.Pokemons(i).Status = Pokemon.StatusProblems.Fainted OrElse BattleScreen.OppPokemonIndex = i OrElse BattleScreen.Trainer.Pokemons(i).HP <= 0
|
||||||
|
i = Core.Random.Next(0, BattleScreen.Trainer.Pokemons.count)
|
||||||
|
End While
|
||||||
|
BattleScreen.Battle.SwitchOutOpp(BattleScreen, i, "")
|
||||||
Else
|
Else
|
||||||
BattleScreen.BattleQuery.Add(New TextQueryObject(Me.Name & " failed!"))
|
BattleScreen.BattleQuery.Add(New TextQueryObject(Me.Name & " failed!"))
|
||||||
End If
|
End If
|
||||||
|
Loading…
x
Reference in New Issue
Block a user