mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-01 05:52:17 +02:00
Fixed instruct test to not bork
This commit is contained in:
parent
be6000f590
commit
a985438620
@ -610,7 +610,12 @@ describe("Moves - Instruct", () => {
|
|||||||
|
|
||||||
// Fake enemy 1 having attacked prior
|
// Fake enemy 1 having attacked prior
|
||||||
const [, player2, enemy1, enemy2] = game.scene.getField();
|
const [, player2, enemy1, enemy2] = game.scene.getField();
|
||||||
enemy1.pushMoveHistory({ move: MoveId.ABSORB, targets: [BattlerIndex.PLAYER] });
|
enemy1.pushMoveHistory({
|
||||||
|
move: MoveId.ABSORB,
|
||||||
|
targets: [BattlerIndex.PLAYER],
|
||||||
|
result: MoveResult.SUCCESS,
|
||||||
|
useMode: MoveUseMode.NORMAL,
|
||||||
|
});
|
||||||
game.field.mockAbility(enemy1, AbilityId.STEADFAST);
|
game.field.mockAbility(enemy1, AbilityId.STEADFAST);
|
||||||
|
|
||||||
game.move.use(MoveId.AIR_SLASH, BattlerIndex.PLAYER, BattlerIndex.ENEMY);
|
game.move.use(MoveId.AIR_SLASH, BattlerIndex.PLAYER, BattlerIndex.ENEMY);
|
||||||
|
Loading…
Reference in New Issue
Block a user