mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-03 23:12:20 +02:00
Fix dancer and baton pass tests
This commit is contained in:
parent
78401189db
commit
6e762ad80a
@ -35,6 +35,7 @@ describe("Abilities - Dancer", () => {
|
|||||||
await game.classicMode.startBattle([SpeciesId.ORICORIO, SpeciesId.FEEBAS]);
|
await game.classicMode.startBattle([SpeciesId.ORICORIO, SpeciesId.FEEBAS]);
|
||||||
|
|
||||||
const [oricorio, feebas] = game.scene.getPlayerField();
|
const [oricorio, feebas] = game.scene.getPlayerField();
|
||||||
|
const [magikarp1] = game.scene.getEnemyField();
|
||||||
game.move.changeMoveset(oricorio, [MoveId.SWORDS_DANCE, MoveId.VICTORY_DANCE, MoveId.SPLASH]);
|
game.move.changeMoveset(oricorio, [MoveId.SWORDS_DANCE, MoveId.VICTORY_DANCE, MoveId.SPLASH]);
|
||||||
game.move.changeMoveset(feebas, [MoveId.SWORDS_DANCE, MoveId.SPLASH]);
|
game.move.changeMoveset(feebas, [MoveId.SWORDS_DANCE, MoveId.SPLASH]);
|
||||||
|
|
||||||
@ -44,8 +45,9 @@ describe("Abilities - Dancer", () => {
|
|||||||
await game.phaseInterceptor.to("MovePhase"); // feebas uses swords dance
|
await game.phaseInterceptor.to("MovePhase"); // feebas uses swords dance
|
||||||
await game.phaseInterceptor.to("MovePhase", false); // oricorio copies swords dance
|
await game.phaseInterceptor.to("MovePhase", false); // oricorio copies swords dance
|
||||||
|
|
||||||
|
// Dancer order will be Magikarp, Oricorio, Magikarp based on set turn order
|
||||||
let currentPhase = game.scene.phaseManager.getCurrentPhase() as MovePhase;
|
let currentPhase = game.scene.phaseManager.getCurrentPhase() as MovePhase;
|
||||||
expect(currentPhase.pokemon).toBe(oricorio);
|
expect(currentPhase.pokemon).toBe(magikarp1);
|
||||||
expect(currentPhase.move.moveId).toBe(MoveId.SWORDS_DANCE);
|
expect(currentPhase.move.moveId).toBe(MoveId.SWORDS_DANCE);
|
||||||
|
|
||||||
await game.phaseInterceptor.to("MoveEndPhase"); // end oricorio's move
|
await game.phaseInterceptor.to("MoveEndPhase"); // end oricorio's move
|
||||||
|
@ -76,12 +76,7 @@ describe("Moves - Baton Pass", () => {
|
|||||||
expect(game.scene.getEnemyPokemon()?.getStatStage(Stat.SPATK)).toEqual(2);
|
expect(game.scene.getEnemyPokemon()?.getStatStage(Stat.SPATK)).toEqual(2);
|
||||||
// confirm that a switch actually happened. can't use species because I
|
// confirm that a switch actually happened. can't use species because I
|
||||||
// can't find a way to override trainer parties with more than 1 pokemon species
|
// can't find a way to override trainer parties with more than 1 pokemon species
|
||||||
expect(game.phaseInterceptor.log.slice(-4)).toEqual([
|
expect(game.scene.getEnemyPokemon()?.summonData.moveHistory.length).toEqual(0);
|
||||||
"MoveEffectPhase",
|
|
||||||
"SwitchSummonPhase",
|
|
||||||
"SummonPhase",
|
|
||||||
"PostSummonPhase",
|
|
||||||
]);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it("doesn't transfer effects that aren't transferrable", async () => {
|
it("doesn't transfer effects that aren't transferrable", async () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user