mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 17:12:44 +02:00
added map
statement
This commit is contained in:
parent
b9ffd03165
commit
599a2487bf
@ -64,7 +64,10 @@ export class MoveHelper extends GameManagerHelper {
|
|||||||
const movePosition = this.getMovePosition(pkmIndex, move);
|
const movePosition = this.getMovePosition(pkmIndex, move);
|
||||||
if (movePosition === -1) {
|
if (movePosition === -1) {
|
||||||
expect.fail(
|
expect.fail(
|
||||||
`MoveHelper.select called with move ${toReadableString(MoveId[move])} not in moveset;\nBattler Index: ${BattlerIndex[pkmIndex]};\nMoveset: ${this.game.scene.getField()[pkmIndex].getMoveset()}`,
|
`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)}`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -102,7 +105,10 @@ export class MoveHelper extends GameManagerHelper {
|
|||||||
const movePosition = this.getMovePosition(pkmIndex, move);
|
const movePosition = this.getMovePosition(pkmIndex, move);
|
||||||
if (movePosition === -1) {
|
if (movePosition === -1) {
|
||||||
expect.fail(
|
expect.fail(
|
||||||
`MoveHelper.selectWithTera called with move ${toReadableString(MoveId[move])} not in moveset;\nBattler Index: ${BattlerIndex[pkmIndex]};\nMoveset: ${this.game.scene.getField()[pkmIndex].getMoveset()}`,
|
`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)}`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user