mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 00:52:47 +02:00
Fixed swallow test
This commit is contained in:
parent
e40b1bd452
commit
c919ea78cb
@ -40,7 +40,7 @@ describe("Moves - Swallow", () => {
|
|||||||
{ stackCount: 2, healPercent: 50 },
|
{ stackCount: 2, healPercent: 50 },
|
||||||
{ stackCount: 3, healPercent: 100 },
|
{ stackCount: 3, healPercent: 100 },
|
||||||
])(
|
])(
|
||||||
"should heal the user by $healPercent% when consuming $count stockpile stacks",
|
"should heal the user by $healPercent% max HP when consuming $count stockpile stacks",
|
||||||
async ({ stackCount, healPercent }) => {
|
async ({ stackCount, healPercent }) => {
|
||||||
await game.classicMode.startBattle([SpeciesId.SWALOT]);
|
await game.classicMode.startBattle([SpeciesId.SWALOT]);
|
||||||
|
|
||||||
@ -120,7 +120,7 @@ describe("Moves - Swallow", () => {
|
|||||||
[Stat.SPDEF]: 2,
|
[Stat.SPDEF]: 2,
|
||||||
};
|
};
|
||||||
|
|
||||||
game.move.select(MoveId.SWALLOW);
|
game.move.use(MoveId.SWALLOW);
|
||||||
await game.toEndOfTurn();
|
await game.toEndOfTurn();
|
||||||
|
|
||||||
expect(pokemon.getLastXMoves()[0]).toMatchObject<TurnMove>({
|
expect(pokemon.getLastXMoves()[0]).toMatchObject<TurnMove>({
|
||||||
|
Loading…
Reference in New Issue
Block a user