mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-04-08 18:35:09 +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)
|
||||
BattleScreen.BattleQuery.Add(New TextQueryObject(BattleScreen.OwnPokemon.GetDisplayName() & " is trapped!"))
|
||||
|
||||
BattleScreen.FieldEffects.OppUsedMoves.Add(CInt(OppStep.Argument))
|
||||
Dim oppMove As Attack = Attack.GetAttackByID(CInt(OppStep.Argument))
|
||||
Dim oppMove As Attack = CType(OppStep.Argument, Attack)
|
||||
BattleScreen.FieldEffects.OppUsedMoves.Add(oppMove.ID)
|
||||
If SelectedMoveOpp = True Then oppMove.MoveSelected(False, BattleScreen)
|
||||
DoAttackRound(BattleScreen, False, oppMove)
|
||||
EndRound(BattleScreen, 2)
|
||||
|
Loading…
x
Reference in New Issue
Block a user