Belly Drum fails if attack maxed, fixed stat messages

This commit is contained in:
Ruan Pablo 2019-10-02 17:31:27 -03:00
parent f56696df23
commit 8bb0c00a10
2 changed files with 18 additions and 6 deletions

View File

@ -3347,11 +3347,7 @@
Select Case val Select Case val
Case 2 Case 2
printMessage &= " sharply rose!" printMessage &= " sharply rose!"
Case 3 Case 3, 4, 5
printMessage &= " rose drastically!"
Case 4
printMessage &= " rose drastically!"
Case 5
printMessage &= " rose drastically!" printMessage &= " rose drastically!"
Case 6 Case 6
printMessage &= " was maximized!" printMessage &= " was maximized!"
@ -3611,8 +3607,10 @@
Select Case val Select Case val
Case 2 Case 2
printMessage &= " sharply fell!" printMessage &= " sharply fell!"
Case 3 Case 3, 4, 5
printMessage &= " fell drastically!" printMessage &= " fell drastically!"
Case 6
printMessage &= " was minimized!"
Case Else Case Else
printMessage &= " slightly fell." printMessage &= " slightly fell."
End Select End Select

View File

@ -55,6 +55,20 @@
Me.AIField2 = AIField.Nothing Me.AIField2 = AIField.Nothing
End Sub End Sub
Public Overrides Function MoveFailBeforeAttack(Own As Boolean, BattleScreen As BattleScreen) As Boolean
Dim p As Pokemon = BattleScreen.OwnPokemon
If Own = False Then
p = BattleScreen.OppPokemon
End If
If p.StatAttack = 6 Then
BattleScreen.BattleQuery.Add(New TextQueryObject(Me.Name & " failed!"))
Return True
Else
Return False
End If
End Function
Public Overrides Sub MoveHits(own As Boolean, BattleScreen As BattleScreen) Public Overrides Sub MoveHits(own As Boolean, BattleScreen As BattleScreen)
Dim p As Pokemon = BattleScreen.OwnPokemon Dim p As Pokemon = BattleScreen.OwnPokemon
If own = False Then If own = False Then