2024-09-02 22:12:34 -04:00
|
|
|
import { Stat } from "#enums/stat";
|
2024-07-29 17:32:02 -04:00
|
|
|
import { BattlerIndex } from "#app/battle";
|
2024-08-22 06:49:33 -07:00
|
|
|
import { allMoves } from "#app/data/move";
|
2024-11-25 14:15:39 -08:00
|
|
|
import { DamageAnimPhase } from "#app/phases/damage-anim-phase";
|
2024-08-22 06:49:33 -07:00
|
|
|
import { MoveEffectPhase } from "#app/phases/move-effect-phase";
|
|
|
|
import { MoveEndPhase } from "#app/phases/move-end-phase";
|
|
|
|
import { MovePhase } from "#app/phases/move-phase";
|
2024-07-29 17:32:02 -04:00
|
|
|
import { Moves } from "#enums/moves";
|
2024-08-22 06:49:33 -07:00
|
|
|
import { Species } from "#enums/species";
|
2025-02-22 22:52:07 -06:00
|
|
|
import GameManager from "#test/testUtils/gameManager";
|
2024-08-22 06:49:33 -07:00
|
|
|
import Phaser from "phaser";
|
|
|
|
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
2024-07-29 17:32:02 -04:00
|
|
|
|
|
|
|
describe("Moves - Fusion Flare and Fusion Bolt", () => {
|
|
|
|
let phaserGame: Phaser.Game;
|
|
|
|
let game: GameManager;
|
|
|
|
|
|
|
|
const fusionFlare = allMoves[Moves.FUSION_FLARE];
|
|
|
|
const fusionBolt = allMoves[Moves.FUSION_BOLT];
|
|
|
|
|
|
|
|
beforeAll(() => {
|
|
|
|
phaserGame = new Phaser.Game({
|
|
|
|
type: Phaser.HEADLESS,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
afterEach(() => {
|
|
|
|
game.phaseInterceptor.restoreOg();
|
|
|
|
});
|
|
|
|
|
|
|
|
beforeEach(() => {
|
|
|
|
game = new GameManager(phaserGame);
|
2024-10-04 13:08:31 +08:00
|
|
|
game.override.moveset([ fusionFlare.id, fusionBolt.id ]);
|
2024-08-06 07:06:25 -07:00
|
|
|
game.override.startingLevel(1);
|
2024-07-29 17:32:02 -04:00
|
|
|
|
2024-08-06 07:06:25 -07:00
|
|
|
game.override.enemySpecies(Species.RESHIRAM);
|
2024-10-04 13:08:31 +08:00
|
|
|
game.override.enemyMoveset([ Moves.REST, Moves.REST, Moves.REST, Moves.REST ]);
|
2024-07-29 17:32:02 -04:00
|
|
|
|
2024-08-06 07:06:25 -07:00
|
|
|
game.override.battleType("double");
|
|
|
|
game.override.startingWave(97);
|
|
|
|
game.override.disableCrits();
|
2024-07-29 17:32:02 -04:00
|
|
|
|
|
|
|
vi.spyOn(fusionFlare, "calculateBattlePower");
|
|
|
|
vi.spyOn(fusionBolt, "calculateBattlePower");
|
|
|
|
});
|
|
|
|
|
2024-08-22 06:49:33 -07:00
|
|
|
it("FUSION_FLARE should double power of subsequent FUSION_BOLT", async () => {
|
2024-07-29 17:32:02 -04:00
|
|
|
await game.startBattle([
|
|
|
|
Species.ZEKROM,
|
|
|
|
Species.ZEKROM
|
|
|
|
]);
|
|
|
|
|
2024-08-22 06:49:33 -07:00
|
|
|
game.move.select(fusionFlare.id, 0, BattlerIndex.ENEMY);
|
|
|
|
game.move.select(fusionBolt.id, 1, BattlerIndex.ENEMY);
|
2024-07-29 17:32:02 -04:00
|
|
|
|
|
|
|
// Force user party to act before enemy party
|
2024-10-04 13:08:31 +08:00
|
|
|
await game.setTurnOrder([ BattlerIndex.PLAYER, BattlerIndex.PLAYER_2, BattlerIndex.ENEMY, BattlerIndex.ENEMY_2 ]);
|
2024-07-29 17:32:02 -04:00
|
|
|
|
|
|
|
await game.phaseInterceptor.to(MoveEffectPhase, false);
|
|
|
|
expect((game.scene.getCurrentPhase() as MoveEffectPhase).move.moveId).toBe(fusionFlare.id);
|
2024-11-25 14:15:39 -08:00
|
|
|
await game.phaseInterceptor.to(DamageAnimPhase, false);
|
2024-07-29 17:32:02 -04:00
|
|
|
expect(fusionFlare.calculateBattlePower).toHaveLastReturnedWith(100);
|
|
|
|
|
|
|
|
await game.phaseInterceptor.to(MoveEffectPhase, false);
|
|
|
|
expect((game.scene.getCurrentPhase() as MoveEffectPhase).move.moveId).toBe(fusionBolt.id);
|
2024-11-25 14:15:39 -08:00
|
|
|
await game.phaseInterceptor.to(DamageAnimPhase, false);
|
2024-07-29 17:32:02 -04:00
|
|
|
expect(fusionBolt.calculateBattlePower).toHaveLastReturnedWith(200);
|
|
|
|
}, 20000);
|
|
|
|
|
2024-08-22 06:49:33 -07:00
|
|
|
it("FUSION_BOLT should double power of subsequent FUSION_FLARE", async () => {
|
2024-07-29 17:32:02 -04:00
|
|
|
await game.startBattle([
|
|
|
|
Species.ZEKROM,
|
|
|
|
Species.ZEKROM
|
|
|
|
]);
|
|
|
|
|
2024-08-22 06:49:33 -07:00
|
|
|
game.move.select(fusionBolt.id, 0, BattlerIndex.ENEMY);
|
|
|
|
game.move.select(fusionFlare.id, 1, BattlerIndex.ENEMY);
|
2024-07-29 17:32:02 -04:00
|
|
|
|
|
|
|
// Force user party to act before enemy party
|
2024-10-04 13:08:31 +08:00
|
|
|
await game.setTurnOrder([ BattlerIndex.PLAYER, BattlerIndex.PLAYER_2, BattlerIndex.ENEMY, BattlerIndex.ENEMY_2 ]);
|
2024-07-29 17:32:02 -04:00
|
|
|
|
|
|
|
await game.phaseInterceptor.to(MoveEffectPhase, false);
|
|
|
|
expect((game.scene.getCurrentPhase() as MoveEffectPhase).move.moveId).toBe(fusionBolt.id);
|
2024-11-25 14:15:39 -08:00
|
|
|
await game.phaseInterceptor.to(DamageAnimPhase, false);
|
2024-07-29 17:32:02 -04:00
|
|
|
expect(fusionBolt.calculateBattlePower).toHaveLastReturnedWith(100);
|
|
|
|
|
|
|
|
await game.phaseInterceptor.to(MoveEffectPhase, false);
|
|
|
|
expect((game.scene.getCurrentPhase() as MoveEffectPhase).move.moveId).toBe(fusionFlare.id);
|
2024-11-25 14:15:39 -08:00
|
|
|
await game.phaseInterceptor.to(DamageAnimPhase, false);
|
2024-07-29 17:32:02 -04:00
|
|
|
expect(fusionFlare.calculateBattlePower).toHaveLastReturnedWith(200);
|
|
|
|
}, 20000);
|
|
|
|
|
2024-08-22 06:49:33 -07:00
|
|
|
it("FUSION_FLARE should double power of subsequent FUSION_BOLT if a move failed in between", async () => {
|
2024-07-29 17:32:02 -04:00
|
|
|
await game.startBattle([
|
|
|
|
Species.ZEKROM,
|
|
|
|
Species.ZEKROM
|
|
|
|
]);
|
|
|
|
|
2024-08-22 06:49:33 -07:00
|
|
|
game.move.select(fusionFlare.id, 0, BattlerIndex.PLAYER);
|
|
|
|
game.move.select(fusionBolt.id, 1, BattlerIndex.PLAYER);
|
2024-07-29 17:32:02 -04:00
|
|
|
|
|
|
|
// Force first enemy to act (and fail) in between party
|
2024-10-04 13:08:31 +08:00
|
|
|
await game.setTurnOrder([ BattlerIndex.PLAYER, BattlerIndex.ENEMY_2, BattlerIndex.PLAYER_2, BattlerIndex.ENEMY ]);
|
2024-07-29 17:32:02 -04:00
|
|
|
|
|
|
|
await game.phaseInterceptor.to(MoveEffectPhase, false);
|
|
|
|
expect((game.scene.getCurrentPhase() as MoveEffectPhase).move.moveId).toBe(fusionFlare.id);
|
2024-11-25 14:15:39 -08:00
|
|
|
await game.phaseInterceptor.to(DamageAnimPhase, false);
|
2024-07-29 17:32:02 -04:00
|
|
|
expect(fusionFlare.calculateBattlePower).toHaveLastReturnedWith(100);
|
|
|
|
|
|
|
|
await game.phaseInterceptor.to(MoveEndPhase);
|
|
|
|
|
|
|
|
// Skip enemy move; because the enemy is at full HP, Rest should fail
|
|
|
|
await game.phaseInterceptor.runFrom(MovePhase).to(MoveEndPhase);
|
|
|
|
|
|
|
|
await game.phaseInterceptor.to(MoveEffectPhase, false);
|
|
|
|
expect((game.scene.getCurrentPhase() as MoveEffectPhase).move.moveId).toBe(fusionBolt.id);
|
2024-11-25 14:15:39 -08:00
|
|
|
await game.phaseInterceptor.to(DamageAnimPhase, false);
|
2024-07-29 17:32:02 -04:00
|
|
|
expect(fusionBolt.calculateBattlePower).toHaveLastReturnedWith(200);
|
|
|
|
}, 20000);
|
|
|
|
|
2024-08-22 06:49:33 -07:00
|
|
|
it("FUSION_FLARE should not double power of subsequent FUSION_BOLT if a move succeeded in between", async () => {
|
2024-10-04 13:08:31 +08:00
|
|
|
game.override.enemyMoveset([ Moves.SPLASH, Moves.SPLASH, Moves.SPLASH, Moves.SPLASH ]);
|
2024-07-29 17:32:02 -04:00
|
|
|
await game.startBattle([
|
|
|
|
Species.ZEKROM,
|
|
|
|
Species.ZEKROM
|
|
|
|
]);
|
|
|
|
|
2024-08-22 06:49:33 -07:00
|
|
|
game.move.select(fusionFlare.id, 0, BattlerIndex.ENEMY);
|
|
|
|
game.move.select(fusionBolt.id, 1, BattlerIndex.ENEMY);
|
2024-07-29 17:32:02 -04:00
|
|
|
|
|
|
|
// Force first enemy to act in between party
|
2024-10-04 13:08:31 +08:00
|
|
|
await game.setTurnOrder([ BattlerIndex.PLAYER, BattlerIndex.ENEMY_2, BattlerIndex.PLAYER_2, BattlerIndex.ENEMY ]);
|
2024-07-29 17:32:02 -04:00
|
|
|
|
|
|
|
await game.phaseInterceptor.to(MoveEffectPhase, false);
|
|
|
|
expect((game.scene.getCurrentPhase() as MoveEffectPhase).move.moveId).toBe(fusionFlare.id);
|
2024-11-25 14:15:39 -08:00
|
|
|
await game.phaseInterceptor.to(DamageAnimPhase, false);
|
2024-07-29 17:32:02 -04:00
|
|
|
expect(fusionFlare.calculateBattlePower).toHaveLastReturnedWith(100);
|
|
|
|
|
|
|
|
await game.phaseInterceptor.to(MoveEndPhase);
|
|
|
|
// Skip enemy move
|
|
|
|
await game.phaseInterceptor.runFrom(MovePhase).to(MoveEndPhase);
|
|
|
|
|
|
|
|
await game.phaseInterceptor.to(MoveEffectPhase, false);
|
|
|
|
expect((game.scene.getCurrentPhase() as MoveEffectPhase).move.moveId).toBe(fusionBolt.id);
|
2024-11-25 14:15:39 -08:00
|
|
|
await game.phaseInterceptor.to(DamageAnimPhase, false);
|
2024-07-29 17:32:02 -04:00
|
|
|
expect(fusionBolt.calculateBattlePower).toHaveLastReturnedWith(100);
|
|
|
|
}, 20000);
|
|
|
|
|
2024-08-22 06:49:33 -07:00
|
|
|
it("FUSION_FLARE should double power of subsequent FUSION_BOLT if moves are aimed at allies", async () => {
|
2024-07-29 17:32:02 -04:00
|
|
|
await game.startBattle([
|
|
|
|
Species.ZEKROM,
|
|
|
|
Species.RESHIRAM
|
|
|
|
]);
|
|
|
|
|
2024-08-22 06:49:33 -07:00
|
|
|
game.move.select(fusionBolt.id, 0, BattlerIndex.PLAYER_2);
|
|
|
|
game.move.select(fusionFlare.id, 1, BattlerIndex.PLAYER);
|
2024-07-29 17:32:02 -04:00
|
|
|
|
|
|
|
// Force user party to act before enemy party
|
2024-10-04 13:08:31 +08:00
|
|
|
await game.setTurnOrder([ BattlerIndex.PLAYER, BattlerIndex.PLAYER_2, BattlerIndex.ENEMY, BattlerIndex.ENEMY_2 ]);
|
2024-07-29 17:32:02 -04:00
|
|
|
|
|
|
|
await game.phaseInterceptor.to(MoveEffectPhase, false);
|
|
|
|
expect((game.scene.getCurrentPhase() as MoveEffectPhase).move.moveId).toBe(fusionBolt.id);
|
2024-11-25 14:15:39 -08:00
|
|
|
await game.phaseInterceptor.to(DamageAnimPhase, false);
|
2024-07-29 17:32:02 -04:00
|
|
|
expect(fusionBolt.calculateBattlePower).toHaveLastReturnedWith(100);
|
|
|
|
|
|
|
|
await game.phaseInterceptor.to(MoveEffectPhase, false);
|
|
|
|
expect((game.scene.getCurrentPhase() as MoveEffectPhase).move.moveId).toBe(fusionFlare.id);
|
2024-11-25 14:15:39 -08:00
|
|
|
await game.phaseInterceptor.to(DamageAnimPhase, false);
|
2024-07-29 17:32:02 -04:00
|
|
|
expect(fusionFlare.calculateBattlePower).toHaveLastReturnedWith(200);
|
|
|
|
}, 20000);
|
|
|
|
|
2024-08-22 06:49:33 -07:00
|
|
|
it("FUSION_FLARE and FUSION_BOLT alternating throughout turn should double power of subsequent moves", async () => {
|
2024-10-04 13:08:31 +08:00
|
|
|
game.override.enemyMoveset([ fusionFlare.id, fusionFlare.id, fusionFlare.id, fusionFlare.id ]);
|
2024-07-29 17:32:02 -04:00
|
|
|
await game.startBattle([
|
|
|
|
Species.ZEKROM,
|
|
|
|
Species.ZEKROM
|
|
|
|
]);
|
|
|
|
|
2024-11-03 18:53:52 -08:00
|
|
|
const party = game.scene.getPlayerParty();
|
2024-07-29 17:32:02 -04:00
|
|
|
const enemyParty = game.scene.getEnemyParty();
|
|
|
|
|
|
|
|
// Get rid of any modifiers that may alter power
|
|
|
|
game.scene.clearEnemyHeldItemModifiers();
|
|
|
|
game.scene.clearEnemyModifiers();
|
|
|
|
|
|
|
|
// Mock stats by replacing entries in copy with desired values for specific stats
|
|
|
|
const stats = {
|
|
|
|
enemy: [
|
2024-10-04 13:08:31 +08:00
|
|
|
[ ...enemyParty[0].stats ],
|
|
|
|
[ ...enemyParty[1].stats ],
|
2024-07-29 17:32:02 -04:00
|
|
|
],
|
|
|
|
player: [
|
2024-10-04 13:08:31 +08:00
|
|
|
[ ...party[0].stats ],
|
|
|
|
[ ...party[1].stats ],
|
2024-07-29 17:32:02 -04:00
|
|
|
]
|
|
|
|
};
|
|
|
|
|
|
|
|
// Ensure survival by reducing enemy Sp. Atk and boosting party Sp. Def
|
|
|
|
vi.spyOn(enemyParty[0], "stats", "get").mockReturnValue(stats.enemy[0].map((val, i) => (i === Stat.SPATK ? 1 : val)));
|
|
|
|
vi.spyOn(enemyParty[1], "stats", "get").mockReturnValue(stats.enemy[1].map((val, i) => (i === Stat.SPATK ? 1 : val)));
|
|
|
|
vi.spyOn(party[1], "stats", "get").mockReturnValue(stats.player[0].map((val, i) => (i === Stat.SPDEF ? 250 : val)));
|
|
|
|
vi.spyOn(party[1], "stats", "get").mockReturnValue(stats.player[1].map((val, i) => (i === Stat.SPDEF ? 250 : val)));
|
|
|
|
|
2024-08-22 06:49:33 -07:00
|
|
|
game.move.select(fusionBolt.id, 0, BattlerIndex.ENEMY);
|
|
|
|
game.move.select(fusionBolt.id, 1, BattlerIndex.ENEMY);
|
2024-07-29 17:32:02 -04:00
|
|
|
|
|
|
|
// Force first enemy to act in between party
|
2024-10-04 13:08:31 +08:00
|
|
|
await game.setTurnOrder([ BattlerIndex.PLAYER, BattlerIndex.ENEMY_2, BattlerIndex.PLAYER_2, BattlerIndex.ENEMY ]);
|
2024-07-29 17:32:02 -04:00
|
|
|
|
|
|
|
await game.phaseInterceptor.to(MoveEffectPhase, false);
|
|
|
|
expect((game.scene.getCurrentPhase() as MoveEffectPhase).move.moveId).toBe(fusionBolt.id);
|
2024-11-25 14:15:39 -08:00
|
|
|
await game.phaseInterceptor.to(DamageAnimPhase, false);
|
2024-07-29 17:32:02 -04:00
|
|
|
expect(fusionBolt.calculateBattlePower).toHaveLastReturnedWith(100);
|
|
|
|
|
|
|
|
await game.phaseInterceptor.to(MoveEffectPhase, false);
|
|
|
|
expect((game.scene.getCurrentPhase() as MoveEffectPhase).move.moveId).toBe(fusionFlare.id);
|
2024-11-25 14:15:39 -08:00
|
|
|
await game.phaseInterceptor.to(DamageAnimPhase, false);
|
2024-07-29 17:32:02 -04:00
|
|
|
expect(fusionFlare.calculateBattlePower).toHaveLastReturnedWith(200);
|
|
|
|
|
|
|
|
await game.phaseInterceptor.to(MoveEffectPhase, false);
|
|
|
|
expect((game.scene.getCurrentPhase() as MoveEffectPhase).move.moveId).toBe(fusionBolt.id);
|
2024-11-25 14:15:39 -08:00
|
|
|
await game.phaseInterceptor.to(DamageAnimPhase, false);
|
2024-07-29 17:32:02 -04:00
|
|
|
expect(fusionBolt.calculateBattlePower).toHaveLastReturnedWith(200);
|
|
|
|
|
|
|
|
await game.phaseInterceptor.to(MoveEffectPhase, false);
|
|
|
|
expect((game.scene.getCurrentPhase() as MoveEffectPhase).move.moveId).toBe(fusionFlare.id);
|
2024-11-25 14:15:39 -08:00
|
|
|
await game.phaseInterceptor.to(DamageAnimPhase, false);
|
2024-07-29 17:32:02 -04:00
|
|
|
expect(fusionFlare.calculateBattlePower).toHaveLastReturnedWith(200);
|
|
|
|
}, 20000);
|
|
|
|
|
2024-08-22 06:49:33 -07:00
|
|
|
it("FUSION_FLARE and FUSION_BOLT alternating throughout turn should double power of subsequent moves if moves are aimed at allies", async () => {
|
2024-10-04 13:08:31 +08:00
|
|
|
game.override.enemyMoveset([ fusionFlare.id, fusionFlare.id, fusionFlare.id, fusionFlare.id ]);
|
2024-07-29 17:32:02 -04:00
|
|
|
await game.startBattle([
|
|
|
|
Species.ZEKROM,
|
|
|
|
Species.ZEKROM
|
|
|
|
]);
|
|
|
|
|
2024-11-03 18:53:52 -08:00
|
|
|
const party = game.scene.getPlayerParty();
|
2024-07-29 17:32:02 -04:00
|
|
|
const enemyParty = game.scene.getEnemyParty();
|
|
|
|
|
|
|
|
// Get rid of any modifiers that may alter power
|
|
|
|
game.scene.clearEnemyHeldItemModifiers();
|
|
|
|
game.scene.clearEnemyModifiers();
|
|
|
|
|
|
|
|
// Mock stats by replacing entries in copy with desired values for specific stats
|
|
|
|
const stats = {
|
|
|
|
enemy: [
|
2024-10-04 13:08:31 +08:00
|
|
|
[ ...enemyParty[0].stats ],
|
|
|
|
[ ...enemyParty[1].stats ],
|
2024-07-29 17:32:02 -04:00
|
|
|
],
|
|
|
|
player: [
|
2024-10-04 13:08:31 +08:00
|
|
|
[ ...party[0].stats ],
|
|
|
|
[ ...party[1].stats ],
|
2024-07-29 17:32:02 -04:00
|
|
|
]
|
|
|
|
};
|
|
|
|
|
|
|
|
// Ensure survival by reducing enemy Sp. Atk and boosting party Sp. Def
|
|
|
|
vi.spyOn(enemyParty[0], "stats", "get").mockReturnValue(stats.enemy[0].map((val, i) => (i === Stat.SPATK ? 1 : val)));
|
|
|
|
vi.spyOn(enemyParty[1], "stats", "get").mockReturnValue(stats.enemy[1].map((val, i) => (i === Stat.SPATK ? 1 : val)));
|
|
|
|
vi.spyOn(party[1], "stats", "get").mockReturnValue(stats.player[0].map((val, i) => (i === Stat.SPDEF ? 250 : val)));
|
|
|
|
vi.spyOn(party[1], "stats", "get").mockReturnValue(stats.player[1].map((val, i) => (i === Stat.SPDEF ? 250 : val)));
|
|
|
|
|
2024-08-22 06:49:33 -07:00
|
|
|
game.move.select(fusionBolt.id, 0, BattlerIndex.PLAYER_2);
|
|
|
|
game.move.select(fusionBolt.id, 1, BattlerIndex.PLAYER);
|
2024-07-29 17:32:02 -04:00
|
|
|
|
|
|
|
// Force first enemy to act in between party
|
2024-10-04 13:08:31 +08:00
|
|
|
await game.setTurnOrder([ BattlerIndex.PLAYER, BattlerIndex.ENEMY_2, BattlerIndex.PLAYER_2, BattlerIndex.ENEMY ]);
|
2024-07-29 17:32:02 -04:00
|
|
|
|
|
|
|
await game.phaseInterceptor.to(MoveEffectPhase, false);
|
|
|
|
expect((game.scene.getCurrentPhase() as MoveEffectPhase).move.moveId).toBe(fusionBolt.id);
|
2024-11-25 14:15:39 -08:00
|
|
|
await game.phaseInterceptor.to(DamageAnimPhase, false);
|
2024-07-29 17:32:02 -04:00
|
|
|
expect(fusionBolt.calculateBattlePower).toHaveLastReturnedWith(100);
|
|
|
|
|
|
|
|
await game.phaseInterceptor.to(MoveEffectPhase, false);
|
|
|
|
expect((game.scene.getCurrentPhase() as MoveEffectPhase).move.moveId).toBe(fusionFlare.id);
|
2024-11-25 14:15:39 -08:00
|
|
|
await game.phaseInterceptor.to(DamageAnimPhase, false);
|
2024-07-29 17:32:02 -04:00
|
|
|
expect(fusionFlare.calculateBattlePower).toHaveLastReturnedWith(200);
|
|
|
|
|
|
|
|
await game.phaseInterceptor.to(MoveEffectPhase, false);
|
|
|
|
expect((game.scene.getCurrentPhase() as MoveEffectPhase).move.moveId).toBe(fusionBolt.id);
|
2024-11-25 14:15:39 -08:00
|
|
|
await game.phaseInterceptor.to(DamageAnimPhase, false);
|
2024-07-29 17:32:02 -04:00
|
|
|
expect(fusionBolt.calculateBattlePower).toHaveLastReturnedWith(200);
|
|
|
|
|
|
|
|
await game.phaseInterceptor.to(MoveEffectPhase, false);
|
|
|
|
expect((game.scene.getCurrentPhase() as MoveEffectPhase).move.moveId).toBe(fusionFlare.id);
|
2024-11-25 14:15:39 -08:00
|
|
|
await game.phaseInterceptor.to(DamageAnimPhase, false);
|
2024-07-29 17:32:02 -04:00
|
|
|
expect(fusionFlare.calculateBattlePower).toHaveLastReturnedWith(200);
|
|
|
|
}, 20000);
|
|
|
|
});
|