Fixed test and comment

This commit is contained in:
Bertie690 2025-06-16 18:55:10 -04:00
parent ef8f17b026
commit 01c1f0e1e3
2 changed files with 4 additions and 8 deletions

View File

@ -259,7 +259,7 @@ describe("Abilities - Ice Face", () => {
const eiscue = game.scene.getEnemyPokemon()!;
expect(eiscue.getTag(BattlerTagType.ICE_FACE)).not.toBe(undefined);
expect(eiscue.getTag(BattlerTagType.ICE_FACE)).toBeDefined();
expect(eiscue.formIndex).toBe(icefaceForm);
expect(eiscue.hasAbility(AbilityId.ICE_FACE)).toBe(true);
});
@ -269,13 +269,9 @@ describe("Abilities - Ice Face", () => {
await game.classicMode.startBattle([SpeciesId.MAGIKARP]);
game.move.select(MoveId.SIMPLE_BEAM);
await game.phaseInterceptor.to(TurnInitPhase);
const eiscue = game.scene.getEnemyPokemon()!;
expect(eiscue.getTag(BattlerTagType.ICE_FACE)).not.toBe(undefined);
expect(eiscue.getTag(BattlerTagType.ICE_FACE)).toBeDefined();
expect(eiscue.formIndex).toBe(icefaceForm);
expect(game.scene.getPlayerPokemon()!.hasAbility(AbilityId.TRACE)).toBe(true);
});

View File

@ -67,7 +67,7 @@ export class MoveHelper extends GameManagerHelper {
`MoveHelper.select called with move ${toReadableString(MoveId[move])} not in moveset;\nBattler Index: ${BattlerIndex[pkmIndex]};\nMoveset: ${this.game.scene
.getField()
[pkmIndex].getMoveset()
.map(pm => pm.moveId)}`,
.map(pm => MoveId[pm.moveId])}`,
);
}
@ -108,7 +108,7 @@ export class MoveHelper extends GameManagerHelper {
`MoveHelper.selectWithTera called with move ${toReadableString(MoveId[move])} not in moveset;\nBattler Index: ${BattlerIndex[pkmIndex]};\nMoveset: ${this.game.scene
.getField()
[pkmIndex].getMoveset()
.map(pm => pm.moveId)}`,
.map(pm => MoveId[pm.moveId])}`,
);
}