mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-01 22:12:16 +02:00
Add test for priority
This commit is contained in:
parent
877f330cbb
commit
d36f2105f1
@ -66,4 +66,16 @@ describe("Ability Activation Order", () => {
|
|||||||
await game.classicMode.startBattle([Species.DITTO]);
|
await game.classicMode.startBattle([Species.DITTO]);
|
||||||
expect(game.scene.arena.weather?.weatherType).toBe(WeatherType.SUNNY);
|
expect(game.scene.arena.weather?.weatherType).toBe(WeatherType.SUNNY);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("should activate priority abilities first", async () => {
|
||||||
|
game.override
|
||||||
|
.startingLevel(1)
|
||||||
|
.enemyLevel(100)
|
||||||
|
.enemySpecies(Species.ACCELGOR)
|
||||||
|
.enemyAbility(Abilities.DROUGHT)
|
||||||
|
.ability(Abilities.NEUTRALIZING_GAS);
|
||||||
|
|
||||||
|
await game.classicMode.startBattle([Species.SLOWPOKE]);
|
||||||
|
expect(game.scene.arena.weather).toBeUndefined();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user