mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-27 15:54:25 +02:00
Fix crash when you can't switch (shadow tag etc.)
This commit is contained in:
parent
5f826a799a
commit
24e1335caa
@ -856,8 +856,8 @@
|
|||||||
ChangeCameraAngle(0, True, BattleScreen)
|
ChangeCameraAngle(0, True, BattleScreen)
|
||||||
BattleScreen.BattleQuery.Add(New TextQueryObject(BattleScreen.OwnPokemon.GetDisplayName() & " is trapped!"))
|
BattleScreen.BattleQuery.Add(New TextQueryObject(BattleScreen.OwnPokemon.GetDisplayName() & " is trapped!"))
|
||||||
|
|
||||||
BattleScreen.FieldEffects.OppUsedMoves.Add(CInt(OppStep.Argument))
|
Dim oppMove As Attack = CType(OppStep.Argument, Attack)
|
||||||
Dim oppMove As Attack = Attack.GetAttackByID(CInt(OppStep.Argument))
|
BattleScreen.FieldEffects.OppUsedMoves.Add(oppMove.ID)
|
||||||
If SelectedMoveOpp = True Then oppMove.MoveSelected(False, BattleScreen)
|
If SelectedMoveOpp = True Then oppMove.MoveSelected(False, BattleScreen)
|
||||||
DoAttackRound(BattleScreen, False, oppMove)
|
DoAttackRound(BattleScreen, False, oppMove)
|
||||||
EndRound(BattleScreen, 2)
|
EndRound(BattleScreen, 2)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user