Fix crash damage not happening when blocked
This commit is contained in:
parent
6ca5a5442c
commit
e47f20ef35
|
@ -2036,6 +2036,7 @@
|
||||||
|
|
||||||
If protectWorks = True Then
|
If protectWorks = True Then
|
||||||
BattleScreen.BattleQuery.Add(New TextQueryObject(op.GetDisplayName() & " protected itself!"))
|
BattleScreen.BattleQuery.Add(New TextQueryObject(op.GetDisplayName() & " protected itself!"))
|
||||||
|
moveUsed.MoveProtectedDetected(own, BattleScreen)
|
||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
@ -2054,6 +2055,7 @@
|
||||||
|
|
||||||
If detectWorks = True Then
|
If detectWorks = True Then
|
||||||
BattleScreen.BattleQuery.Add(New TextQueryObject(op.GetDisplayName() & " protected itself!"))
|
BattleScreen.BattleQuery.Add(New TextQueryObject(op.GetDisplayName() & " protected itself!"))
|
||||||
|
moveUsed.MoveProtectedDetected(own, BattleScreen)
|
||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
@ -2076,7 +2078,7 @@
|
||||||
If moveUsed.MakesContact = True Then
|
If moveUsed.MakesContact = True Then
|
||||||
Me.LowerStat(own, Not own, BattleScreen, "Attack", 1, "", "move:kingsshield")
|
Me.LowerStat(own, Not own, BattleScreen, "Attack", 1, "", "move:kingsshield")
|
||||||
End If
|
End If
|
||||||
|
moveUsed.MoveProtectedDetected(own, BattleScreen)
|
||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
Loading…
Reference in New Issue