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.
|
* @returns {boolean} - Whether the illusion was applied.
|
||||||
*/
|
*/
|
||||||
applyPostBattle(pokemon: Pokemon, passive: boolean, simulated:boolean, args: any[]): boolean {
|
applyPostBattle(pokemon: Pokemon, passive: boolean, simulated:boolean, args: any[]): boolean {
|
||||||
console.log("POSTBATTLE");
|
|
||||||
pokemon.breakIllusion();
|
pokemon.breakIllusion();
|
||||||
pokemon.battleData.illusion.available = true;
|
pokemon.battleData.illusion.available = true;
|
||||||
return true;
|
return true;
|
||||||
|
@ -455,8 +455,6 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
fusionGender: lastPokemon.fusionGender
|
fusionGender: lastPokemon.fusionGender
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log("GENERATE ILLUSION ", this.battleData.illusion.basePokemon!.name);
|
|
||||||
|
|
||||||
this.name = lastPokemon.name;
|
this.name = lastPokemon.name;
|
||||||
this.nickname = lastPokemon.nickname;
|
this.nickname = lastPokemon.nickname;
|
||||||
this.shiny = lastPokemon.shiny;
|
this.shiny = lastPokemon.shiny;
|
||||||
@ -491,7 +489,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
breakIllusion(toSave: boolean = false): boolean {
|
breakIllusion(): boolean {
|
||||||
console.log("breakIllusion");
|
console.log("breakIllusion");
|
||||||
if (!this.battleData?.illusion.active) {
|
if (!this.battleData?.illusion.active) {
|
||||||
return false;
|
return false;
|
||||||
@ -509,10 +507,9 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
if (this.shiny) {
|
if (this.shiny) {
|
||||||
this.initShinySparkle();
|
this.initShinySparkle();
|
||||||
}
|
}
|
||||||
if (!toSave) {
|
|
||||||
this.loadAssets(false).then(() => this.playAnim());
|
this.loadAssets(false).then(() => this.playAnim());
|
||||||
this.updateInfo(true);
|
this.updateInfo(true);
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3966,7 +3963,6 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resetBattleData(): void {
|
resetBattleData(): void {
|
||||||
console.log("RESETBATTLEDATA : ", this.getNameToRender(false));
|
|
||||||
const illusionActive: boolean = this.battleData?.illusion.active;
|
const illusionActive: boolean = this.battleData?.illusion.active;
|
||||||
this.breakIllusion();
|
this.breakIllusion();
|
||||||
this.battleData = new PokemonBattleData();
|
this.battleData = new PokemonBattleData();
|
||||||
|
Loading…
Reference in New Issue
Block a user