More Gen 9 move effects

This commit is contained in:
Maruno17
2024-06-24 21:51:49 +01:00
parent 8e9417c3b7
commit ff2d8e5f55
21 changed files with 673 additions and 55 deletions

View File

@@ -155,8 +155,14 @@ end
class Battle::Move::StatDownMove < Battle::Move
attr_reader :statDown
def pbOnStartUse(user, targets)
@stats_lowered = false
end
def pbEffectWhenDealingDamage(user, target)
return if @stats_lowered
return if @battle.pbAllFainted?(target.idxOwnSide)
@stats_lowered = true
showAnim = true
(@statDown.length / 2).times do |i|
next if !user.pbCanLowerStatStage?(@statDown[i * 2], user, self)