mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-23 22:05:36 +02:00
Added FoulPlay condition
Takes target's attack stat on account when the used move is Foul Play.
This commit is contained in:
parent
4077bf3aa7
commit
cd98c49076
@ -1159,8 +1159,13 @@
|
||||
Dim IM As Single = 1.0F
|
||||
|
||||
If Attack.Category = Attack.Categories.Physical Then
|
||||
AStat = Attack.GetUseAttackStat(p)
|
||||
ASM = GetMultiplierFromStat(p.StatAttack)
|
||||
If Attack.ID = 492 Then
|
||||
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 Op.Ability.Name.ToLower() = "unaware" Then
|
||||
|
Loading…
x
Reference in New Issue
Block a user