Namespace BattleSystem.Moves.Poison Public Class Acid Inherits Attack Public Sub New() '#Definitions Me.Type = New Element(Element.Types.Poison) Me.ID = 51 Me.OriginalPP = 30 Me.CurrentPP = 30 Me.MaxPP = 30 Me.Power = 40 Me.Accuracy = 100 Me.Category = Categories.Special Me.ContestCategory = ContestCategories.Smart Me.Name = Localization.GetString("move_name_" & Me.ID,"Acid") Me.Description = "The opposing team is attacked with a spray of harsh acid. The acid may also lower the targets' Sp. Def stats." Me.CriticalChance = 1 Me.IsHMMove = False Me.Target = Targets.OneAdjacentFoe Me.Priority = 0 Me.TimesToAttack = 1 '#End '#SpecialDefinitions Me.MakesContact = False Me.ProtectAffected = True Me.MagicCoatAffected = False Me.SnatchAffected = False Me.MirrorMoveAffected = True Me.KingsrockAffected = False Me.CounterAffected = False Me.DisabledWhileGravity = False Me.UseEffectiveness = True Me.ImmunityAffected = True Me.HasSecondaryEffect = True Me.RemovesFrozen = 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.CanLowerSpDefense Me.EffectChances.Add(10) End Sub Public Overrides Sub MoveHits(own As Boolean, BattleScreen As BattleScreen) Dim chance As Integer = GetEffectChance(0, own, BattleScreen) If Core.Random.Next(0, 100) < chance Then BattleScreen.Battle.LowerStat(Not own, own, BattleScreen, "Special Defense", 1, "", "move:acid") End If End Sub End Class End Namespace