Namespace BattleSystem.Moves.Dark Public Class DarkVoid Inherits Attack Public Sub New() '#Definitions Me.Type = New Element(Element.Types.Dark) Me.ID = 464 Me.OriginalPP = 10 Me.CurrentPP = 10 Me.MaxPP = 10 Me.Power = 0 Me.Accuracy = 50 Me.Category = Categories.Status Me.ContestCategory = ContestCategories.Smart Me.Name = "Dark Void" Me.Description = "Opposing Pokémon are dragged into a world of total darkness that makes them sleep." Me.CriticalChance = 0 Me.IsHMMove = False Me.Target = Targets.AllAdjacentFoes 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 = False Me.DisabledWhileGravity = False Me.UseEffectiveness = False Me.ImmunityAffected = False Me.RemovesFrozen = False Me.HasSecondaryEffect = False Me.IsHealingMove = False Me.IsRecoilMove = False Me.IsPunchingMove = False Me.IsDamagingMove = False Me.IsProtectMove = False Me.IsSoundMove = False Me.IsAffectedBySubstitute = True Me.IsOneHitKOMove = False Me.IsWonderGuardAffected = False '#End Me.AIField1 = AIField.Sleep Me.AIField2 = AIField.Nothing End Sub Public Overrides Function MoveFailBeforeAttack(Own As Boolean, BattleScreen As BattleScreen) As Boolean Dim p As Pokemon = BattleScreen.OwnPokemon If Own = False Then p = BattleScreen.OppPokemon End If If p.Number = 491 Then Return False Else BattleScreen.BattleQuery.Add(New TextQueryObject("But " & p.GetDisplayName() & " can't use the move!")) Return True End If End Function Public Overrides Sub MoveHits(own As Boolean, BattleScreen As BattleScreen) Dim p As Pokemon = BattleScreen.OwnPokemon If own = False Then p = BattleScreen.OppPokemon End If Dim b As Boolean = BattleScreen.Battle.InflictSleep(Not own, own, BattleScreen, -1, "", "move:darkvoid") If b = False Then BattleScreen.BattleQuery.Add(New TextQueryObject(Me.Name & " failed!")) End If End Sub End Class End Namespace