Merge pull request #6 from P3D-Legacy/FoulPlay-implementation

Create FoulPlay.vb
This commit is contained in:
Capt_Segis 2016-09-14 04:00:48 -05:00 committed by GitHub
commit db170575af
3 changed files with 67 additions and 4 deletions

View File

@ -1170,8 +1170,13 @@
Dim IM As Single = 1.0F Dim IM As Single = 1.0F
If Attack.Category = Attack.Categories.Physical Then If Attack.Category = Attack.Categories.Physical Then
AStat = Attack.GetUseAttackStat(p) If Attack.ID = 492 Then
ASM = GetMultiplierFromStat(p.StatAttack) AStat = Attack.GetUseAttackStat(Op) 'When the move is Foul Play
ASM = GetMultiplierFromStat(Op.StatAttack)
Else
AStat = Attack.GetUseAttackStat(p)
ASM = GetMultiplierFromStat(p.StatAttack)
End If
If BattleScreen.FieldEffects.CanUseAbility(Not Own, BattleScreen) = True Then If BattleScreen.FieldEffects.CanUseAbility(Not Own, BattleScreen) = True Then
If Op.Ability.Name.ToLower() = "unaware" Then If Op.Ability.Name.ToLower() = "unaware" Then

View File

@ -1230,8 +1230,8 @@
returnMove = New Moves.Fighting.LowSweep() returnMove = New Moves.Fighting.LowSweep()
Case 491 Case 491
returnMove = New Moves.Poison.AcidSpray() returnMove = New Moves.Poison.AcidSpray()
'Case 492 Case 492
'Foul Play returnMove = New Moves.Dark.FoulPlay()
'Case 493 'Case 493
'Simple Beam 'Simple Beam
'Case 494 'Case 494

View File

@ -0,0 +1,58 @@
Namespace BattleSystem.Moves.Dark
Public Class FoulPlay
Inherits Attack
Public Sub New()
'#Definitions
Me.Type = New Element(Element.Types.Dark)
Me.ID = 492
Me.OriginalPP = 15
Me.CurrentPP = 15
Me.MaxPP = 15
Me.Power = 95
Me.Accuracy = 100
Me.Category = Categories.Physical
Me.ContestCategory = ContestCategories.Smart
Me.Name = "Foul Play"
Me.Description = " The user turns the target's power against it. The higher the target's Attack stat, the greater the move's power."
Me.CriticalChance = 1
Me.IsHMMove = False
Me.Target = Targets.OneAdjacentTarget
Me.Priority = 0
Me.TimesToAttack = 1
'#End
'#SpecialDefinitions
Me.MakesContact = True
Me.ProtectAffected = True
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 = True
Me.RemovesFrozen = False
Me.IsHealingMove = False
Me.IsRecoilMove = False
Me.IsPunchingMove = False
Me.IsDamagingMove = True
Me.IsProtectMove = False
Me.IsSoundMove = False
Me.IsAffectedBySubstitute = True
Me.IsOneHitKOMove = False
Me.IsWonderGuardAffected = True
Me.IsJawMove = False
'#End
End Sub
End Class
End Namespace