mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Fixed: some items not working in battle, typo in Shell Trap's AI, Vs animation not triggering, Battle Factory Pokémon being chosen incorrectly, Battle Factory double mode being single battles, some game data not being cleared when compiling
This commit is contained in:
@@ -156,7 +156,7 @@ def pbBattleFactoryPokemon(rules, win_count, swap_count, rentals)
|
||||
indvalue = (party.length < iv_threshold) ? ivs[0] : ivs[1]
|
||||
party.push(rndpoke.createPokemon(level, indvalue, nil))
|
||||
end
|
||||
break if rules.ruleset.isValid?(party.concat(rentals))
|
||||
break if rules.ruleset.isValid?([].concat(party).concat(rentals))
|
||||
end
|
||||
rules.ruleset.setNumberRange(old_min, old_max)
|
||||
return party
|
||||
|
||||
@@ -251,7 +251,7 @@ def pbBattleFactoryRules(double, openlevel)
|
||||
ret.addPokemonRule(BannedSpeciesRestriction.new(:UNOWN))
|
||||
ret.addTeamRule(ItemClause.new)
|
||||
ret.addBattleRule(SoulDewBattleClause.new)
|
||||
ret.setDoubleBattle(double).setNumber(0)
|
||||
ret.setDoubleBattle(double)
|
||||
return ret
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user