mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-02-03 20:01:03 +00:00
Obsoleted battle methods that yield battlers in favour of ones that return all of them at once
This commit is contained in:
@@ -76,10 +76,7 @@ class PokeBattle_Battler
|
||||
self.statusCount = 0
|
||||
# Lose happiness
|
||||
if @pokemon && @battle.internalBattle
|
||||
badLoss = false
|
||||
@battle.eachOtherSideBattler(@index) do |b|
|
||||
badLoss = true if b.level>=self.level+30
|
||||
end
|
||||
badLoss = @battle.allOtherSideBattlers(@index).any? { |b| b.level >= self.level + 30 }
|
||||
@pokemon.changeHappiness((badLoss) ? "faintbad" : "faint")
|
||||
end
|
||||
# Reset form
|
||||
|
||||
Reference in New Issue
Block a user