changed test so knock off interaction with stuff cheeks test works

This commit is contained in:
geeil-han 2024-12-05 19:32:54 +01:00
parent 85383bfdf5
commit 58e80b4e49
1 changed files with 12 additions and 10 deletions

View File

@ -161,24 +161,26 @@ describe("Moves - Stuff Cheeks", () => {
expect(getHeldItemCount(player)).toBe(3); expect(getHeldItemCount(player)).toBe(3);
}); });
// Can be enabled when Knock off correctly knocks off the held berry it("from enemy should fail when player knocks off enemy berry before", async () => {
it.todo("should fail when used after berries getting knocked off", async () => { game.override
game.override.startingWave(5) .enemyHeldItems([
.startingHeldItems([
{ name: "BERRY", type: BerryType.SITRUS, count: 1 }, { name: "BERRY", type: BerryType.SITRUS, count: 1 },
]) ])
.enemyMoveset(Moves.KNOCK_OFF); .enemyMoveset(Moves.STUFF_CHEEKS)
.moveset(Moves.KNOCK_OFF)
/** This is set so the enemy does not get oneshot by Knock Off */
.enemyLevel(100);
await game.classicMode.startBattle([ Species.BULBASAUR ]); await game.classicMode.startBattle([ Species.BULBASAUR ]);
const player = game.scene.getPlayerPokemon()!; const enemy = game.scene.getEnemyPokemon()!;
game.move.select(Moves.STUFF_CHEEKS); game.move.select(Moves.KNOCK_OFF);
await game.setTurnOrder([ BattlerIndex.ENEMY, BattlerIndex.PLAYER ]); await game.setTurnOrder([ BattlerIndex.PLAYER, BattlerIndex.ENEMY ]);
await game.toNextTurn(); await game.toNextTurn();
expect(getHeldItemCount(player)).toBe(0); expect(getHeldItemCount(enemy)).toBe(0);
expect(player.getStatStage(Stat.DEF)).toBe(0); expect(enemy.getStatStage(Stat.DEF)).toBe(0);
}); });
}); });