mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-27 07:44:31 +02:00
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…
x
Reference in New Issue
Block a user