delete draft

This commit is contained in:
Lylian 2025-03-02 22:16:57 +01:00
parent 83f5968c27
commit bebf529e86
2 changed files with 4 additions and 9 deletions

View File

@ -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;

View File

@ -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();