mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-20 16:55:45 +01:00
Apply kev's suggestions from code review
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
parent
35b43a7ed2
commit
2d2420aaaa
@ -258,14 +258,15 @@ describe("Abilities - Forecast", () => {
|
||||
expect(castform.formIndex).toBe(NORMAL_FORM);
|
||||
});
|
||||
|
||||
// NOTE: The following pairs of tests are intentionally testing the same scenario, switching the player and enemy pokemon
|
||||
// as this is a regression test where the order of player and enemy mattered.
|
||||
it("should trigger player's form change when summoned at the same time as an enemy with a weather changing ability", async () => {
|
||||
// NOTE: The following pairs of tests are intentionally testing the same scenario, switching the player and enemy pokemon
|
||||
// as this is a regression test where the order of player and enemy mattered.
|
||||
game.override.enemyAbility(AbilityId.DROUGHT);
|
||||
await game.classicMode.startBattle([SpeciesId.CASTFORM, SpeciesId.MAGIKARP]);
|
||||
const castform = game.scene.getPlayerPokemon()!;
|
||||
expect(castform.formIndex).toBe(SUNNY_FORM);
|
||||
});
|
||||
|
||||
it("should trigger enemy's form change when summoned at the same time as a player with a weather changing ability", async () => {
|
||||
game.override.ability(AbilityId.DROUGHT).enemySpecies(SpeciesId.CASTFORM).enemyAbility(AbilityId.FORECAST);
|
||||
await game.classicMode.startBattle([SpeciesId.MAGIKARP]);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user