mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-20 23:32:19 +02:00
Fix merge issue
This commit is contained in:
parent
fd0b96c0ed
commit
5a655d9d25
@ -474,7 +474,7 @@ export class SingleGenerationChallenge extends Challenge {
|
|||||||
|
|
||||||
applyPokemonInBattle(pokemon: Pokemon, valid: Utils.BooleanHolder): boolean {
|
applyPokemonInBattle(pokemon: Pokemon, valid: Utils.BooleanHolder): boolean {
|
||||||
const baseGeneration = getPokemonSpecies(pokemon.species.speciesId).generation;
|
const baseGeneration = getPokemonSpecies(pokemon.species.speciesId).generation;
|
||||||
const fusionGeneration = pokemon.isFusion() ? getPokemonSpecies(pokemon.fusionSpecies?.speciesId).generation : 0;
|
const fusionGeneration = pokemon.isFusion() ? getPokemonSpecies(pokemon.fusionSpecies!.speciesId).generation : 0;
|
||||||
if (
|
if (
|
||||||
pokemon.isPlayer() &&
|
pokemon.isPlayer() &&
|
||||||
(baseGeneration !== this.value || (pokemon.isFusion() && fusionGeneration !== this.value))
|
(baseGeneration !== this.value || (pokemon.isFusion() && fusionGeneration !== this.value))
|
||||||
|
@ -34,7 +34,7 @@ export default class PokemonData {
|
|||||||
public stats: number[];
|
public stats: number[];
|
||||||
public ivs: number[];
|
public ivs: number[];
|
||||||
public nature: Nature;
|
public nature: Nature;
|
||||||
public moveset: (PokemonMove)[];
|
public moveset: PokemonMove[];
|
||||||
public status: Status | null;
|
public status: Status | null;
|
||||||
public friendship: number;
|
public friendship: number;
|
||||||
public metLevel: number;
|
public metLevel: number;
|
||||||
|
@ -96,8 +96,7 @@ describe("Abilities - Lightningrod", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("should redirect moves changed to electric type via ability", async () => {
|
it("should redirect moves changed to electric type via ability", async () => {
|
||||||
game.override.ability(Abilities.GALVANIZE)
|
game.override.ability(Abilities.GALVANIZE).moveset(Moves.TACKLE);
|
||||||
.moveset(Moves.TACKLE);
|
|
||||||
await game.classicMode.startBattle([Species.FEEBAS, Species.MAGIKARP]);
|
await game.classicMode.startBattle([Species.FEEBAS, Species.MAGIKARP]);
|
||||||
|
|
||||||
const enemy1 = game.scene.getEnemyField()[0];
|
const enemy1 = game.scene.getEnemyField()[0];
|
||||||
|
@ -158,10 +158,7 @@ describe("Abilities - Neutralizing Gas", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("should not activate abilities of pokemon no longer on the field", async () => {
|
it("should not activate abilities of pokemon no longer on the field", async () => {
|
||||||
game.override
|
game.override.battleType("single").ability(Abilities.NEUTRALIZING_GAS).enemyAbility(Abilities.DELTA_STREAM);
|
||||||
.battleType("single")
|
|
||||||
.ability(Abilities.NEUTRALIZING_GAS)
|
|
||||||
.enemyAbility(Abilities.DELTA_STREAM);
|
|
||||||
await game.classicMode.startBattle([Species.MAGIKARP]);
|
await game.classicMode.startBattle([Species.MAGIKARP]);
|
||||||
|
|
||||||
const enemy = game.scene.getEnemyPokemon()!;
|
const enemy = game.scene.getEnemyPokemon()!;
|
||||||
|
@ -96,8 +96,7 @@ describe("Abilities - Storm Drain", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("should redirect moves changed to water type via ability", async () => {
|
it("should redirect moves changed to water type via ability", async () => {
|
||||||
game.override.ability(Abilities.LIQUID_VOICE)
|
game.override.ability(Abilities.LIQUID_VOICE).moveset(Moves.PSYCHIC_NOISE);
|
||||||
.moveset(Moves.PSYCHIC_NOISE);
|
|
||||||
await game.classicMode.startBattle([Species.FEEBAS, Species.MAGIKARP]);
|
await game.classicMode.startBattle([Species.FEEBAS, Species.MAGIKARP]);
|
||||||
|
|
||||||
const enemy1 = game.scene.getEnemyField()[0];
|
const enemy1 = game.scene.getEnemyField()[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user