Implement Strange Steam attack

This commit is contained in:
JappaWakka 2023-12-04 09:22:09 +01:00
parent d9c26c8550
commit f3777e3130
3 changed files with 79 additions and 2 deletions

View File

@ -28784,6 +28784,7 @@
<Compile Include="Pokemon\Attacks\Fairy\Geomancy.vb" />
<Compile Include="Pokemon\Attacks\Fairy\LightOfRuin.vb" />
<Compile Include="Pokemon\Attacks\Fairy\FleurCannon.vb" />
<Compile Include="Pokemon\Attacks\Fairy\StrangeSteam.vb" />
<Compile Include="Pokemon\Attacks\Fairy\NaturesMadness.vb" />
<Compile Include="Pokemon\Attacks\Fighting\FinalGambit.vb" />
<Compile Include="Pokemon\Attacks\Fighting\FlyingPress.vb" />

View File

@ -1861,8 +1861,8 @@
'returnMove = New Moves.Grass.GravApple()
'Case 789
'returnMove = New Moves.Fairy.SpiritBreak()
'Case 790
'returnMove = New Moves.Fairy.StrangeSteam()
Case 790
returnMove = New Moves.Fairy.StrangeSteam()
'Case 791
'returnMove = New Moves.Water.LifeDew()
'Case 792

View File

@ -0,0 +1,76 @@
Namespace BattleSystem.Moves.Fairy
Public Class StrangeSteam
Inherits Attack
Public Sub New()
'#Definitions
Me.Type = New Element(Element.Types.Fairy)
Me.ID = 790
Me.OriginalPP = 10
Me.CurrentPP = 10
Me.MaxPP = 10
Me.Power = 90
Me.Accuracy = 95
Me.Category = Categories.Special
Me.ContestCategory = ContestCategories.Smart
Me.Name = Localization.GetString("move_name_" & Me.ID, "Strange Steam")
Me.Description = "The user attacks the target by emitting steam. This may also confuse the target."
Me.CriticalChance = 1
Me.IsHMMove = False
Me.Target = Targets.OneAdjacentTarget
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 = True
Me.CounterAffected = False
Me.DisabledWhileGravity = False
Me.UseEffectiveness = True
Me.ImmunityAffected = True
Me.RemovesOwnFrozen = False
Me.HasSecondaryEffect = True
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.CanConfuse
EffectChances.Add(20)
End Sub
Public Overrides Sub MoveHits(own As Boolean, BattleScreen As BattleScreen)
Dim p As Pokemon = BattleScreen.OwnPokemon
Dim op As Pokemon = BattleScreen.OppPokemon
If own = False Then
p = BattleScreen.OppPokemon
op = BattleScreen.OwnPokemon
End If
Dim chance As Integer = GetEffectChance(0, own, BattleScreen)
If Core.Random.Next(0, 100) < chance Then
BattleScreen.Battle.InflictConfusion(Not own, own, BattleScreen, "", "move:strangesteam")
End If
End Sub
End Class
End Namespace