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]);
checkEffForAllTypes(PokemonType.NORMAL);
});
});
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;
it("should deal 2x to Wonder Guard Shedinja under Electrify", () => {
game.field.mockAbility(enemy, AbilityId.WONDER_GUARD);
hawlucha.addTag(BattlerTagType.ELECTRIFIED);
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);
const flyingPressEff = enemy.getAttackTypeEffectiveness(hawlucha.getMoveType(allMoves[MoveId.FLYING_PRESS]), {
source: hawlucha,
move: allMoves[MoveId.FLYING_PRESS],
});
expect(flyingPressEff).toBe(2);
});
});