mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-17 12:59:25 +02:00
Fix flying-press.test.ts
This commit is contained in:
parent
13a4b99072
commit
371e99a4a2
@ -115,16 +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 2x to Wonder Guard Shedinja under Electrify", () => {
|
it("should deal 0.125x damage against a Normal/Ice type with Grass added", () => {
|
||||||
game.field.mockAbility(enemy, AbilityId.WONDER_GUARD);
|
enemy.summonData.types = [PokemonType.NORMAL, PokemonType.ICE];
|
||||||
hawlucha.addTag(BattlerTagType.ELECTRIFIED);
|
enemy.summonData.addedType = PokemonType.GRASS;
|
||||||
|
|
||||||
const flyingPressEff = enemy.getAttackTypeEffectiveness(hawlucha.getMoveType(allMoves[MoveId.FLYING_PRESS]), {
|
const moveType = 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(2);
|
expect(flyingPressEff).toBe(0.125);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user