mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 14:14:59 +00:00
Fixed typo relating to AI switching, fixed Pokémon sent from the party to storage in battle not resetting their battle-only conditions, fixed player's sprite in Duel minigame not caring about the player's outfit, added missing move flags
This commit is contained in:
@@ -32,8 +32,13 @@ module Battle::CatchAndStoreMixin
|
||||
end
|
||||
next if party_index < 0 # Cancelled
|
||||
party_size = pbPlayer.party.length
|
||||
# Send chosen Pokémon to storage
|
||||
# Get chosen Pokémon and clear battle-related conditions
|
||||
send_pkmn = pbPlayer.party[party_index]
|
||||
@peer.pbOnLeavingBattle(self, send_pkmn, @usedInBattle[0][party_index], true)
|
||||
send_pkmn.statusCount = 0 if send_pkmn.status == :POISON # Bad poison becomes regular
|
||||
send_pkmn.makeUnmega
|
||||
send_pkmn.makeUnprimal
|
||||
# Send chosen Pokémon to storage
|
||||
stored_box = @peer.pbStorePokemon(pbPlayer, send_pkmn)
|
||||
pbPlayer.party.delete_at(party_index)
|
||||
box_name = @peer.pbBoxName(stored_box)
|
||||
|
||||
Reference in New Issue
Block a user