mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-08 08:29:37 +02:00
More array destructuring!!!
This commit is contained in:
parent
6013bc8c00
commit
c55f105d31
@ -40,8 +40,7 @@ describe("Abilities - ZERO TO HERO", () => {
|
||||
|
||||
await game.classicMode.startBattle([SpeciesId.FEEBAS, SpeciesId.PALAFIN, SpeciesId.PALAFIN]);
|
||||
|
||||
const palafin1 = game.scene.getPlayerParty()[1];
|
||||
const palafin2 = game.scene.getPlayerParty()[2];
|
||||
const [, palafin1, palafin2] = game.scene.getPlayerParty();
|
||||
expect(palafin1.formIndex).toBe(heroForm);
|
||||
expect(palafin2.formIndex).toBe(heroForm);
|
||||
palafin2.hp = 0;
|
||||
|
@ -106,8 +106,7 @@ describe("Moves - Tera Starstorm", () => {
|
||||
it("applies the effects when Terapagos in Stellar Form is fused with another Pokemon", async () => {
|
||||
await game.classicMode.startBattle([SpeciesId.TERAPAGOS, SpeciesId.CHARMANDER, SpeciesId.MAGIKARP]);
|
||||
|
||||
const fusionedMon = game.scene.getPlayerParty()[0];
|
||||
const magikarp = game.scene.getPlayerParty()[2];
|
||||
const [fusionedMon, , magikarp] = game.scene.getPlayerParty();
|
||||
|
||||
// Fuse party members (taken from PlayerPokemon.fuse(...) function)
|
||||
fusionedMon.fusionSpecies = magikarp.species;
|
||||
|
Loading…
Reference in New Issue
Block a user