Fix moves being able to do 0 damage

This commit is contained in:
JappaWakka 2023-11-08 10:14:18 +01:00
parent 96a47d3418
commit 5019a59c0d
1 changed files with 8 additions and 1 deletions

View File

@ -2152,8 +2152,15 @@
Damage = moveUsed.GetDamage(Critical, own, Not own, BattleScreen) Damage = moveUsed.GetDamage(Critical, own, Not own, BattleScreen)
End If End If
If effectiveness <> 0 Then If effectiveness <> 0 Then
If Damage = 0 Then
BattleScreen.BattleQuery.Add(New TextQueryObject("But it failed..."))
moveUsed.MoveMisses(own, BattleScreen)
effectiveness = 0
Exit For
End If
Dim sturdyWorked As Boolean = False Dim sturdyWorked As Boolean = False
If substitute = 0 Then If substitute = 0 Then