Fixed Xerneas/Zacian/Zamazenta not being their alternate form throughout battle

This commit is contained in:
Maruno17
2022-05-29 18:13:08 +01:00
parent 9ecbee910d
commit 6a046ff755
3 changed files with 24 additions and 26 deletions

View File

@@ -258,6 +258,8 @@ class Battle
logMsg += "#{@opponent.length} trainer(s))" if trainerBattle?
PBDebug.log(logMsg)
pbEnsureParticipants
pbParty(0).each { |pkmn| @peer.pbOnStartingBattle(self, pkmn, wildBattle?) if pkmn }
pbParty(1).each { |pkmn| @peer.pbOnStartingBattle(self, pkmn, wildBattle?) if pkmn }
begin
pbStartBattleCore
rescue BattleAbortedException