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[] = [];
|
const allPokemonMoves: Moves[] = [];
|
||||||
|
|
||||||
if (!this.excludeLevelMoves) {
|
if (!this.excludeLevelMoves) {
|
||||||
allPokemonMoves.push(...this.getPokemonLevelMoves(pkm));
|
allPokemonMoves.push(...(this.getPokemonLevelMoves(pkm) ?? []));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.excludeTmMoves) {
|
if (!this.excludeTmMoves) {
|
||||||
allPokemonMoves.push(...pkm.compatibleTms);
|
allPokemonMoves.push(...(pkm.compatibleTms ?? []));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.excludeEggMoves) {
|
if (!this.excludeEggMoves) {
|
||||||
allPokemonMoves.push(...pkm.getEggMoves());
|
allPokemonMoves.push(...(pkm.getEggMoves() ?? []));
|
||||||
}
|
}
|
||||||
|
|
||||||
return allPokemonMoves;
|
return allPokemonMoves;
|
||||||
|
|
Loading…
Reference in New Issue