Check if opponent is frozen before defrosting

This commit is contained in:
JappaWakka 2023-04-08 20:12:42 +02:00
parent ccad3e1f21
commit 1bdd6e1c55
1 changed files with 4 additions and 2 deletions

View File

@ -2306,8 +2306,10 @@
If canUseEffect AndAlso multiUseEffect OrElse (multiUseEffect = False AndAlso i = TimesToAttack) Then
If substitute = 0 OrElse moveUsed.IsAffectedBySubstitute = False Then
moveUsed.MoveHits(own, BattleScreen)
If moveUsed.RemovesOppFrozen = True Then
CureStatusProblem(Not own, own, BattleScreen, op.GetDisplayName() & " got defrosted by " & moveUsed.Name & ".", "defrostmove")
If op.Status = Pokemon.StatusProblems.Freeze Then
If moveUsed.RemovesOppFrozen = True Then
CureStatusProblem(Not own, own, BattleScreen, op.GetDisplayName() & " got defrosted by " & moveUsed.Name & ".", "defrostmove")
End If
End If
End If
End If