Roost test update

This commit is contained in:
PrabbyDD 2024-09-10 20:05:59 -07:00
parent 99b26722c1
commit f409c74a1e
2 changed files with 3 additions and 35 deletions

View File

@ -93,12 +93,12 @@ class DefaultOverrides {
* default is 0 to not override
* @example SPECIES_OVERRIDE = Species.Bulbasaur;
*/
readonly STARTER_SPECIES_OVERRIDE: Species | number = Species.TORNADUS;
readonly STARTER_SPECIES_OVERRIDE: Species | number = 0;
readonly ABILITY_OVERRIDE: Abilities = Abilities.NONE;
readonly PASSIVE_ABILITY_OVERRIDE: Abilities = Abilities.NONE;
readonly STATUS_OVERRIDE: StatusEffect = StatusEffect.NONE;
readonly GENDER_OVERRIDE: Gender | null = null;
readonly MOVESET_OVERRIDE: Array<Moves> = [Moves.ROOST, Moves.SPLASH];
readonly MOVESET_OVERRIDE: Array<Moves> = [];
readonly SHINY_OVERRIDE: boolean = false;
readonly VARIANT_OVERRIDE: Variant = 0;
@ -111,7 +111,7 @@ class DefaultOverrides {
readonly OPP_PASSIVE_ABILITY_OVERRIDE: Abilities = Abilities.NONE;
readonly OPP_STATUS_OVERRIDE: StatusEffect = StatusEffect.NONE;
readonly OPP_GENDER_OVERRIDE: Gender | null = null;
readonly OPP_MOVESET_OVERRIDE: Array<Moves> = [Moves.FORESTS_CURSE, Moves.FORESTS_CURSE, Moves.FORESTS_CURSE, Moves.FORESTS_CURSE];
readonly OPP_MOVESET_OVERRIDE: Array<Moves> = [];
readonly OPP_SHINY_OVERRIDE: boolean = false;
readonly OPP_VARIANT_OVERRIDE: Variant = 0;
readonly OPP_IVS_OVERRIDE: number | number[] = [];

View File

@ -4,7 +4,6 @@ import { Moves } from "#app/enums/moves";
import { Species } from "#app/enums/species";
import { MoveEffectPhase } from "#app/phases/move-effect-phase";
import { TurnEndPhase } from "#app/phases/turn-end-phase";
import GameManager from "#test/utils/gameManager";
import Phaser from "phaser";
import { afterEach, beforeAll, beforeEach, describe, expect, test } from "vitest";
@ -51,37 +50,6 @@ describe("Moves - Roost", () => {
*
* Also making the user pokemon go first so we can check if the pokemon took damage post roost
*/
// test(
// "Pokemon that use roost and levitate should still be ungrounded, but should still lose flying until end of turn",
// async () => {
// await game.classicMode.startBattle([Species.ROTOM]);
// const playerPokemon = game.scene.getPlayerPokemon()!;
// //expect(playerPokemon.getTypes().filter(type => type == Type.FLYING)).toHaveLength(1);
// game.move.select(Moves.ROOST);
// const playerPokemonStartingHP = playerPokemon.hp;
// await game.phaseInterceptor.to(MoveEffectPhase);
// // Should only be pure Electric type and ungrounded due to levitate
// let playerPokemonTypes = playerPokemon.summonData.types;
// expect(playerPokemonTypes.filter(type => type == Type.FLYING)).toHaveLength(0);
// expect(playerPokemon.getTypes().filter(type => type == Type.ELECTRIC)).toHaveLength(1);
// //expect(playerPokemon.getTag(BattlerTagType.ROOSTED)).toBeDefined();
// expect(playerPokemonTypes[0] === Type.ELECTRIC).toBeTruthy();
// expect(playerPokemonTypes.length === 1).toBeTruthy();
// expect(playerPokemon.isGrounded()).toBeFalsy();
// // Should be electric flying, not roosted, and not grounded
// await game.phaseInterceptor.to(TurnEndPhase);
// playerPokemonTypes = playerPokemon.summonData.types;
// expect(playerPokemon.hp).toBe(playerPokemonStartingHP);
// expect(playerPokemonTypes[0] === Type.ELECTRIC).toBeTruthy();
// expect(playerPokemonTypes[1] === Type.FLYING).toBeTruthy();
// expect(playerPokemon.getTag(BattlerTagType.ROOSTED)).toBeUndefined();
// expect(playerPokemon.isGrounded()).toBeFalsy();
// } ,TIMEOUT
// );
test(
"Non flying type uses roost -> no type change, took damage",