Fixed after fainting switch interaction with trapping moves/abilities

This commit is contained in:
CaptainSegis 2016-12-12 01:14:21 -05:00
parent 2d2de12ba8
commit 931b07f350
1 changed files with 6 additions and 0 deletions

View File

@ -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