mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-03 06:52:16 +02:00
Fixed tests
This commit is contained in:
parent
aee33fe625
commit
1529fd9329
@ -35,7 +35,7 @@ describe("Moves - Recovery Moves", () => {
|
||||
game.override
|
||||
.ability(AbilityId.BALL_FETCH)
|
||||
.battleStyle("single")
|
||||
.disableCrits()
|
||||
.criticalHits(false)
|
||||
.enemySpecies(SpeciesId.MAGIKARP)
|
||||
.enemyAbility(AbilityId.BALL_FETCH)
|
||||
.enemyMoveset(MoveId.SPLASH)
|
||||
@ -83,7 +83,7 @@ describe("Moves - Recovery Moves", () => {
|
||||
game.override
|
||||
.ability(AbilityId.BALL_FETCH)
|
||||
.battleStyle("single")
|
||||
.disableCrits()
|
||||
.criticalHits(false)
|
||||
.enemySpecies(SpeciesId.MAGIKARP)
|
||||
.enemyAbility(AbilityId.BALL_FETCH)
|
||||
.enemyMoveset(MoveId.SPLASH)
|
||||
@ -151,7 +151,7 @@ describe("Moves - Recovery Moves", () => {
|
||||
game.override
|
||||
.ability(AbilityId.BALL_FETCH)
|
||||
.battleStyle("single")
|
||||
.disableCrits()
|
||||
.criticalHits(false)
|
||||
.enemySpecies(SpeciesId.MAGIKARP)
|
||||
.enemyAbility(AbilityId.BALL_FETCH)
|
||||
.enemyMoveset(MoveId.SPLASH)
|
||||
|
@ -196,7 +196,9 @@ describe("Swallow & Spit Up", () => {
|
||||
const player = game.field.getPlayerPokemon();
|
||||
player.hp = 1;
|
||||
|
||||
player.addTag(BattlerTagType.STOCKPILING);
|
||||
game.move.use(MoveId.STOCKPILE);
|
||||
await game.toNextTurn();
|
||||
|
||||
const stockpilingTag = player.getTag(StockpilingTag)!;
|
||||
expect(stockpilingTag).toBeDefined();
|
||||
expect(player.getStatStage(Stat.DEF)).toBe(1);
|
||||
|
Loading…
Reference in New Issue
Block a user