mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-20 16:42:45 +02:00
Fixed test and comment
This commit is contained in:
parent
ef8f17b026
commit
01c1f0e1e3
@ -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);
|
||||
});
|
||||
|
@ -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])}`,
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user