mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-18 14:22:19 +02:00
delete draft
This commit is contained in:
parent
83f5968c27
commit
bebf529e86
@ -4778,7 +4778,6 @@ export class IllusionPostBattleAbAttr extends PostBattleAbAttr {
|
||||
* @returns {boolean} - Whether the illusion was applied.
|
||||
*/
|
||||
applyPostBattle(pokemon: Pokemon, passive: boolean, simulated:boolean, args: any[]): boolean {
|
||||
console.log("POSTBATTLE");
|
||||
pokemon.breakIllusion();
|
||||
pokemon.battleData.illusion.available = true;
|
||||
return true;
|
||||
|
@ -455,8 +455,6 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
fusionGender: lastPokemon.fusionGender
|
||||
};
|
||||
|
||||
console.log("GENERATE ILLUSION ", this.battleData.illusion.basePokemon!.name);
|
||||
|
||||
this.name = lastPokemon.name;
|
||||
this.nickname = lastPokemon.nickname;
|
||||
this.shiny = lastPokemon.shiny;
|
||||
@ -491,7 +489,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
return true;
|
||||
}
|
||||
|
||||
breakIllusion(toSave: boolean = false): boolean {
|
||||
breakIllusion(): boolean {
|
||||
console.log("breakIllusion");
|
||||
if (!this.battleData?.illusion.active) {
|
||||
return false;
|
||||
@ -509,10 +507,9 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
if (this.shiny) {
|
||||
this.initShinySparkle();
|
||||
}
|
||||
if (!toSave) {
|
||||
|
||||
this.loadAssets(false).then(() => this.playAnim());
|
||||
this.updateInfo(true);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -3966,7 +3963,6 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
}
|
||||
|
||||
resetBattleData(): void {
|
||||
console.log("RESETBATTLEDATA : ", this.getNameToRender(false));
|
||||
const illusionActive: boolean = this.battleData?.illusion.active;
|
||||
this.breakIllusion();
|
||||
this.battleData = new PokemonBattleData();
|
||||
|
Loading…
Reference in New Issue
Block a user