From 297b5de145c1cd23e15f1536ec495bcf701357fc Mon Sep 17 00:00:00 2001 From: William Burleson <72857839+Admiral-Billy@users.noreply.github.com> Date: Fri, 12 Apr 2024 07:11:52 -0400 Subject: [PATCH] Fix formatting --- src/data/ability.ts | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/data/ability.ts b/src/data/ability.ts index ddde4c9ff75..ddf92724070 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -947,22 +947,22 @@ export class DownloadAbAttr extends PostSummonAbAttr { private stats: BattleStat[]; applyPostSummon(pokemon: Pokemon, passive: boolean, args: any[]): boolean { - this.enemyDef = 0; - this.enemySpDef = 0; + this.enemyDef = 0; + this.enemySpDef = 0; - for (let opponent of pokemon.getOpponents()) { - this.enemyDef += opponent.stats[BattleStat.DEF]; - this.enemySpDef += opponent.stats[BattleStat.SPDEF]; + for (let opponent of pokemon.getOpponents()) { + this.enemyDef += opponent.stats[BattleStat.DEF]; + this.enemySpDef += opponent.stats[BattleStat.SPDEF]; } - if (this.enemyDef < this.enemySpDef) - this.stats = [BattleStat.ATK]; - else - this.stats = [BattleStat.SPATK]; + if (this.enemyDef < this.enemySpDef) + this.stats = [BattleStat.ATK]; + else + this.stats = [BattleStat.SPATK]; - if (this.enemyDef > 0 && this.enemySpDef > 0) { // only activate if there's actually an enemy to download from - pokemon.scene.unshiftPhase(new StatChangePhase(pokemon.scene, pokemon.getBattlerIndex(), false, this.stats, 1)); - return true; + if (this.enemyDef > 0 && this.enemySpDef > 0) { // only activate if there's actually an enemy to download from + pokemon.scene.unshiftPhase(new StatChangePhase(pokemon.scene, pokemon.getBattlerIndex(), false, this.stats, 1)); + return true; } return false;