mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-07-22 15:47:00 +00:00
Update 6.8
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user