Torranx Fixes

This commit is contained in:
frutescens 2024-09-25 13:57:24 -07:00
parent 0576826ca6
commit 024450ecfb
2 changed files with 10 additions and 8 deletions

View File

@ -2438,8 +2438,8 @@ export class MysteryEncounterPostSummonTag extends BattlerTag {
} }
/** /**
* BattlerTag that applies the effects of Torment to the target Pokemon * Battle Tag that applies the move Torment to the target Pokemon
* Torment restricts the consecutive use of moves. * Torment restricts the use of moves twice in a row.
* The tag is only removed if the target leaves the battle. * 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 * Torment does not interrupt the move if the move is performed consecutively in the same turn and right after Torment is applied
*/ */

View File

@ -35,20 +35,21 @@ describe("Moves - Aroma Veil", () => {
it("Aroma Veil protects the Pokemon's side against most Move Restriction Battler Tags", async () => { it("Aroma Veil protects the Pokemon's side against most Move Restriction Battler Tags", async () => {
await game.classicMode.startBattle([Species.REGIELEKI, Species.BULBASAUR]); 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);
game.move.select(Moves.GROWL); game.move.select(Moves.GROWL);
await game.forceEnemyMove(Moves.HEAL_BLOCK); await game.forceEnemyMove(Moves.HEAL_BLOCK);
await game.toNextTurn(); await game.toNextTurn();
expect(playerPokemon[0].getTag(BattlerTagType.HEAL_BLOCK)).toBeUndefined(); for (const pokemon in party) {
expect(playerPokemon[1].getTag(BattlerTagType.HEAL_BLOCK)).toBeUndefined(); expect(pokemon.getTag(BattlerTagType.HEAL_BLOCK)).toBeUndefined();
}
}); });
it("Aroma Veil does not protect against Imprison", async () => { it("Aroma Veil does not protect against Imprison", async () => {
await game.classicMode.startBattle([Species.REGIELEKI, Species.BULBASAUR]); 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);
game.move.select(Moves.GROWL, 1); game.move.select(Moves.GROWL, 1);
@ -56,7 +57,8 @@ describe("Moves - Aroma Veil", () => {
await game.forceEnemyMove(Moves.SPLASH); await game.forceEnemyMove(Moves.SPLASH);
await game.toNextTurn(); await game.toNextTurn();
expect(game.scene.arena.getTag(ArenaTagType.IMPRISON)).toBeDefined(); expect(game.scene.arena.getTag(ArenaTagType.IMPRISON)).toBeDefined();
expect(playerPokemon[0].getTag(BattlerTagType.IMPRISON)).toBeDefined(); for (const pokemon in party) {
expect(playerPokemon[1].getTag(BattlerTagType.IMPRISON)).toBeDefined(); expect(pokemon).getTag(BattlerTagType.IMPRISON).toBeDefined();
}
}); });
}); });