Namespace BattleSystem.Moves.Normal Public Class Feint Inherits Attack Public Sub New() '#Definitions Me.Type = New Element(Element.Types.Normal) Me.ID = 364 Me.OriginalPP = 10 Me.CurrentPP = 10 Me.MaxPP = 10 Me.Power = 30 Me.Accuracy = 100 Me.Category = Categories.Physical Me.ContestCategory = ContestCategories.Beauty Me.Name = "Feint" Me.Description = "An attack that hits a target using Protect or Detect. This also lifts the effects of those moves." Me.CriticalChance = 0 Me.IsHMMove = False Me.Target = Targets.OneAdjacentTarget Me.Priority = 2 Me.TimesToAttack = 1 '#End '#SpecialDefinitions Me.MakesContact = False Me.ProtectAffected = False Me.MagicCoatAffected = False Me.SnatchAffected = False Me.MirrorMoveAffected = True Me.KingsrockAffected = False Me.CounterAffected = True Me.DisabledWhileGravity = False Me.UseEffectiveness = True Me.ImmunityAffected = True Me.HasSecondaryEffect = False Me.RemovesFrozen = False Me.IsHealingMove = False Me.IsRecoilMove = False Me.IsPunchingMove = True Me.IsDamagingMove = True Me.IsProtectMove = False Me.IsSoundMove = False Me.IsAffectedBySubstitute = True Me.IsOneHitKOMove = False Me.IsWonderGuardAffected = True '#End Me.AIField1 = AIField.Damage Me.AIField2 = AIField.Nothing End Sub Public Overrides Sub MoveHits(own As Boolean, BattleScreen As BattleScreen) Dim op As Pokemon = BattleScreen.OppPokemon If own = True Then BattleScreen.FieldEffects.OppDetectCounter = 0 BattleScreen.FieldEffects.OppProtectCounter = 0 Else op = BattleScreen.OwnPokemon BattleScreen.FieldEffects.OwnDetectCounter = 0 BattleScreen.FieldEffects.OwnProtectCounter = 0 End If BattleScreen.BattleQuery.Add(New TextQueryObject("Feint lifted " & op.GetDisplayName() & "'s protection!")) End Sub End Class End Namespace