mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-02-24 04:57:34 +00:00
bugfix
This commit is contained in:
parent
05ad97f64f
commit
b5d8034e97
@ -451,6 +451,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
active: true,
|
active: true,
|
||||||
available: true,
|
available: true,
|
||||||
species: randomIllusion,
|
species: randomIllusion,
|
||||||
|
formIndex: randomIllusion.formIndex,
|
||||||
name: this.name,
|
name: this.name,
|
||||||
shiny: this.shiny,
|
shiny: this.shiny,
|
||||||
variant: this.variant,
|
variant: this.variant,
|
||||||
@ -686,6 +687,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
*/
|
*/
|
||||||
getSpeciesForm(ignoreOverride?: boolean, useIllusion: boolean = false): PokemonSpeciesForm {
|
getSpeciesForm(ignoreOverride?: boolean, useIllusion: boolean = false): PokemonSpeciesForm {
|
||||||
const species: PokemonSpecies = useIllusion && this.battleData.illusion.active ? this.battleData.illusion.species! : this.species;
|
const species: PokemonSpecies = useIllusion && this.battleData.illusion.active ? this.battleData.illusion.species! : this.species;
|
||||||
|
|
||||||
const formIndex: integer = useIllusion && this.battleData.illusion.active ? this.battleData.illusion.formIndex! : this.formIndex;
|
const formIndex: integer = useIllusion && this.battleData.illusion.active ? this.battleData.illusion.formIndex! : this.formIndex;
|
||||||
|
|
||||||
if (!ignoreOverride && this.summonData?.speciesForm) {
|
if (!ignoreOverride && this.summonData?.speciesForm) {
|
||||||
@ -1194,7 +1196,6 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
* @param {boolean} useIllusion - Whether we want the gender of the illusion or not.
|
* @param {boolean} useIllusion - Whether we want the gender of the illusion or not.
|
||||||
*/
|
*/
|
||||||
getGender(ignoreOverride?: boolean, useIllusion: boolean = false): Gender {
|
getGender(ignoreOverride?: boolean, useIllusion: boolean = false): Gender {
|
||||||
console.log("ALLLO", this.battleData.illusion.active);
|
|
||||||
if (useIllusion && this.battleData.illusion.active) {
|
if (useIllusion && this.battleData.illusion.active) {
|
||||||
return this.battleData.illusion.gender!;
|
return this.battleData.illusion.gender!;
|
||||||
} else if (!ignoreOverride && this.summonData?.gender !== undefined) {
|
} else if (!ignoreOverride && this.summonData?.gender !== undefined) {
|
||||||
|
@ -106,7 +106,7 @@ class DefaultOverrides {
|
|||||||
// --------------------------
|
// --------------------------
|
||||||
// OPPONENT / ENEMY OVERRIDES
|
// OPPONENT / ENEMY OVERRIDES
|
||||||
// --------------------------
|
// --------------------------
|
||||||
readonly OPP_SPECIES_OVERRIDE: Species | number = 0;
|
readonly OPP_SPECIES_OVERRIDE: Species | number = Species.ZOROARK;
|
||||||
readonly OPP_LEVEL_OVERRIDE: number = 0;
|
readonly OPP_LEVEL_OVERRIDE: number = 0;
|
||||||
readonly OPP_ABILITY_OVERRIDE: Abilities = Abilities.NONE;
|
readonly OPP_ABILITY_OVERRIDE: Abilities = Abilities.NONE;
|
||||||
readonly OPP_PASSIVE_ABILITY_OVERRIDE: Abilities = Abilities.NONE;
|
readonly OPP_PASSIVE_ABILITY_OVERRIDE: Abilities = Abilities.NONE;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import BattleScene from "#app/battle-scene";
|
import BattleScene from "#app/battle-scene";
|
||||||
import { applyPreSummonAbAttrs, applyPreSwitchOutAbAttrs, PreSummonAbAttr, PreSwitchOutAbAttr } from "#app/data/ability.js";
|
import { applyPreSummonAbAttrs, applyPreSwitchOutAbAttrs, PreSummonAbAttr, PreSwitchOutAbAttr } from "#app/data/ability";
|
||||||
import { allMoves, ForceSwitchOutAttr } from "#app/data/move";
|
import { allMoves, ForceSwitchOutAttr } from "#app/data/move";
|
||||||
import { getPokeballTintColor } from "#app/data/pokeball";
|
import { getPokeballTintColor } from "#app/data/pokeball";
|
||||||
import { SpeciesFormChangeActiveTrigger } from "#app/data/pokemon-forms";
|
import { SpeciesFormChangeActiveTrigger } from "#app/data/pokemon-forms";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user