73 lines
2.3 KiB
VB.net
73 lines
2.3 KiB
VB.net
Namespace BattleSystem.Moves.Dark
|
|
|
|
Public Class Assurance
|
|
|
|
Inherits Attack
|
|
|
|
Public Sub New()
|
|
'#Definitions
|
|
Me.Type = New Element(Element.Types.Dark)
|
|
Me.ID = 372
|
|
Me.OriginalPP = 10
|
|
Me.CurrentPP = 10
|
|
Me.MaxPP = 10
|
|
Me.Power = 60
|
|
Me.Accuracy = 100
|
|
Me.Category = Categories.Physical
|
|
Me.ContestCategory = ContestCategories.Smart
|
|
Me.Name = Localization.GetString("move_name_" & Me.ID,"Assurance")
|
|
Me.Description = "If the target has already taken some damage in the same turn, this attack's power is doubled."
|
|
Me.CriticalChance = 1
|
|
Me.IsHMMove = False
|
|
Me.Target = Targets.OneAdjacentTarget
|
|
Me.Priority = 0
|
|
Me.TimesToAttack = 1
|
|
'#End
|
|
|
|
'#SpecialDefinitions
|
|
Me.MakesContact = True
|
|
Me.ProtectAffected = True
|
|
Me.MagicCoatAffected = False
|
|
Me.SnatchAffected = False
|
|
Me.MirrorMoveAffected = True
|
|
Me.KingsrockAffected = True
|
|
Me.CounterAffected = True
|
|
|
|
Me.DisabledWhileGravity = False
|
|
Me.UseEffectiveness = True
|
|
Me.ImmunityAffected = True
|
|
Me.HasSecondaryEffect = False
|
|
Me.RemovesOwnFrozen = False
|
|
|
|
Me.IsHealingMove = False
|
|
Me.IsRecoilMove = False
|
|
|
|
Me.IsDamagingMove = True
|
|
Me.IsProtectMove = False
|
|
|
|
|
|
Me.IsAffectedBySubstitute = True
|
|
Me.IsOneHitKOMove = False
|
|
Me.IsWonderGuardAffected = True
|
|
'#End
|
|
|
|
Me.AIField1 = AIField.Damage
|
|
Me.AIField2 = AIField.Nothing
|
|
End Sub
|
|
|
|
Public Overrides Function GetBasePower(own As Boolean, BattleScreen As BattleScreen) As Integer
|
|
If own = True Then
|
|
If BattleScreen.FieldEffects.OwnPokemonDamagedThisTurn = True Then
|
|
Return Me.Power * 2
|
|
End If
|
|
Else
|
|
If BattleScreen.FieldEffects.OppPokemonDamagedThisTurn = True Then
|
|
Return Me.Power * 2
|
|
End If
|
|
End If
|
|
Return Me.Power
|
|
End Function
|
|
|
|
End Class
|
|
|
|
End Namespace |