2022-04-09 05:07:25 +02:00
|
|
|
|
Namespace BattleSystem.Moves.Rock
|
|
|
|
|
|
|
|
|
|
Public Class TarShot
|
|
|
|
|
|
|
|
|
|
Inherits Attack
|
|
|
|
|
|
|
|
|
|
Public Sub New()
|
|
|
|
|
'#Definitions
|
|
|
|
|
Me.Type = New Element(Element.Types.Rock)
|
|
|
|
|
Me.ID = 749
|
|
|
|
|
Me.OriginalPP = 15
|
|
|
|
|
Me.CurrentPP = 15
|
|
|
|
|
Me.MaxPP = 15
|
|
|
|
|
Me.Power = 0
|
|
|
|
|
Me.Accuracy = 100
|
|
|
|
|
Me.Category = Categories.Status
|
|
|
|
|
Me.ContestCategory = ContestCategories.Cool
|
2022-12-04 20:11:29 +01:00
|
|
|
|
Me.Name = Localization.GetString("move_name_" & Me.ID,"Tar Shot")
|
2022-04-09 05:07:25 +02:00
|
|
|
|
Me.Description = "The user pours sticky tar over the target, lowering the target's Speed stat. The target becomes weaker to Fire-type moves."
|
|
|
|
|
Me.CriticalChance = 1
|
|
|
|
|
Me.IsHMMove = False
|
|
|
|
|
Me.Target = Targets.OneAdjacentTarget
|
|
|
|
|
Me.Priority = 0
|
|
|
|
|
Me.TimesToAttack = 1
|
|
|
|
|
'#End
|
|
|
|
|
|
|
|
|
|
'#SpecialDefinitions
|
|
|
|
|
Me.MakesContact = False
|
|
|
|
|
Me.ProtectAffected = True
|
|
|
|
|
Me.MagicCoatAffected = True
|
|
|
|
|
Me.SnatchAffected = False
|
|
|
|
|
Me.MirrorMoveAffected = True
|
|
|
|
|
Me.KingsrockAffected = False
|
|
|
|
|
Me.CounterAffected = True
|
|
|
|
|
|
|
|
|
|
Me.DisabledWhileGravity = False
|
|
|
|
|
Me.UseEffectiveness = False
|
|
|
|
|
Me.ImmunityAffected = True
|
2023-04-01 08:58:01 +02:00
|
|
|
|
Me.RemovesOwnFrozen = False
|
2022-04-09 05:07:25 +02:00
|
|
|
|
Me.HasSecondaryEffect = False
|
|
|
|
|
|
|
|
|
|
Me.IsHealingMove = False
|
|
|
|
|
Me.IsRecoilMove = False
|
2022-12-20 17:40:04 +01:00
|
|
|
|
|
2022-04-09 05:07:25 +02:00
|
|
|
|
Me.IsDamagingMove = False
|
|
|
|
|
Me.IsProtectMove = False
|
2022-12-20 17:40:04 +01:00
|
|
|
|
|
2022-04-09 05:07:25 +02:00
|
|
|
|
|
|
|
|
|
Me.IsAffectedBySubstitute = True
|
|
|
|
|
Me.IsOneHitKOMove = False
|
|
|
|
|
Me.IsWonderGuardAffected = True
|
|
|
|
|
'#End
|
|
|
|
|
|
|
|
|
|
Me.AIField1 = AIField.Damage
|
|
|
|
|
Me.AIField2 = AIField.CanLowerSpeed
|
|
|
|
|
End Sub
|
|
|
|
|
Public Overrides Sub MoveHits(own As Boolean, BattleScreen As BattleScreen)
|
2022-05-06 23:04:29 +02:00
|
|
|
|
BattleScreen.Battle.LowerStat(Not own, own, BattleScreen, "Speed", 1, "", "move:tarshot")
|
2022-04-17 16:56:57 +02:00
|
|
|
|
|
2022-05-06 23:04:29 +02:00
|
|
|
|
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!"))
|
2022-04-17 16:56:57 +02:00
|
|
|
|
End If
|
2022-05-06 23:04:29 +02:00
|
|
|
|
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
|
2022-04-09 05:07:25 +02:00
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
End Class
|
|
|
|
|
|
|
|
|
|
End Namespace
|