mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-06 16:32:16 +02:00
so sad
This commit is contained in:
parent
ef4f7f6193
commit
6bb9db535d
@ -6,7 +6,8 @@ import * as Utils from "#app/utils";
|
|||||||
import { Moves } from "#enums/moves";
|
import { Moves } from "#enums/moves";
|
||||||
import { allMoves } from "#app/data/move";
|
import { allMoves } from "#app/data/move";
|
||||||
import { SPLASH_ONLY } from "#test/utils/testUtils";
|
import { SPLASH_ONLY } from "#test/utils/testUtils";
|
||||||
import { LearnMovePhase } from "#app/phases/learn-move-phase"
|
import { LearnMovePhase } from "#app/phases/learn-move-phase";
|
||||||
|
import { TurnEndPhase } from "#app/phases/turn-end-phase";
|
||||||
|
|
||||||
describe("Learn Move Phase", () => {
|
describe("Learn Move Phase", () => {
|
||||||
let phaserGame: Phaser.Game;
|
let phaserGame: Phaser.Game;
|
||||||
@ -30,11 +31,16 @@ describe("Learn Move Phase", () => {
|
|||||||
|
|
||||||
describe("If Pokemon has less than 4 moves, its newest move will be added to the lowest empty index", () => {
|
describe("If Pokemon has less than 4 moves, its newest move will be added to the lowest empty index", () => {
|
||||||
it("new move should be found at index 1", async () => {
|
it("new move should be found at index 1", async () => {
|
||||||
game.override.moveset(SPLASH_ONLY);
|
game.override.moveset([Moves.SPLASH, Moves.NONE, Moves.NONE, Moves.NONE]);
|
||||||
await game.startBattle([Species.BULBASAUR]);
|
await game.startBattle([Species.BULBASAUR]);
|
||||||
const pokemon = game.scene.getPlayerPokemon()!;
|
const pokemon = game.scene.getPlayerPokemon()!;
|
||||||
const prevLength = pokemon?.getMoveset().length;
|
const prevLength = pokemon?.getMoveset().length;
|
||||||
pokemon?.addExp(1000);
|
game.move.select(Moves.SPLASH);
|
||||||
|
await game.doKillOpponents();
|
||||||
|
await game.phaseInterceptor.to(ExpPhase, false);
|
||||||
|
const expPhase = game.scene.getCurrentPhase() as ExpPhase;
|
||||||
|
expPhase.expValue = 1500;
|
||||||
|
console.log(pokemon?.level);
|
||||||
await game.phaseInterceptor.to(LearnMovePhase, false);
|
await game.phaseInterceptor.to(LearnMovePhase, false);
|
||||||
const phase = game.scene.getCurrentPhase() as MoveLearnPhase;
|
const phase = game.scene.getCurrentPhase() as MoveLearnPhase;
|
||||||
const newMove = phase.moveId;
|
const newMove = phase.moveId;
|
||||||
|
Loading…
Reference in New Issue
Block a user