From 024450ecfbac96745703bddb5ed59c140d9dcc95 Mon Sep 17 00:00:00 2001 From: frutescens Date: Wed, 25 Sep 2024 13:57:24 -0700 Subject: [PATCH] Torranx Fixes --- src/data/battler-tags.ts | 4 ++-- src/test/abilities/aroma_veil.test.ts | 14 ++++++++------ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/data/battler-tags.ts b/src/data/battler-tags.ts index 804a1f4ddbe..6fe2543b93e 100644 --- a/src/data/battler-tags.ts +++ b/src/data/battler-tags.ts @@ -2438,8 +2438,8 @@ export class MysteryEncounterPostSummonTag extends BattlerTag { } /** - * BattlerTag that applies the effects of Torment to the target Pokemon - * Torment restricts the consecutive use of moves. + * Battle Tag that applies the move Torment to the target Pokemon + * Torment restricts the use of moves twice in a row. * The tag is only removed if the target leaves the battle. * Torment does not interrupt the move if the move is performed consecutively in the same turn and right after Torment is applied */ diff --git a/src/test/abilities/aroma_veil.test.ts b/src/test/abilities/aroma_veil.test.ts index 7748502d81e..8ca46ce5f1e 100644 --- a/src/test/abilities/aroma_veil.test.ts +++ b/src/test/abilities/aroma_veil.test.ts @@ -35,20 +35,21 @@ describe("Moves - Aroma Veil", () => { it("Aroma Veil protects the Pokemon's side against most Move Restriction Battler Tags", async () => { await game.classicMode.startBattle([Species.REGIELEKI, Species.BULBASAUR]); - const playerPokemon = game.scene.getParty()!; + const party = game.scene.getParty()!; game.move.select(Moves.GROWL); game.move.select(Moves.GROWL); await game.forceEnemyMove(Moves.HEAL_BLOCK); await game.toNextTurn(); - expect(playerPokemon[0].getTag(BattlerTagType.HEAL_BLOCK)).toBeUndefined(); - expect(playerPokemon[1].getTag(BattlerTagType.HEAL_BLOCK)).toBeUndefined(); + for (const pokemon in party) { + expect(pokemon.getTag(BattlerTagType.HEAL_BLOCK)).toBeUndefined(); + } }); it("Aroma Veil does not protect against Imprison", async () => { await game.classicMode.startBattle([Species.REGIELEKI, Species.BULBASAUR]); - const playerPokemon = game.scene.getParty()!; + const party = game.scene.getParty()!; game.move.select(Moves.GROWL); game.move.select(Moves.GROWL, 1); @@ -56,7 +57,8 @@ describe("Moves - Aroma Veil", () => { await game.forceEnemyMove(Moves.SPLASH); await game.toNextTurn(); expect(game.scene.arena.getTag(ArenaTagType.IMPRISON)).toBeDefined(); - expect(playerPokemon[0].getTag(BattlerTagType.IMPRISON)).toBeDefined(); - expect(playerPokemon[1].getTag(BattlerTagType.IMPRISON)).toBeDefined(); + for (const pokemon in party) { + expect(pokemon).getTag(BattlerTagType.IMPRISON).toBeDefined(); + } }); });