mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-01-29 20:27:18 +00:00
[Hotfix] Fix Memory Mushroom not showing relearner moves (#3619)
* Fix Memory Mushroom not showing relearner moves * Fix rollout test
This commit is contained in:
parent
c2b79a803d
commit
1b7a161934
@ -921,7 +921,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
* by how many learnable moves there are for the {@linkcode Pokemon}.
|
* by how many learnable moves there are for the {@linkcode Pokemon}.
|
||||||
*/
|
*/
|
||||||
getLearnableLevelMoves(): Moves[] {
|
getLearnableLevelMoves(): Moves[] {
|
||||||
let levelMoves = this.getLevelMoves(1, true).map(lm => lm[1]);
|
let levelMoves = this.getLevelMoves(1, true, false, true).map(lm => lm[1]);
|
||||||
if (this.metBiome === -1 && !this.scene.gameMode.isFreshStartChallenge() && !this.scene.gameMode.isDaily) {
|
if (this.metBiome === -1 && !this.scene.gameMode.isFreshStartChallenge() && !this.scene.gameMode.isDaily) {
|
||||||
levelMoves = this.getUnlockedEggMoves().concat(levelMoves);
|
levelMoves = this.getUnlockedEggMoves().concat(levelMoves);
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,7 @@ import { SPLASH_ONLY } from "#test/utils/testUtils";
|
|||||||
describe("Moves - Rollout", () => {
|
describe("Moves - Rollout", () => {
|
||||||
let phaserGame: Phaser.Game;
|
let phaserGame: Phaser.Game;
|
||||||
let game: GameManager;
|
let game: GameManager;
|
||||||
|
const TIMEOUT = 20 * 1000;
|
||||||
|
|
||||||
beforeAll(() => {
|
beforeAll(() => {
|
||||||
phaserGame = new Phaser.Game({
|
phaserGame = new Phaser.Game({
|
||||||
@ -77,5 +78,5 @@ describe("Moves - Rollout", () => {
|
|||||||
// reset
|
// reset
|
||||||
expect(turn6Dmg).toBeGreaterThanOrEqual(turn1Dmg - variance);
|
expect(turn6Dmg).toBeGreaterThanOrEqual(turn1Dmg - variance);
|
||||||
expect(turn6Dmg).toBeLessThanOrEqual(turn1Dmg + variance);
|
expect(turn6Dmg).toBeLessThanOrEqual(turn1Dmg + variance);
|
||||||
});
|
}, TIMEOUT);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user