mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-31 01:35:20 +02:00
Implement Strange Steam attack
This commit is contained in:
parent
d9c26c8550
commit
f3777e3130
@ -28784,6 +28784,7 @@
|
|||||||
<Compile Include="Pokemon\Attacks\Fairy\Geomancy.vb" />
|
<Compile Include="Pokemon\Attacks\Fairy\Geomancy.vb" />
|
||||||
<Compile Include="Pokemon\Attacks\Fairy\LightOfRuin.vb" />
|
<Compile Include="Pokemon\Attacks\Fairy\LightOfRuin.vb" />
|
||||||
<Compile Include="Pokemon\Attacks\Fairy\FleurCannon.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\Fairy\NaturesMadness.vb" />
|
||||||
<Compile Include="Pokemon\Attacks\Fighting\FinalGambit.vb" />
|
<Compile Include="Pokemon\Attacks\Fighting\FinalGambit.vb" />
|
||||||
<Compile Include="Pokemon\Attacks\Fighting\FlyingPress.vb" />
|
<Compile Include="Pokemon\Attacks\Fighting\FlyingPress.vb" />
|
||||||
|
@ -1861,8 +1861,8 @@
|
|||||||
'returnMove = New Moves.Grass.GravApple()
|
'returnMove = New Moves.Grass.GravApple()
|
||||||
'Case 789
|
'Case 789
|
||||||
'returnMove = New Moves.Fairy.SpiritBreak()
|
'returnMove = New Moves.Fairy.SpiritBreak()
|
||||||
'Case 790
|
Case 790
|
||||||
'returnMove = New Moves.Fairy.StrangeSteam()
|
returnMove = New Moves.Fairy.StrangeSteam()
|
||||||
'Case 791
|
'Case 791
|
||||||
'returnMove = New Moves.Water.LifeDew()
|
'returnMove = New Moves.Water.LifeDew()
|
||||||
'Case 792
|
'Case 792
|
||||||
|
76
P3D/Pokemon/Attacks/Fairy/StrangeSteam.vb
Normal file
76
P3D/Pokemon/Attacks/Fairy/StrangeSteam.vb
Normal 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
|
Loading…
x
Reference in New Issue
Block a user