Update 6.8

This commit is contained in:
chardub
2026-07-10 15:42:06 -04:00
parent 5b85e72cb2
commit 6a6f126a18
7871 changed files with 493194 additions and 224826 deletions
@@ -120,6 +120,7 @@ class PokeBattle_Battler
@effects[PBEffects::GemConsumed] = nil
@effects[PBEffects::ShellTrap] = false
@battle.eachBattler { |b| b.pbContinualAbilityChecks } # Trace, end primordial weathers
checkChallengesAfterTurn
end
def pbConfusionDamage(msg)
@@ -723,6 +724,10 @@ class PokeBattle_Battler
targets.each do |b|
next if b.damageState.unaffected
move.pbInflictHPDamage(b)
unless onPlayerSide?
@battle.damage_received += b.damageState.hpLost
end
end
# Animate the hit flashing and HP bar changes
move.pbAnimateHitAndHPLost(user, targets)
@@ -806,4 +811,8 @@ class PokeBattle_Battler
user.pbFaint if user.fainted?
return true
end
def onPlayerSide?
return (@index % 2) == 0
end
end