mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 15:32:18 +02:00
Fix Wind Rider test having random chance to fail
This commit is contained in:
parent
26300dd036
commit
c1ee74af1c
@ -81,11 +81,13 @@ describe("Abilities - Wind Rider", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("does not increase Attack when Tailwind is present on opposing side", async () => {
|
it("does not increase Attack when Tailwind is present on opposing side", async () => {
|
||||||
|
game.override.ability(Abilities.WIND_RIDER);
|
||||||
game.override.enemySpecies(Species.MAGIKARP);
|
game.override.enemySpecies(Species.MAGIKARP);
|
||||||
|
|
||||||
await game.startBattle([Species.SHIFTRY]);
|
await game.startBattle([Species.SHIFTRY]);
|
||||||
const magikarp = game.scene.getEnemyPokemon()!;
|
const magikarp = game.scene.getEnemyPokemon()!;
|
||||||
const shiftry = game.scene.getPlayerPokemon()!;
|
const shiftry = game.scene.getPlayerPokemon()!;
|
||||||
|
expect(shiftry.hasAbility(Abilities.WIND_RIDER)).toBe(true);
|
||||||
|
|
||||||
expect(shiftry.summonData.battleStats[BattleStat.ATK]).toBe(0);
|
expect(shiftry.summonData.battleStats[BattleStat.ATK]).toBe(0);
|
||||||
expect(magikarp.summonData.battleStats[BattleStat.ATK]).toBe(0);
|
expect(magikarp.summonData.battleStats[BattleStat.ATK]).toBe(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user