mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-24 15:33:29 +02:00
[Balance] Allow enemy trainer pokemon to use relearn moves (#6515)
This commit is contained in:
parent
e202cb63ac
commit
acb1522138
@ -3049,7 +3049,7 @@ export abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
public generateAndPopulateMoveset(): void {
|
public generateAndPopulateMoveset(): void {
|
||||||
this.moveset = [];
|
this.moveset = [];
|
||||||
let movePool: [MoveId, number][] = [];
|
let movePool: [MoveId, number][] = [];
|
||||||
const allLevelMoves = this.getLevelMoves(1, true, true);
|
const allLevelMoves = this.getLevelMoves(1, true, true, this.hasTrainer());
|
||||||
if (!allLevelMoves) {
|
if (!allLevelMoves) {
|
||||||
console.warn("Error encountered trying to generate moveset for:", this.species.name);
|
console.warn("Error encountered trying to generate moveset for:", this.species.name);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user