Fixed after fainting switch interaction with trapping moves/abilities
This commit is contained in:
parent
2d2de12ba8
commit
931b07f350
|
@ -898,6 +898,9 @@
|
|||
'Trapping: Bind, Clamp, Fire Spin, Infestation, Magma Storm, Sand Tomb, Whirlpool, Wrap
|
||||
|
||||
If own = True Then
|
||||
If BattleScreen.OwnPokemon.Status = Pokemon.StatusProblems.Fainted Or BattleScreen.OwnPokemon.HP <= 0 Then
|
||||
Return True
|
||||
End If
|
||||
If BattleScreen.OppPokemon.Ability.Name.ToLower() = "shadow tag" And BattleScreen.OwnPokemon.Ability.Name.ToLower() <> "shadow tag" Then
|
||||
Return False
|
||||
End If
|
||||
|
@ -927,6 +930,9 @@
|
|||
Return False
|
||||
End If
|
||||
Else
|
||||
If BattleScreen.OppPokemon.Status = Pokemon.StatusProblems.Fainted Or BattleScreen.OppPokemon.HP <= 0 Then
|
||||
Return True
|
||||
End If
|
||||
If BattleScreen.OwnPokemon.Ability.Name.ToLower() = "shadow tag" And BattleScreen.OppPokemon.Ability.Name.ToLower() <> "shadow tag" Then
|
||||
Return False
|
||||
End If
|
||||
|
|
Loading…
Reference in New Issue