Allow enemy trainer pokemon to relearn moves.

This commit is contained in:
Xavion3 2025-09-08 15:10:46 +10:00
parent a55994bc0a
commit af2e89f631

View File

@ -3059,7 +3059,7 @@ export abstract class Pokemon extends Phaser.GameObjects.Container {
public generateAndPopulateMoveset(): void {
this.moveset = [];
let movePool: [MoveId, number][] = [];
const allLevelMoves = this.getLevelMoves(1, true, true);
const allLevelMoves = this.getLevelMoves(1, true, true, this.hasTrainer());
if (!allLevelMoves) {
console.warn("Error encountered trying to generate moveset for:", this.species.name);
return;