P3D-Legacy/P3D/Pokemon/Attacks/Ice/Haze.vb

82 lines
2.5 KiB
VB.net
Raw Normal View History

2016-09-07 18:50:38 +02:00
Namespace BattleSystem.Moves.Ice
Public Class Haze
Inherits Attack
Public Sub New()
'#Definitions
Me.Type = New Element(Element.Types.Ice)
Me.ID = 114
Me.OriginalPP = 30
Me.CurrentPP = 30
Me.MaxPP = 30
Me.Power = 0
Me.Accuracy = 0
Me.Category = Categories.Status
Me.ContestCategory = ContestCategories.Beauty
2022-12-04 20:11:29 +01:00
Me.Name = Localization.GetString("move_name_" & Me.ID,"Haze")
2016-09-07 18:50:38 +02:00
Me.Description = "The user creates a haze that eliminates every stat change among all the Pokémon engaged in battle."
Me.CriticalChance = 0
Me.IsHMMove = False
Me.Target = Targets.AllTargets
Me.Priority = 0
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 = False
Me.DisabledWhileGravity = False
Me.UseEffectiveness = False
Me.ImmunityAffected = False
Me.HasSecondaryEffect = False
Me.RemovesOwnFrozen = False
2016-09-07 18:50:38 +02:00
Me.IsHealingMove = False
Me.IsRecoilMove = False
2016-09-07 18:50:38 +02:00
Me.IsDamagingMove = False
Me.IsProtectMove = False
2016-09-07 18:50:38 +02:00
Me.IsAffectedBySubstitute = False
Me.IsOneHitKOMove = False
Me.IsWonderGuardAffected = False
'#End
Me.AIField1 = AIField.Support
Me.AIField2 = AIField.Nothing
End Sub
Public Overrides Sub MoveHits(own As Boolean, BattleScreen As BattleScreen)
With BattleScreen.OwnPokemon
.StatAttack = 0
.StatDefense = 0
.StatSpAttack = 0
.StatSpDefense = 0
.StatSpeed = 0
.Accuracy = 0
.Evasion = 0
End With
With BattleScreen.OppPokemon
.StatAttack = 0
.StatDefense = 0
.StatSpAttack = 0
.StatSpDefense = 0
.StatSpeed = 0
.Accuracy = 0
.Evasion = 0
End With
BattleScreen.BattleQuery.Add(New TextQueryObject("All stat changes were eliminated!"))
End Sub
End Class
End Namespace