mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-16 14:55:22 +01:00
Merge pull request #6733 from emdeann/disable-illusion
[Hotfix] Disable illusion
This commit is contained in:
commit
dd7461e0c1
@ -7461,17 +7461,18 @@ export function initAbilities() {
|
|||||||
1.3)
|
1.3)
|
||||||
.build(),
|
.build(),
|
||||||
new AbBuilder(AbilityId.ILLUSION, 5)
|
new AbBuilder(AbilityId.ILLUSION, 5)
|
||||||
// The Pokemon generate an illusion if it's available
|
// // The Pokemon generate an illusion if it's available
|
||||||
.attr(IllusionPreSummonAbAttr, false)
|
// .attr(IllusionPreSummonAbAttr, false)
|
||||||
.attr(IllusionBreakAbAttr)
|
// .attr(IllusionBreakAbAttr)
|
||||||
// The Pokemon loses its illusion when damaged by a move
|
// // The Pokemon loses its illusion when damaged by a move
|
||||||
.attr(PostDefendIllusionBreakAbAttr, true)
|
// .attr(PostDefendIllusionBreakAbAttr, true)
|
||||||
// Disable Illusion in fusions
|
// // Disable Illusion in fusions
|
||||||
.attr(NoFusionAbilityAbAttr)
|
// .attr(NoFusionAbilityAbAttr)
|
||||||
// Illusion is available again after a battle
|
// // Illusion is available again after a battle
|
||||||
.conditionalAttr((pokemon) => pokemon.isAllowedInBattle(), IllusionPostBattleAbAttr, false)
|
// .conditionalAttr((pokemon) => pokemon.isAllowedInBattle(), IllusionPostBattleAbAttr, false)
|
||||||
.uncopiable()
|
.uncopiable()
|
||||||
.bypassFaint()
|
// .bypassFaint()
|
||||||
|
.unimplemented() // TODO reimplement Illusion properly
|
||||||
.build(),
|
.build(),
|
||||||
new AbBuilder(AbilityId.IMPOSTER, 5)
|
new AbBuilder(AbilityId.IMPOSTER, 5)
|
||||||
.attr(PostSummonTransformAbAttr)
|
.attr(PostSummonTransformAbAttr)
|
||||||
|
|||||||
@ -506,7 +506,7 @@ export const starterPassiveAbilities: StarterPassiveAbilities = {
|
|||||||
[SpeciesId.SNOVER]: { 0: AbilityId.SLUSH_RUSH },
|
[SpeciesId.SNOVER]: { 0: AbilityId.SLUSH_RUSH },
|
||||||
[SpeciesId.ABOMASNOW]: { 0: AbilityId.SLUSH_RUSH, 1: AbilityId.SEED_SOWER },
|
[SpeciesId.ABOMASNOW]: { 0: AbilityId.SLUSH_RUSH, 1: AbilityId.SEED_SOWER },
|
||||||
[SpeciesId.ROTOM]: { 0: AbilityId.HADRON_ENGINE, 1: AbilityId.HADRON_ENGINE, 2: AbilityId.HADRON_ENGINE, 3: AbilityId.HADRON_ENGINE, 4: AbilityId.HADRON_ENGINE, 5: AbilityId.HADRON_ENGINE },
|
[SpeciesId.ROTOM]: { 0: AbilityId.HADRON_ENGINE, 1: AbilityId.HADRON_ENGINE, 2: AbilityId.HADRON_ENGINE, 3: AbilityId.HADRON_ENGINE, 4: AbilityId.HADRON_ENGINE, 5: AbilityId.HADRON_ENGINE },
|
||||||
[SpeciesId.UXIE]: { 0: AbilityId.ILLUSION },
|
[SpeciesId.UXIE]: { 0: AbilityId.MAGIC_BOUNCE },
|
||||||
[SpeciesId.MESPRIT]: { 0: AbilityId.MOODY },
|
[SpeciesId.MESPRIT]: { 0: AbilityId.MOODY },
|
||||||
[SpeciesId.AZELF]: { 0: AbilityId.NEUROFORCE },
|
[SpeciesId.AZELF]: { 0: AbilityId.NEUROFORCE },
|
||||||
[SpeciesId.DIALGA]: { 0: AbilityId.BERSERK, 1: AbilityId.BERSERK },
|
[SpeciesId.DIALGA]: { 0: AbilityId.BERSERK, 1: AbilityId.BERSERK },
|
||||||
|
|||||||
@ -143,7 +143,6 @@ import type { AbAttrMap, AbAttrString, TypeMultiplierAbAttrParams } from "#types
|
|||||||
import type { Constructor } from "#types/common";
|
import type { Constructor } from "#types/common";
|
||||||
import type { getAttackDamageParams, getBaseDamageParams } from "#types/damage-params";
|
import type { getAttackDamageParams, getBaseDamageParams } from "#types/damage-params";
|
||||||
import type { DamageCalculationResult, DamageResult } from "#types/damage-result";
|
import type { DamageCalculationResult, DamageResult } from "#types/damage-result";
|
||||||
import type { IllusionData } from "#types/illusion-data";
|
|
||||||
import type { LevelMoves } from "#types/pokemon-level-moves";
|
import type { LevelMoves } from "#types/pokemon-level-moves";
|
||||||
import type { StarterDataEntry, StarterMoveset } from "#types/save-data";
|
import type { StarterDataEntry, StarterMoveset } from "#types/save-data";
|
||||||
import type { TurnMove } from "#types/turn-move";
|
import type { TurnMove } from "#types/turn-move";
|
||||||
@ -5119,14 +5118,12 @@ export abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
* in preparation for switching pokemon, as well as removing any relevant on-switch tags.
|
* in preparation for switching pokemon, as well as removing any relevant on-switch tags.
|
||||||
*/
|
*/
|
||||||
public resetSummonData(): void {
|
public resetSummonData(): void {
|
||||||
const illusion: IllusionData | null = this.summonData.illusion;
|
|
||||||
if (this.summonData.speciesForm) {
|
if (this.summonData.speciesForm) {
|
||||||
this.summonData.speciesForm = null;
|
this.summonData.speciesForm = null;
|
||||||
this.updateFusionPalette();
|
this.updateFusionPalette();
|
||||||
}
|
}
|
||||||
this.summonData = new PokemonSummonData();
|
this.summonData = new PokemonSummonData();
|
||||||
this.tempSummonData = new PokemonTempSummonData();
|
this.tempSummonData = new PokemonTempSummonData();
|
||||||
this.summonData.illusion = illusion;
|
|
||||||
this.updateInfo();
|
this.updateInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -7,7 +7,7 @@ import { GameManager } from "#test/test-utils/game-manager";
|
|||||||
import Phaser from "phaser";
|
import Phaser from "phaser";
|
||||||
import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest";
|
import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest";
|
||||||
|
|
||||||
describe("Abilities - Illusion", () => {
|
describe.todo("Abilities - Illusion", () => {
|
||||||
let phaserGame: Phaser.Game;
|
let phaserGame: Phaser.Game;
|
||||||
let game: GameManager;
|
let game: GameManager;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user