mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-27 02:32:21 +02:00
Apply suggestions from code review
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
parent
b52013e4d7
commit
f9fd99581f
@ -44,7 +44,7 @@ describe("Abilities - Perish Song", () => {
|
||||
|
||||
expect(cursola?.summonData.tags[0].turnCount).toBe(3);
|
||||
expect(magikarp?.summonData.tags[0].turnCount).toBe(3);
|
||||
}, 20000);
|
||||
});
|
||||
|
||||
it("should trigger even when fainting", async () => {
|
||||
game.override.enemyMoveset([ Moves.AQUA_JET ])
|
||||
@ -58,7 +58,7 @@ describe("Abilities - Perish Song", () => {
|
||||
await game.toNextTurn();
|
||||
|
||||
expect(magikarp?.summonData.tags[0].turnCount).toBe(3);
|
||||
}, 20000);
|
||||
});
|
||||
|
||||
it("should not activate if attacker already has perish song", async () => {
|
||||
game.override.enemyMoveset([ Moves.PERISH_SONG, Moves.AQUA_JET, Moves.SPLASH ]);
|
||||
@ -88,5 +88,5 @@ describe("Abilities - Perish Song", () => {
|
||||
expect(cursola?.summonData.tags.length).toBe(0);
|
||||
expect(magikarp?.summonData.tags[0].turnCount).toBe(1);
|
||||
|
||||
}, 20000);
|
||||
});
|
||||
});
|
||||
|
@ -55,7 +55,7 @@ describe("Abilities - Sand Spit", () => {
|
||||
await game.toNextTurn();
|
||||
|
||||
expect(game.scene.arena.weather?.weatherType).toBe(WeatherType.SANDSTORM);
|
||||
}, 20000);
|
||||
});
|
||||
|
||||
it("should not trigger when targetted with status moves", async () => {
|
||||
game.override.enemyMoveset([ Moves.GROWL ]);
|
||||
|
@ -42,7 +42,7 @@ describe("Abilities - Seed Sower", () => {
|
||||
await game.toNextTurn();
|
||||
|
||||
expect(game.scene.arena.terrain?.terrainType).toBe(TerrainType.GRASSY);
|
||||
}, 20000);
|
||||
});
|
||||
|
||||
it("should trigger even when fainting", async () => {
|
||||
game.override.enemyMoveset([ Moves.TACKLE ])
|
||||
@ -55,7 +55,7 @@ describe("Abilities - Seed Sower", () => {
|
||||
await game.toNextTurn();
|
||||
|
||||
expect(game.scene.arena.terrain?.terrainType).toBe(TerrainType.GRASSY);
|
||||
}, 20000);
|
||||
});
|
||||
|
||||
it("should not trigger when targetted with status moves", async () => {
|
||||
game.override.enemyMoveset([ Moves.GROWL ]);
|
||||
@ -65,5 +65,5 @@ describe("Abilities - Seed Sower", () => {
|
||||
await game.toNextTurn();
|
||||
|
||||
expect(game.scene.arena.terrain?.terrainType).not.toBe(TerrainType.GRASSY);
|
||||
}, 20000);
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user