add friendship requirement

This commit is contained in:
frutescens 2024-11-03 21:54:40 -08:00
parent ca0d2eca92
commit 52da58b1b2
1 changed files with 1 additions and 1 deletions

View File

@ -1063,7 +1063,7 @@ export default class PartyUiHandler extends MessageUiHandler {
this.clearPartySlots(); this.clearPartySlots();
const releasedPokemon = this.scene.getPlayerParty().splice(slotIndex, 1)[0]; const releasedPokemon = this.scene.getPlayerParty().splice(slotIndex, 1)[0];
let releasedId: number = 0; let releasedId: number = 0;
if (releasedPokemon.isAllowedInChallenge()) { if (releasedPokemon.isAllowedInChallenge() && releasedPokemon.friendship > 200) {
releasedId = releasedPokemon.id; releasedId = releasedPokemon.id;
} }
this.populatePartySlots(); this.populatePartySlots();