mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-27 10:42:25 +02:00
Add test for transform
This commit is contained in:
parent
5ded51adb1
commit
c1f7b552ea
@ -116,4 +116,16 @@ describe("Moves - Transform", () => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("should activate its ability if it copies one that activates on summon", async () => {
|
||||||
|
game.override.enemyAbility(Abilities.INTIMIDATE)
|
||||||
|
.ability(Abilities.BALL_FETCH);
|
||||||
|
|
||||||
|
await game.classicMode.startBattle([ Species.DITTO ]);
|
||||||
|
game.move.select(Moves.TRANSFORM);
|
||||||
|
|
||||||
|
await game.phaseInterceptor.to("BerryPhase");
|
||||||
|
|
||||||
|
expect(game.scene.getEnemyPokemon()?.getStatStage(Stat.ATK)).toBe(-1);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user