Fixed incorrect reflection layering, fixed Metal Burst counting damage taken by a substitute, fixed Metal Burst not trying to target all battlers that hit it, fixed Mega Scizor's stats

This commit is contained in:
Maruno17
2024-05-16 19:18:35 +01:00
parent 209a1ff1b3
commit b86d5b5b57
8 changed files with 17 additions and 13 deletions

View File

@@ -505,9 +505,12 @@ end
class Battle::Move::CounterDamagePlusHalf < Battle::Move::FixedDamageMove
def pbAddTarget(targets, user)
return if user.lastFoeAttacker.length == 0
lastAttacker = user.lastFoeAttacker.last
return if lastAttacker < 0 || !user.opposes?(lastAttacker)
user.pbAddTarget(targets, user, @battle.battlers[lastAttacker], self, false)
user.lastFoeAttacker.reverse_each do |party_index|
battler = @battle.pbFindBattler(party_index, user.index + 1)
next if !battler
user.pbAddTarget(targets, user, battler, self, false)
break
end
end
def pbMoveFailed?(user, targets)