This commit is contained in:
innerthunder 2024-10-12 23:53:36 -07:00
parent 2334ab9b9e
commit 2c4af24fa4

View File

@ -36,13 +36,13 @@ describe("Moves - Powder", () => {
.enemyMoveset(Array(4).fill(Moves.EMBER)) .enemyMoveset(Array(4).fill(Moves.EMBER))
.enemyAbility(Abilities.INSOMNIA) .enemyAbility(Abilities.INSOMNIA)
.startingLevel(100) .startingLevel(100)
.moveset([Moves.POWDER, Moves.SPLASH, Moves.FIERY_DANCE]); .moveset([ Moves.POWDER, Moves.SPLASH, Moves.FIERY_DANCE ]);
}); });
it( it(
"should cancel the target's Fire-type move and damage the target", "should cancel the target's Fire-type move and damage the target",
async () => { async () => {
await game.classicMode.startBattle([Species.CHARIZARD]); await game.classicMode.startBattle([ Species.CHARIZARD ]);
const enemyPokemon = game.scene.getEnemyPokemon()!; const enemyPokemon = game.scene.getEnemyPokemon()!;
@ -67,7 +67,7 @@ describe("Moves - Powder", () => {
async () => { async () => {
game.override.enemySpecies(Species.AMOONGUSS); game.override.enemySpecies(Species.AMOONGUSS);
await game.classicMode.startBattle([Species.CHARIZARD]); await game.classicMode.startBattle([ Species.CHARIZARD ]);
const enemyPokemon = game.scene.getEnemyPokemon()!; const enemyPokemon = game.scene.getEnemyPokemon()!;
@ -84,7 +84,7 @@ describe("Moves - Powder", () => {
async () => { async () => {
game.override.enemyAbility(Abilities.OVERCOAT); game.override.enemyAbility(Abilities.OVERCOAT);
await game.classicMode.startBattle([Species.CHARIZARD]); await game.classicMode.startBattle([ Species.CHARIZARD ]);
const enemyPokemon = game.scene.getEnemyPokemon()!; const enemyPokemon = game.scene.getEnemyPokemon()!;
@ -101,7 +101,7 @@ describe("Moves - Powder", () => {
async () => { async () => {
game.override.enemyAbility(Abilities.MAGIC_GUARD); game.override.enemyAbility(Abilities.MAGIC_GUARD);
await game.classicMode.startBattle([Species.CHARIZARD]); await game.classicMode.startBattle([ Species.CHARIZARD ]);
const enemyPokemon = game.scene.getEnemyPokemon()!; const enemyPokemon = game.scene.getEnemyPokemon()!;
@ -120,7 +120,7 @@ describe("Moves - Powder", () => {
.enemyMoveset(Array(4).fill(Moves.FLAME_WHEEL)) .enemyMoveset(Array(4).fill(Moves.FLAME_WHEEL))
.enemyStatusEffect(StatusEffect.FREEZE); .enemyStatusEffect(StatusEffect.FREEZE);
await game.classicMode.startBattle([Species.CHARIZARD]); await game.classicMode.startBattle([ Species.CHARIZARD ]);
const enemyPokemon = game.scene.getEnemyPokemon()!; const enemyPokemon = game.scene.getEnemyPokemon()!;
@ -138,7 +138,7 @@ describe("Moves - Powder", () => {
async () => { async () => {
game.override.enemyAbility(Abilities.PROTEAN); game.override.enemyAbility(Abilities.PROTEAN);
await game.classicMode.startBattle([Species.CHARIZARD]); await game.classicMode.startBattle([ Species.CHARIZARD ]);
const enemyPokemon = game.scene.getEnemyPokemon()!; const enemyPokemon = game.scene.getEnemyPokemon()!;
@ -159,7 +159,7 @@ describe("Moves - Powder", () => {
.enemySpecies(Species.BLASTOISE) .enemySpecies(Species.BLASTOISE)
.enemyAbility(Abilities.DANCER); .enemyAbility(Abilities.DANCER);
await game.classicMode.startBattle([Species.CHARIZARD]); await game.classicMode.startBattle([ Species.CHARIZARD ]);
const playerPokemon = game.scene.getPlayerPokemon()!; const playerPokemon = game.scene.getPlayerPokemon()!;
const enemyPokemon = game.scene.getEnemyPokemon()!; const enemyPokemon = game.scene.getEnemyPokemon()!;
@ -173,7 +173,7 @@ describe("Moves - Powder", () => {
// player should not take damage // player should not take damage
expect(playerPokemon.hp).toBe(playerPokemon.getMaxHp()); expect(playerPokemon.hp).toBe(playerPokemon.getMaxHp());
// enemy should have taken damage from player's Fiery Dance + 2 Powder procs // enemy should have taken damage from player's Fiery Dance + 2 Powder procs
expect(enemyPokemon.hp).toBe(enemyStartingHp - 2*Math.floor(enemyPokemon.getMaxHp() / 4)); expect(enemyPokemon.hp).toBe(enemyStartingHp - 2 * Math.floor(enemyPokemon.getMaxHp() / 4));
}, TIMEOUT }, TIMEOUT
); );
@ -184,7 +184,7 @@ describe("Moves - Powder", () => {
.enemySpecies(Species.CHARIZARD) .enemySpecies(Species.CHARIZARD)
.enemyMoveset(Array(4).fill(Moves.REVELATION_DANCE)); .enemyMoveset(Array(4).fill(Moves.REVELATION_DANCE));
await game.classicMode.startBattle([Species.CHARIZARD]); await game.classicMode.startBattle([ Species.CHARIZARD ]);
const enemyPokemon = game.scene.getEnemyPokemon()!; const enemyPokemon = game.scene.getEnemyPokemon()!;
@ -201,7 +201,7 @@ describe("Moves - Powder", () => {
async () => { async () => {
game.override.enemyMoveset(Array(4).fill(Moves.SHELL_TRAP)); game.override.enemyMoveset(Array(4).fill(Moves.SHELL_TRAP));
await game.classicMode.startBattle([Species.CHARIZARD]); await game.classicMode.startBattle([ Species.CHARIZARD ]);
const enemyPokemon = game.scene.getEnemyPokemon()!; const enemyPokemon = game.scene.getEnemyPokemon()!;