mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-27 15:54:25 +02:00
Fix defrosting moves not working
By putting the move defrost check before the freeze animation/move cancelation check
This commit is contained in:
parent
f1484c77ca
commit
ae5a26f8e3
@ -1241,6 +1241,12 @@
|
|||||||
Dim q As CameraQueryObject = CType(BattleScreen.FocusBattle(), CameraQueryObject) : q.ApplyCurrentCamera = True : BattleScreen.BattleQuery.Add(q)
|
Dim q As CameraQueryObject = CType(BattleScreen.FocusBattle(), CameraQueryObject) : q.ApplyCurrentCamera = True : BattleScreen.BattleQuery.Add(q)
|
||||||
BattleScreen.BattleQuery.Add(New DelayQueryObject(20))
|
BattleScreen.BattleQuery.Add(New DelayQueryObject(20))
|
||||||
|
|
||||||
|
If p.Status = Pokemon.StatusProblems.Freeze Then
|
||||||
|
If moveUsed.RemovesFrozen = True Then
|
||||||
|
CureStatusProblem(own, own, BattleScreen, p.GetDisplayName() & " got defrosted by " & moveUsed.Name & ".", "defrostmove")
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
If p.Status = Pokemon.StatusProblems.Freeze Then
|
If p.Status = Pokemon.StatusProblems.Freeze Then
|
||||||
If Core.Random.Next(0, 100) < 20 Then
|
If Core.Random.Next(0, 100) < 20 Then
|
||||||
CureStatusProblem(own, own, BattleScreen, p.GetDisplayName() & " thawed out.", "own defrost")
|
CureStatusProblem(own, own, BattleScreen, p.GetDisplayName() & " thawed out.", "own defrost")
|
||||||
@ -1594,12 +1600,6 @@
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If p.Status = Pokemon.StatusProblems.Freeze Then
|
|
||||||
If moveUsed.RemovesFrozen = True Then
|
|
||||||
CureStatusProblem(own, own, BattleScreen, p.GetDisplayName() & " got defrosted by " & moveUsed.Name & ".", "defrostmove")
|
|
||||||
End If
|
|
||||||
End If
|
|
||||||
|
|
||||||
If own = True Then
|
If own = True Then
|
||||||
BattleScreen.FieldEffects.OwnLastMove = moveUsed
|
BattleScreen.FieldEffects.OwnLastMove = moveUsed
|
||||||
Else
|
Else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user