add friendship requirement
This commit is contained in:
parent
ca0d2eca92
commit
52da58b1b2
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue