Fix crash damage not happening when blocked

This commit is contained in:
JappaWakka 2024-04-07 12:17:18 +02:00
parent 6ca5a5442c
commit e47f20ef35
1 changed files with 3 additions and 1 deletions

View File

@ -2036,6 +2036,7 @@
If protectWorks = True Then
BattleScreen.BattleQuery.Add(New TextQueryObject(op.GetDisplayName() & " protected itself!"))
moveUsed.MoveProtectedDetected(own, BattleScreen)
Exit Sub
End If
End If
@ -2054,6 +2055,7 @@
If detectWorks = True Then
BattleScreen.BattleQuery.Add(New TextQueryObject(op.GetDisplayName() & " protected itself!"))
moveUsed.MoveProtectedDetected(own, BattleScreen)
Exit Sub
End If
End If
@ -2076,7 +2078,7 @@
If moveUsed.MakesContact = True Then
Me.LowerStat(own, Not own, BattleScreen, "Attack", 1, "", "move:kingsshield")
End If
moveUsed.MoveProtectedDetected(own, BattleScreen)
Exit Sub
End If
End If