Fixed locales + tests

This commit is contained in:
Bertie690 2025-07-21 11:05:27 -04:00
parent e3fb95ffc1
commit 944fc14fb6
3 changed files with 4 additions and 2 deletions

@ -1 +1 @@
Subproject commit 73baa3b8d9c486fd6263f601182ed97938fb6597
Subproject commit b96c39ed499c1d94b9edc362656667c8329ff5c4

View File

@ -39,7 +39,7 @@ export class PositionalTagManager {
const leftoverTags: PositionalTag[] = [];
for (const tag of this.tags) {
// Check for silent removal, immediately removing tags that.
if (!tag.shouldDisappear()) {
if (tag.shouldDisappear()) {
continue;
}

View File

@ -320,6 +320,7 @@ describe("Moves - Delayed Attacks", () => {
game.doSwitchPokemon(1);
const typeMock = vi.spyOn(game.field.getPlayerPokemon(), "getMoveType");
const powerMock = vi.spyOn(allMoves[MoveId.DOOM_DESIRE], "calculateBattlePower");
await game.toNextTurn();
@ -333,6 +334,7 @@ describe("Moves - Delayed Attacks", () => {
}),
);
expect(typeMock).toHaveLastReturnedWith(PokemonType.STEEL);
expect(powerMock).toHaveLastReturnedWith(150);
});
it.todo("should not apply the user's held items when dealing damage if the user is inactive", async () => {