Fixed Tar Shot crash + added message
This commit is contained in:
parent
f18dc03c4c
commit
8e2c45d78f
|
@ -55,21 +55,21 @@
|
|||
Me.AIField2 = AIField.CanLowerSpeed
|
||||
End Sub
|
||||
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")
|
||||
|
||||
With BattleScreen.FieldEffects
|
||||
If own = True Then
|
||||
If .OppTarShot = False Then
|
||||
.OppTarShot = True
|
||||
BattleScreen.BattleQuery.Add(New TextQueryObject(BattleScreen.OppPokemon.GetName & " " & "became weaker to fire!"))
|
||||
End If
|
||||
Else
|
||||
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 If
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
|
|
Loading…
Reference in New Issue