From 371e99a4a2510eac4e139629dda1cc23604951c9 Mon Sep 17 00:00:00 2001 From: Bertie690 <136088738+Bertie690@users.noreply.github.com> Date: Sun, 10 Aug 2025 14:18:00 -0400 Subject: [PATCH] Fix flying-press.test.ts --- test/moves/flying-press.test.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/test/moves/flying-press.test.ts b/test/moves/flying-press.test.ts index 96da0a7c051..fb198b5c0d3 100644 --- a/test/moves/flying-press.test.ts +++ b/test/moves/flying-press.test.ts @@ -115,16 +115,16 @@ describe.sequential("Move - Flying Press", () => { hawlucha.setTempAbility(allAbilities[AbilityId.NORMALIZE]); checkEffForAllTypes(PokemonType.NORMAL); }); - }); - it("should deal 2x to Wonder Guard Shedinja under Electrify", () => { - game.field.mockAbility(enemy, AbilityId.WONDER_GUARD); - hawlucha.addTag(BattlerTagType.ELECTRIFIED); + it("should deal 0.125x damage against a Normal/Ice type with Grass added", () => { + enemy.summonData.types = [PokemonType.NORMAL, PokemonType.ICE]; + enemy.summonData.addedType = PokemonType.GRASS; - const flyingPressEff = enemy.getAttackTypeEffectiveness(hawlucha.getMoveType(allMoves[MoveId.FLYING_PRESS]), { - source: hawlucha, - move: allMoves[MoveId.FLYING_PRESS], + const moveType = hawlucha.getMoveType(allMoves[MoveId.FLYING_PRESS]); + const flyingPressEff = enemy.getAttackTypeEffectiveness(moveType, { + source: hawlucha, + move: allMoves[MoveId.FLYING_PRESS], + }); + expect(flyingPressEff).toBe(0.125); }); - expect(flyingPressEff).toBe(2); - }); });