Fixed various bugs found when generating Battle Frontier challenge lists

This commit is contained in:
Maruno17
2021-12-29 14:37:41 +00:00
parent a7e8005f53
commit fb29f19a28
8 changed files with 34 additions and 24 deletions

View File

@@ -346,7 +346,7 @@ class Battle
count = 0
eachInTeamFromBattlerIndex(idxBattler) do |pkmn, i|
next if !pkmn || !pkmn.able?
next if inBattleIndices.include?(idxParty)
next if inBattleIndices.include?(i)
count += 1
end
return count