mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-25 08:16:04 +00:00
add friendship requirement
This commit is contained in:
parent
ca0d2eca92
commit
52da58b1b2
@ -1063,7 +1063,7 @@ export default class PartyUiHandler extends MessageUiHandler {
|
||||
this.clearPartySlots();
|
||||
const releasedPokemon = this.scene.getPlayerParty().splice(slotIndex, 1)[0];
|
||||
let releasedId: number = 0;
|
||||
if (releasedPokemon.isAllowedInChallenge()) {
|
||||
if (releasedPokemon.isAllowedInChallenge() && releasedPokemon.friendship > 200) {
|
||||
releasedId = releasedPokemon.id;
|
||||
}
|
||||
this.populatePartySlots();
|
||||
|
Loading…
Reference in New Issue
Block a user