mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-27 15:54:25 +02:00
Check if opponent is frozen before defrosting
This commit is contained in:
parent
ccad3e1f21
commit
1bdd6e1c55
@ -2306,11 +2306,13 @@
|
||||
If canUseEffect AndAlso multiUseEffect OrElse (multiUseEffect = False AndAlso i = TimesToAttack) Then
|
||||
If substitute = 0 OrElse moveUsed.IsAffectedBySubstitute = False Then
|
||||
moveUsed.MoveHits(own, BattleScreen)
|
||||
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
|
||||
If op.HP > 0 AndAlso op.Status <> Pokemon.StatusProblems.Fainted Then
|
||||
If Not p.Item Is Nothing Then
|
||||
If p.Item.OriginalName.ToLower() = "king's rock" Or p.Item.OriginalName.ToLower() = "razor fang" And BattleScreen.FieldEffects.CanUseItem(own) = True And BattleScreen.FieldEffects.CanUseOwnItem(own, BattleScreen) = True Then
|
||||
|
Loading…
x
Reference in New Issue
Block a user