mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-10 06:34:59 +00:00
Fixed Cotton Down also lowering the bearer's speed, tweaked rendering of buttons in the Animation Editor
This commit is contained in:
@@ -1708,10 +1708,10 @@ Battle::AbilityEffects::OnBeingHit.add(:ANGERPOINT,
|
||||
|
||||
Battle::AbilityEffects::OnBeingHit.add(:COTTONDOWN,
|
||||
proc { |ability, user, target, move, battle|
|
||||
next if battle.allBattlers.none? { |b| b.pbCanLowerStatStage?(:DEFENSE, target) }
|
||||
next if battle.allBattlers.none? { |b| b.index != target.index && b.pbCanLowerStatStage?(:SPEED, target) }
|
||||
battle.pbShowAbilitySplash(target)
|
||||
battle.allBattlers.each do |b|
|
||||
b.pbLowerStatStageByAbility(:SPEED, 1, target, false)
|
||||
b.pbLowerStatStageByAbility(:SPEED, 1, target, false) if b.index != target.index
|
||||
end
|
||||
battle.pbHideAbilitySplash(target)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user