mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-15 20:09:30 +02:00
Added extra Wonder Guard test
This commit is contained in:
parent
f5e0ddd7af
commit
7c60d0a5b1
@ -43,7 +43,6 @@ describe.sequential("Move - Flying Press", () => {
|
|||||||
|
|
||||||
// Reset temporary summon data overrides to reset effects
|
// Reset temporary summon data overrides to reset effects
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
console.log("Apple");
|
|
||||||
hawlucha.resetSummonData();
|
hawlucha.resetSummonData();
|
||||||
expect(hawlucha).not.toHaveBattlerTag(BattlerTagType.ELECTRIFIED);
|
expect(hawlucha).not.toHaveBattlerTag(BattlerTagType.ELECTRIFIED);
|
||||||
expect(hawlucha.hasAbility(AbilityId.NORMALIZE)).toBe(false);
|
expect(hawlucha.hasAbility(AbilityId.NORMALIZE)).toBe(false);
|
||||||
@ -106,4 +105,18 @@ describe.sequential("Move - Flying Press", () => {
|
|||||||
checkEffForAllTypes(PokemonType.NORMAL);
|
checkEffForAllTypes(PokemonType.NORMAL);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("should deal 2x to Wonder Guard Shedinja under Electrify", () => {
|
||||||
|
const enemy = game.field.getEnemyPokemon();
|
||||||
|
game.field.mockAbility(enemy, AbilityId.WONDER_GUARD);
|
||||||
|
enemy.resetSummonData();
|
||||||
|
|
||||||
|
hawlucha.addTag(BattlerTagType.ELECTRIFIED);
|
||||||
|
|
||||||
|
const flyingPressEff = enemy.getAttackTypeEffectiveness(hawlucha.getMoveType(allMoves[MoveId.FLYING_PRESS]), {
|
||||||
|
source: hawlucha,
|
||||||
|
move: allMoves[MoveId.FLYING_PRESS],
|
||||||
|
});
|
||||||
|
expect(flyingPressEff).toBe(2);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user