mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 13:44:59 +00:00
More Gen 9 move effects
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user