mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-19 06:42:20 +02:00
remove some newlines
This commit is contained in:
parent
a547e4a9db
commit
ceeac3ee5d
@ -2239,11 +2239,9 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
if (this instanceof PlayerPokemon && source.summonData.battleStats.find(bs => bs === 6)) {
|
if (this instanceof PlayerPokemon && source.summonData.battleStats.find(bs => bs === 6)) {
|
||||||
this.scene.validateAchv(achvs.TRANSFER_MAX_BATTLE_STAT);
|
this.scene.validateAchv(achvs.TRANSFER_MAX_BATTLE_STAT);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.getTag(BattlerTagType.POWER_TRICK)) {
|
if (this.getTag(BattlerTagType.POWER_TRICK)) {
|
||||||
[this.stats[Stat.ATK], this.stats[Stat.DEF]] = [this.stats[Stat.DEF], this.stats[Stat.ATK]];
|
[this.stats[Stat.ATK], this.stats[Stat.DEF]] = [this.stats[Stat.DEF], this.stats[Stat.ATK]];
|
||||||
}
|
}
|
||||||
|
|
||||||
this.updateInfo();
|
this.updateInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2289,11 +2287,9 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
this.loadAssets().then(() => {
|
this.loadAssets().then(() => {
|
||||||
this.calculateStats();
|
this.calculateStats();
|
||||||
this.scene.updateModifiers(this.isPlayer(), true);
|
this.scene.updateModifiers(this.isPlayer(), true);
|
||||||
|
|
||||||
if (this.getTag(BattlerTagType.POWER_TRICK)) {
|
if (this.getTag(BattlerTagType.POWER_TRICK)) {
|
||||||
[this.stats[Stat.ATK], this.stats[Stat.DEF]] = [this.stats[Stat.DEF], this.stats[Stat.ATK]];
|
[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());
|
Promise.all([ this.updateInfo(), this.scene.updateFieldScale() ]).then(() => resolve());
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -3306,11 +3302,9 @@ export class PlayerPokemon extends Pokemon {
|
|||||||
this.loadAssets().then(() => {
|
this.loadAssets().then(() => {
|
||||||
this.calculateStats();
|
this.calculateStats();
|
||||||
this.scene.updateModifiers(true, true);
|
this.scene.updateModifiers(true, true);
|
||||||
|
|
||||||
if (this.getTag(BattlerTagType.POWER_TRICK)) {
|
if (this.getTag(BattlerTagType.POWER_TRICK)) {
|
||||||
[this.stats[Stat.ATK], this.stats[Stat.DEF]] = [this.stats[Stat.DEF], this.stats[Stat.ATK]];
|
[this.stats[Stat.ATK], this.stats[Stat.DEF]] = [this.stats[Stat.DEF], this.stats[Stat.ATK]];
|
||||||
}
|
}
|
||||||
|
|
||||||
this.updateInfo(true).then(() => resolve());
|
this.updateInfo(true).then(() => resolve());
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -4576,7 +4576,6 @@ export class LevelUpPhase extends PlayerPartyMemberPokemonPhase {
|
|||||||
this.scene.unshiftPhase(new EvolutionPhase(this.scene, pokemon as PlayerPokemon, evolution, this.lastLevel));
|
this.scene.unshiftPhase(new EvolutionPhase(this.scene, pokemon as PlayerPokemon, evolution, this.lastLevel));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pokemon.getTag(BattlerTagType.POWER_TRICK)) {
|
if (pokemon.getTag(BattlerTagType.POWER_TRICK)) {
|
||||||
[pokemon.stats[Stat.ATK], pokemon.stats[Stat.DEF]] = [pokemon.stats[Stat.DEF], pokemon.stats[Stat.ATK]];
|
[pokemon.stats[Stat.ATK], pokemon.stats[Stat.DEF]] = [pokemon.stats[Stat.DEF], pokemon.stats[Stat.ATK]];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user