mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 07:52:17 +02:00
typedocs fixes
This commit is contained in:
parent
d77c923ce4
commit
63a503e47f
@ -46,8 +46,8 @@ describe("Abilities - Mycelium Might", () => {
|
|||||||
await game.startBattle([ Species.REGIELEKI ]);
|
await game.startBattle([ Species.REGIELEKI ]);
|
||||||
|
|
||||||
const enemyPokemon = game.scene.getEnemyPokemon();
|
const enemyPokemon = game.scene.getEnemyPokemon();
|
||||||
const playerPokemonIndex = game.scene.getPlayerPokemon().getBattlerIndex();
|
const playerPokemonIndex = game.scene.getPlayerPokemon()?.getBattlerIndex();
|
||||||
const enemyPokemonIndex = enemyPokemon.getBattlerIndex();
|
const enemyPokemonIndex = enemyPokemon?.getBattlerIndex();
|
||||||
game.doAttack(getMovePosition(game.scene, 0, Moves.BABY_DOLL_EYES));
|
game.doAttack(getMovePosition(game.scene, 0, Moves.BABY_DOLL_EYES));
|
||||||
|
|
||||||
await game.phaseInterceptor.run(EnemyCommandPhase);
|
await game.phaseInterceptor.run(EnemyCommandPhase);
|
||||||
@ -68,8 +68,8 @@ describe("Abilities - Mycelium Might", () => {
|
|||||||
await game.startBattle([ Species.REGIELEKI ]);
|
await game.startBattle([ Species.REGIELEKI ]);
|
||||||
|
|
||||||
const enemyPokemon = game.scene.getEnemyPokemon();
|
const enemyPokemon = game.scene.getEnemyPokemon();
|
||||||
const playerPokemonIndex = game.scene.getPlayerPokemon().getBattlerIndex();
|
const playerPokemonIndex = game.scene.getPlayerPokemon()?.getBattlerIndex();
|
||||||
const enemyPokemonIndex = enemyPokemon.getBattlerIndex();
|
const enemyPokemonIndex = enemyPokemon?.getBattlerIndex();
|
||||||
game.doAttack(getMovePosition(game.scene, 0, Moves.BABY_DOLL_EYES));
|
game.doAttack(getMovePosition(game.scene, 0, Moves.BABY_DOLL_EYES));
|
||||||
|
|
||||||
await game.phaseInterceptor.run(EnemyCommandPhase);
|
await game.phaseInterceptor.run(EnemyCommandPhase);
|
||||||
@ -88,8 +88,8 @@ describe("Abilities - Mycelium Might", () => {
|
|||||||
it("Order is established normally if the Pokemon uses a non-status move", async() => {
|
it("Order is established normally if the Pokemon uses a non-status move", async() => {
|
||||||
await game.startBattle([ Species.REGIELEKI ]);
|
await game.startBattle([ Species.REGIELEKI ]);
|
||||||
|
|
||||||
const playerPokemonIndex = game.scene.getPlayerPokemon().getBattlerIndex();
|
const playerPokemonIndex = game.scene.getPlayerPokemon()?.getBattlerIndex();
|
||||||
const enemyPokemonIndex = game.scene.getEnemyPokemon().getBattlerIndex();
|
const enemyPokemonIndex = game.scene.getEnemyPokemon()?.getBattlerIndex();
|
||||||
game.doAttack(getMovePosition(game.scene, 0, Moves.QUICK_ATTACK));
|
game.doAttack(getMovePosition(game.scene, 0, Moves.QUICK_ATTACK));
|
||||||
|
|
||||||
await game.phaseInterceptor.run(EnemyCommandPhase);
|
await game.phaseInterceptor.run(EnemyCommandPhase);
|
||||||
|
@ -41,8 +41,8 @@ describe("Abilities - Stall", () => {
|
|||||||
it("Pokemon with Stall should move last in its priority bracket regardless of speed", async() => {
|
it("Pokemon with Stall should move last in its priority bracket regardless of speed", async() => {
|
||||||
await game.startBattle([ Species.SHUCKLE ]);
|
await game.startBattle([ Species.SHUCKLE ]);
|
||||||
|
|
||||||
const playerPokemonIndex = game.scene.getPlayerPokemon().getBattlerIndex();
|
const playerPokemonIndex = game.scene.getPlayerPokemon()?.getBattlerIndex();
|
||||||
const enemyPokemonIndex = game.scene.getEnemyPokemon().getBattlerIndex();
|
const enemyPokemonIndex = game.scene.getEnemyPokemon()?.getBattlerIndex();
|
||||||
game.doAttack(getMovePosition(game.scene, 0, Moves.QUICK_ATTACK));
|
game.doAttack(getMovePosition(game.scene, 0, Moves.QUICK_ATTACK));
|
||||||
|
|
||||||
await game.phaseInterceptor.run(EnemyCommandPhase);
|
await game.phaseInterceptor.run(EnemyCommandPhase);
|
||||||
@ -58,8 +58,8 @@ describe("Abilities - Stall", () => {
|
|||||||
it("Pokemon with Stall will go first if a move that is in a higher priority bracket than the opponent's move is used", async() => {
|
it("Pokemon with Stall will go first if a move that is in a higher priority bracket than the opponent's move is used", async() => {
|
||||||
await game.startBattle([ Species.SHUCKLE ]);
|
await game.startBattle([ Species.SHUCKLE ]);
|
||||||
|
|
||||||
const playerPokemonIndex = game.scene.getPlayerPokemon().getBattlerIndex();
|
const playerPokemonIndex = game.scene.getPlayerPokemon()?.getBattlerIndex();
|
||||||
const enemyPokemonIndex = game.scene.getEnemyPokemon().getBattlerIndex();
|
const enemyPokemonIndex = game.scene.getEnemyPokemon()?.getBattlerIndex();
|
||||||
game.doAttack(getMovePosition(game.scene, 0, Moves.TACKLE));
|
game.doAttack(getMovePosition(game.scene, 0, Moves.TACKLE));
|
||||||
|
|
||||||
await game.phaseInterceptor.run(EnemyCommandPhase);
|
await game.phaseInterceptor.run(EnemyCommandPhase);
|
||||||
@ -76,8 +76,8 @@ describe("Abilities - Stall", () => {
|
|||||||
game.override.ability(Abilities.STALL);
|
game.override.ability(Abilities.STALL);
|
||||||
await game.startBattle([ Species.SHUCKLE ]);
|
await game.startBattle([ Species.SHUCKLE ]);
|
||||||
|
|
||||||
const playerPokemonIndex = game.scene.getPlayerPokemon().getBattlerIndex();
|
const playerPokemonIndex = game.scene.getPlayerPokemon()?.getBattlerIndex();
|
||||||
const enemyPokemonIndex = game.scene.getEnemyPokemon().getBattlerIndex();
|
const enemyPokemonIndex = game.scene.getEnemyPokemon()?.getBattlerIndex();
|
||||||
game.doAttack(getMovePosition(game.scene, 0, Moves.TACKLE));
|
game.doAttack(getMovePosition(game.scene, 0, Moves.TACKLE));
|
||||||
|
|
||||||
await game.phaseInterceptor.run(EnemyCommandPhase);
|
await game.phaseInterceptor.run(EnemyCommandPhase);
|
||||||
|
Loading…
Reference in New Issue
Block a user