mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-27 09:16:03 +00:00
fix can-learn-move-requirement getAllPokemonMoves
This commit is contained in:
parent
7a15a0f81e
commit
944197330c
@ -77,15 +77,15 @@ export class CanLearnMoveRequirement extends EncounterPokemonRequirement {
|
||||
const allPokemonMoves: Moves[] = [];
|
||||
|
||||
if (!this.excludeLevelMoves) {
|
||||
allPokemonMoves.push(...this.getPokemonLevelMoves(pkm));
|
||||
allPokemonMoves.push(...(this.getPokemonLevelMoves(pkm) ?? []));
|
||||
}
|
||||
|
||||
if (!this.excludeTmMoves) {
|
||||
allPokemonMoves.push(...pkm.compatibleTms);
|
||||
allPokemonMoves.push(...(pkm.compatibleTms ?? []));
|
||||
}
|
||||
|
||||
if (!this.excludeEggMoves) {
|
||||
allPokemonMoves.push(...pkm.getEggMoves());
|
||||
allPokemonMoves.push(...(pkm.getEggMoves() ?? []));
|
||||
}
|
||||
|
||||
return allPokemonMoves;
|
||||
|
Loading…
Reference in New Issue
Block a user