mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-28 08:14:29 +02:00
Fixed Bug: When the lead Pokémon faints and you switch to a different Pokémon, when the battle ends, your current Pokémon disappears
This commit is contained in:
parent
93f1228eb2
commit
bf887b0e3a
@ -2674,7 +2674,7 @@
|
|||||||
|
|
||||||
If BattleScreen.IsTrainerBattle = False AndAlso Core.Player.ShowBattleAnimations <> 0 Then
|
If BattleScreen.IsTrainerBattle = False AndAlso Core.Player.ShowBattleAnimations <> 0 Then
|
||||||
If own = False Then
|
If own = False Then
|
||||||
Dim FaintAnimation As AnimationQueryObject = New AnimationQueryObject(BattleScreen.OwnPokemonNPC, True, BattleScreen.OppPokemonModel)
|
Dim FaintAnimation As AnimationQueryObject = New AnimationQueryObject(BattleScreen.OppPokemonNPC, True, BattleScreen.OppPokemonModel)
|
||||||
FaintAnimation.AnimationPlaySound(CStr(BattleScreen.OppPokemon.Number), 0, 2, False, True)
|
FaintAnimation.AnimationPlaySound(CStr(BattleScreen.OppPokemon.Number), 0, 2, False, True)
|
||||||
FaintAnimation.AnimationMove(Nothing, False, 0, -1, 0, 0.05, False, False, 2, 0,,, 3)
|
FaintAnimation.AnimationMove(Nothing, False, 0, -1, 0, 0.05, False, False, 2, 0,,, 3)
|
||||||
BattleScreen.BattleQuery.Add(FaintAnimation)
|
BattleScreen.BattleQuery.Add(FaintAnimation)
|
||||||
@ -7121,17 +7121,17 @@
|
|||||||
Loop While SmokeReturned <= 38
|
Loop While SmokeReturned <= 38
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
' Pokemon disappears
|
||||||
|
BallReturn.AnimationFade(Nothing, False, 1, False, 0, 1, 0)
|
||||||
If Core.Player.ShowBattleAnimations <> 0 Then
|
If Core.Player.ShowBattleAnimations <> 0 Then
|
||||||
' Pokemon disappears
|
|
||||||
BallReturn.AnimationFade(Nothing, False, 1, False, 0, 1, 0)
|
|
||||||
BallReturn.AnimationMove(Nothing, False, 0, 0.5, 0, 0.5, False, False, 2, 0,,, 3)
|
BallReturn.AnimationMove(Nothing, False, 0, 0.5, 0, 0.5, False, False, 2, 0,,, 3)
|
||||||
|
|
||||||
' Ball returns
|
' Ball returns
|
||||||
BallReturn.AnimationPlaySound("Battle\Pokeball\Throw", 1, 0)
|
BallReturn.AnimationPlaySound("Battle\Pokeball\Throw", 1, 0)
|
||||||
Dim BallReturnEntity As Entity = BallReturn.SpawnEntity(Nothing, BattleScreen.OwnPokemon.CatchBall.Texture, New Vector3(0.3F), 1.0F)
|
Dim BallReturnEntity As Entity = BallReturn.SpawnEntity(Nothing, BattleScreen.OwnPokemon.CatchBall.Texture, New Vector3(0.3F), 1.0F)
|
||||||
BallReturn.AnimationMove(BallReturnEntity, True, -2, 0, 0, 0.1, False, True, 1, 0,, 0.3)
|
BallReturn.AnimationMove(BallReturnEntity, True, -2, 0, 0, 0.1, False, True, 1, 0,, 0.3)
|
||||||
BattleScreen.AddToQuery(InsertIndex, BallReturn)
|
|
||||||
End If
|
End If
|
||||||
|
BattleScreen.AddToQuery(InsertIndex, BallReturn)
|
||||||
|
|
||||||
Dim index As Integer = NewPokemonIndex
|
Dim index As Integer = NewPokemonIndex
|
||||||
If index <= -1 Then
|
If index <= -1 Then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user