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