From ceeac3ee5def02e8a34ccaef3d8a13e088ffdda2 Mon Sep 17 00:00:00 2001 From: cadi Date: Fri, 28 Jun 2024 23:54:49 +0900 Subject: [PATCH] remove some newlines --- src/field/pokemon.ts | 6 ------ src/phases.ts | 1 - 2 files changed, 7 deletions(-) diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index 7d52863f05f..1f5eb8add6f 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -2239,11 +2239,9 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { if (this instanceof PlayerPokemon && source.summonData.battleStats.find(bs => bs === 6)) { this.scene.validateAchv(achvs.TRANSFER_MAX_BATTLE_STAT); } - if (this.getTag(BattlerTagType.POWER_TRICK)) { [this.stats[Stat.ATK], this.stats[Stat.DEF]] = [this.stats[Stat.DEF], this.stats[Stat.ATK]]; } - this.updateInfo(); } @@ -2289,11 +2287,9 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { this.loadAssets().then(() => { this.calculateStats(); this.scene.updateModifiers(this.isPlayer(), true); - if (this.getTag(BattlerTagType.POWER_TRICK)) { [this.stats[Stat.ATK], this.stats[Stat.DEF]] = [this.stats[Stat.DEF], this.stats[Stat.ATK]]; } - Promise.all([ this.updateInfo(), this.scene.updateFieldScale() ]).then(() => resolve()); }); }); @@ -3306,11 +3302,9 @@ export class PlayerPokemon extends Pokemon { this.loadAssets().then(() => { this.calculateStats(); this.scene.updateModifiers(true, true); - if (this.getTag(BattlerTagType.POWER_TRICK)) { [this.stats[Stat.ATK], this.stats[Stat.DEF]] = [this.stats[Stat.DEF], this.stats[Stat.ATK]]; } - this.updateInfo(true).then(() => resolve()); }); }; diff --git a/src/phases.ts b/src/phases.ts index fa053054748..83d6f93ab73 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -4576,7 +4576,6 @@ export class LevelUpPhase extends PlayerPartyMemberPokemonPhase { this.scene.unshiftPhase(new EvolutionPhase(this.scene, pokemon as PlayerPokemon, evolution, this.lastLevel)); } } - if (pokemon.getTag(BattlerTagType.POWER_TRICK)) { [pokemon.stats[Stat.ATK], pokemon.stats[Stat.DEF]] = [pokemon.stats[Stat.DEF], pokemon.stats[Stat.ATK]]; }