From 90461d1d37d2f840dcba30faf03fb086079a8dd9 Mon Sep 17 00:00:00 2001 From: Dean Date: Mon, 24 Feb 2025 09:49:04 -0800 Subject: [PATCH] Fix tests checking status instead of tag --- test/abilities/oblivious.test.ts | 6 +++--- test/abilities/own_tempo.test.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/abilities/oblivious.test.ts b/test/abilities/oblivious.test.ts index 3fe9dceca5b..d5089ef6a72 100644 --- a/test/abilities/oblivious.test.ts +++ b/test/abilities/oblivious.test.ts @@ -40,13 +40,13 @@ describe("Abilities - Oblivious", () => { await game.classicMode.startBattle([ Species.FEEBAS ]); const enemy = game.scene.getEnemyPokemon(); - enemy?.addTag(BattlerTagType.TAUNT); // sourceID needs to be defined + enemy?.addTag(BattlerTagType.TAUNT); expect(enemy?.getTag(BattlerTagType.TAUNT)).toBeTruthy(); game.move.select(Moves.SKILL_SWAP); await game.phaseInterceptor.to("BerryPhase"); - expect(enemy?.status).toBeFalsy(); + expect(enemy?.getTag(BattlerTagType.TAUNT)).toBeFalsy(); }); it("should remove infatuation when gained", async () => { @@ -64,6 +64,6 @@ describe("Abilities - Oblivious", () => { game.move.select(Moves.SKILL_SWAP); await game.phaseInterceptor.to("BerryPhase"); - expect(enemy?.status).toBeFalsy(); + expect(enemy?.getTag(BattlerTagType.INFATUATED)).toBeFalsy(); }); }); diff --git a/test/abilities/own_tempo.test.ts b/test/abilities/own_tempo.test.ts index 54650cd2374..936b4311b20 100644 --- a/test/abilities/own_tempo.test.ts +++ b/test/abilities/own_tempo.test.ts @@ -46,6 +46,6 @@ describe("Abilities - Own Tempo", () => { game.move.select(Moves.SKILL_SWAP); await game.phaseInterceptor.to("BerryPhase"); - expect(enemy?.status).toBeFalsy(); + expect(enemy?.getTag(BattlerTagType.CONFUSED)).toBeFalsy(); }); });