mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-25 14:54:48 +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
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user