Compare commits

..

No commits in common. "7e402d02b0cc885a1b51a20e80663007084d3b0c" and "13a4b99072dd8b2d8f304468dc341812036d50a5" have entirely different histories.

View File

@ -115,17 +115,16 @@ describe.sequential("Move - Flying Press", () => {
hawlucha.setTempAbility(allAbilities[AbilityId.NORMALIZE]); hawlucha.setTempAbility(allAbilities[AbilityId.NORMALIZE]);
checkEffForAllTypes(PokemonType.NORMAL); checkEffForAllTypes(PokemonType.NORMAL);
}); });
});
it("should deal 0.125x damage against a Normal/Ice type with Grass added", () => { it("should deal 2x to Wonder Guard Shedinja under Electrify", () => {
enemy.summonData.types = [PokemonType.NORMAL, PokemonType.ICE]; game.field.mockAbility(enemy, AbilityId.WONDER_GUARD);
enemy.summonData.addedType = PokemonType.GRASS; hawlucha.addTag(BattlerTagType.ELECTRIFIED);
const moveType = hawlucha.getMoveType(allMoves[MoveId.FLYING_PRESS]); const flyingPressEff = enemy.getAttackTypeEffectiveness(hawlucha.getMoveType(allMoves[MoveId.FLYING_PRESS]), {
const flyingPressEff = enemy.getAttackTypeEffectiveness(moveType, { source: hawlucha,
source: hawlucha, move: allMoves[MoveId.FLYING_PRESS],
move: allMoves[MoveId.FLYING_PRESS],
});
expect(flyingPressEff).toBe(0.125);
}); });
expect(flyingPressEff).toBe(2);
}); });
}); });