Apply suggestions from code review

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
Wlowscha 2025-02-01 12:55:07 +01:00 committed by GitHub
parent b52013e4d7
commit f9fd99581f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 7 deletions

View File

@ -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);
});
});

View File

@ -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 ]);

View File

@ -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);
});
});