[Test] Disable broken Wimp Out test (#5369)

This commit is contained in:
NightKev 2025-02-18 19:47:50 -08:00 committed by GitHub
parent 8864347cb0
commit 7fafccf8de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 24 additions and 20 deletions

View File

@ -2,6 +2,7 @@ import { BattlerIndex } from "#app/battle";
import { ArenaTagSide } from "#app/data/arena-tag"; import { ArenaTagSide } from "#app/data/arena-tag";
import { allMoves } from "#app/data/move"; import { allMoves } from "#app/data/move";
import GameManager from "#app/test/utils/gameManager"; import GameManager from "#app/test/utils/gameManager";
import { toDmgValue } from "#app/utils";
import { Abilities } from "#enums/abilities"; import { Abilities } from "#enums/abilities";
import { ArenaTagType } from "#enums/arena-tag-type"; import { ArenaTagType } from "#enums/arena-tag-type";
import { BattlerTagType } from "#enums/battler-tag-type"; import { BattlerTagType } from "#enums/battler-tag-type";
@ -244,29 +245,32 @@ describe("Abilities - Wimp Out", () => {
confirmNoSwitch(); confirmNoSwitch();
}); });
it("If it falls below half and recovers back above half from a Shell Bell, Wimp Out will activate even after the Shell Bell recovery", async () => { // TODO: Enable when this behavior is fixed (currently Shell Bell won't activate if Wimp Out activates because
game.override // the pokemon is removed from the field before the Shell Bell modifier is applied, so it can't see the
.moveset([ Moves.DOUBLE_EDGE ]) // damage dealt and doesn't heal the pokemon)
.enemyMoveset([ Moves.SPLASH ]) it.todo(
.startingHeldItems([ "If it falls below half and recovers back above half from a Shell Bell, Wimp Out will activate even after the Shell Bell recovery",
{ name: "SHELL_BELL", count: 3 }, async () => {
{ name: "HEALING_CHARM", count: 5 }, game.override
]); .moveset([ Moves.DOUBLE_EDGE ])
await game.classicMode.startBattle([ .enemyMoveset([ Moves.SPLASH ])
Species.WIMPOD, .startingHeldItems([{ name: "SHELL_BELL", count: 4 }]);
Species.TYRUNT await game.classicMode.startBattle([ Species.WIMPOD, Species.TYRUNT ]);
]);
game.scene.getPlayerPokemon()!.hp *= 0.75; const wimpod = game.scene.getPlayerPokemon()!;
game.move.select(Moves.DOUBLE_EDGE); wimpod.damageAndUpdate(toDmgValue(wimpod.getMaxHp() * 0.4));
game.doSelectPartyPokemon(1);
await game.phaseInterceptor.to("TurnEndPhase");
expect(game.scene.getPlayerParty()[1].getHpRatio()).toBeGreaterThan(0.5); game.move.select(Moves.DOUBLE_EDGE);
expect(game.phaseInterceptor.log).toContain("SwitchSummonPhase"); game.doSelectPartyPokemon(1);
expect(game.scene.getPlayerPokemon()!.species.speciesId).toBe(Species.TYRUNT); await game.phaseInterceptor.to("TurnEndPhase");
});
expect(game.scene.getPlayerParty()[1]).toBe(wimpod);
expect(wimpod.hp).toBeGreaterThan(toDmgValue(wimpod.getMaxHp() / 2));
expect(game.phaseInterceptor.log).toContain("SwitchSummonPhase");
expect(game.scene.getPlayerPokemon()!.species.speciesId).toBe(Species.TYRUNT);
},
);
it("Wimp Out will activate due to weather damage", async () => { it("Wimp Out will activate due to weather damage", async () => {
game.override game.override