70 lines
2.1 KiB
VB.net
70 lines
2.1 KiB
VB.net
Namespace BattleSystem.Moves.Steel
|
|
|
|
Public Class SteelBeam
|
|
|
|
Inherits Attack
|
|
|
|
Public Sub New()
|
|
'#Definitions
|
|
Me.Type = New Element(Element.Types.Steel)
|
|
Me.ID = 796
|
|
Me.OriginalPP = 5
|
|
Me.CurrentPP = 5
|
|
Me.MaxPP = 5
|
|
Me.Power = 140
|
|
Me.Accuracy = 95
|
|
Me.Category = Categories.Special
|
|
Me.ContestCategory = ContestCategories.Smart
|
|
Me.Name = Localization.GetString("move_name_" & Me.ID,"Steel Beam")
|
|
Me.Description = "The user fires a beam of steel that it collected from its entire body. This also damages the user."
|
|
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 = True
|
|
|
|
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 Sub PreAttack(Own As Boolean, BattleScreen As BattleScreen)
|
|
Dim p As Pokemon = BattleScreen.OwnPokemon
|
|
If Own = False Then
|
|
p = BattleScreen.OppPokemon
|
|
End If
|
|
|
|
BattleScreen.Battle.ReduceHP(CInt(Math.Floor(p.MaxHP / 2)), Own, Own, BattleScreen, "", "move:steelbeam")
|
|
End Sub
|
|
|
|
End Class
|
|
|
|
End Namespace
|