remove some newlines

This commit is contained in:
cadi 2024-06-28 23:54:49 +09:00
parent a547e4a9db
commit ceeac3ee5d
2 changed files with 0 additions and 7 deletions

View File

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

View File

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