Added Snooze's review

This commit is contained in:
frutescens 2024-08-20 17:34:38 -07:00
parent 957fe5b5c6
commit f89bc5856e
3 changed files with 6 additions and 7 deletions

View File

@ -1 +0,0 @@

View File

@ -55,7 +55,7 @@ describe("Abilities - Mycelium Might", () => {
// The opponent Pokemon (without Mycelium Might) goes first despite having lower speed than the player Pokemon. // The opponent Pokemon (without Mycelium Might) goes first despite having lower speed than the player Pokemon.
// The player Pokemon (with Mycelium Might) goes last despite having higher speed than the opponent. // The player Pokemon (with Mycelium Might) goes last despite having higher speed than the opponent.
// This means that the commandOrder is equivalent to the speed Order reversed // This means that the commandOrder is equivalent to the speed Order reversed
expect(speedOrder.reverse().every((val, index) => val === commandOrder[index])).toBe(true); expect(speedOrder.reverse()).toEqual(commandOrder);
await game.phaseInterceptor.to(TurnEndPhase); await game.phaseInterceptor.to(TurnEndPhase);
// Despite the opponent's ability (Clear Body), its attack stat is still reduced. // Despite the opponent's ability (Clear Body), its attack stat is still reduced.
expect(enemyPokemon?.summonData.battleStats[BattleStat.ATK]).toBe(-1); expect(enemyPokemon?.summonData.battleStats[BattleStat.ATK]).toBe(-1);
@ -75,7 +75,7 @@ describe("Abilities - Mycelium Might", () => {
// The player Pokemon (with M.M.) goes first because its move is still within a higher priority bracket than its opponent. // The player Pokemon (with M.M.) goes first because its move is still within a higher priority bracket than its opponent.
// The enemy Pokemon goes second because its move is in a lower priority bracket. // The enemy Pokemon goes second because its move is in a lower priority bracket.
// This means that the commandOrder should be identical to the speedOrder // This means that the commandOrder should be identical to the speedOrder
expect(speedOrder.every((val, index) => val === commandOrder[index])).toBe(true); expect(speedOrder).toEqual(commandOrder);
await game.phaseInterceptor.to(TurnEndPhase); await game.phaseInterceptor.to(TurnEndPhase);
// Despite the opponent's ability (Clear Body), its attack stat is still reduced. // Despite the opponent's ability (Clear Body), its attack stat is still reduced.
expect(enemyPokemon?.summonData.battleStats[BattleStat.ATK]).toBe(-1); expect(enemyPokemon?.summonData.battleStats[BattleStat.ATK]).toBe(-1);
@ -93,6 +93,6 @@ describe("Abilities - Mycelium Might", () => {
// The player Pokemon (with M.M.) goes first because it has a higher speed and did not use a status move. // The player Pokemon (with M.M.) goes first because it has a higher speed and did not use a status move.
// The enemy Pokemon (without M.M.) goes second because its speed is lower. // The enemy Pokemon (without M.M.) goes second because its speed is lower.
// This means that the commandOrder should be identical to the speedOrder // This means that the commandOrder should be identical to the speedOrder
expect(speedOrder.every((val, index) => val === commandOrder[index])).toBe(true); expect(speedOrder).toEqual(commandOrder);
}, 20000); }, 20000);
}); });

View File

@ -50,7 +50,7 @@ describe("Abilities - Stall", () => {
// The player Pokemon (without Stall) goes first despite having lower speed than the opponent. // The player Pokemon (without Stall) goes first despite having lower speed than the opponent.
// The opponent Pokemon (with Stall) goes last despite having higher speed than the player Pokemon. // The opponent Pokemon (with Stall) goes last despite having higher speed than the player Pokemon.
// This means that the commandOrder is equivalent to the speed Order reversed // This means that the commandOrder is equivalent to the speed Order reversed
expect(speedOrder.reverse().every((val, index) => val === commandOrder[index])).toBe(true); expect(speedOrder.reverse()).toEqual(commandOrder);
}, 20000); }, 20000);
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() => {
@ -65,7 +65,7 @@ describe("Abilities - Stall", () => {
// The opponent Pokemon (with Stall) goes first because its move is still within a higher priority bracket than its opponent. // The opponent Pokemon (with Stall) goes first because its move is still within a higher priority bracket than its opponent.
// The player Pokemon goes second because its move is in a lower priority bracket. // The player Pokemon goes second because its move is in a lower priority bracket.
// This means that the commandOrder should be identical to the speedOrder // This means that the commandOrder should be identical to the speedOrder
expect(speedOrder.every((val, index) => val === commandOrder[index])).toBe(true); expect(speedOrder).toEqual(commandOrder);
}, 20000); }, 20000);
it("If both Pokemon have stall and use the same move, speed is used to determine who goes first.", async() => { it("If both Pokemon have stall and use the same move, speed is used to determine who goes first.", async() => {
@ -82,6 +82,6 @@ describe("Abilities - Stall", () => {
// The opponent Pokemon (with Stall) goes first because it has a higher speed. // The opponent Pokemon (with Stall) goes first because it has a higher speed.
// The player Pokemon (with Stall) goes second because its speed is lower. // The player Pokemon (with Stall) goes second because its speed is lower.
// This means that the commandOrder should be identical to the speedOrder // This means that the commandOrder should be identical to the speedOrder
expect(speedOrder.every((val, index) => val === commandOrder[index])).toBe(true); expect(speedOrder).toEqual(commandOrder);
}, 20000); }, 20000);
}); });