Fixed Tar Shot crash + added message
This commit is contained in:
parent
f18dc03c4c
commit
8e2c45d78f
|
@ -55,21 +55,21 @@
|
||||||
Me.AIField2 = AIField.CanLowerSpeed
|
Me.AIField2 = AIField.CanLowerSpeed
|
||||||
End Sub
|
End Sub
|
||||||
Public Overrides Sub MoveHits(own As Boolean, BattleScreen As BattleScreen)
|
Public Overrides Sub MoveHits(own As Boolean, BattleScreen As BattleScreen)
|
||||||
If Core.Random.Next(0, 100) < GetEffectChance(0, own, BattleScreen) Then
|
BattleScreen.Battle.LowerStat(Not own, own, BattleScreen, "Speed", 1, "", "move:tarshot")
|
||||||
BattleScreen.Battle.LowerStat(Not own, own, BattleScreen, "Speed", 1, "", "move:tarshot")
|
|
||||||
|
|
||||||
With BattleScreen.FieldEffects
|
With BattleScreen.FieldEffects
|
||||||
If own = True Then
|
If own = True Then
|
||||||
If .OppTarShot = False Then
|
If .OppTarShot = False Then
|
||||||
.OppTarShot = True
|
.OppTarShot = True
|
||||||
End If
|
BattleScreen.BattleQuery.Add(New TextQueryObject(BattleScreen.OppPokemon.GetName & " " & "became weaker to fire!"))
|
||||||
Else
|
|
||||||
If .OwnTarShot = False Then
|
|
||||||
.OwnTarShot = True
|
|
||||||
End If
|
|
||||||
End If
|
End If
|
||||||
End With
|
Else
|
||||||
End If
|
If .OwnTarShot = False Then
|
||||||
|
.OwnTarShot = True
|
||||||
|
BattleScreen.BattleQuery.Add(New TextQueryObject(BattleScreen.OwnPokemon.GetName & " " & "became weaker to fire!"))
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
End With
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
Loading…
Reference in New Issue