mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-16 21:32:18 +02:00
use calculation logic
This commit is contained in:
parent
165a49cebc
commit
7bf0e188d4
@ -4201,7 +4201,7 @@ export class PowerTrickAttr extends AddBattlerTagAttr {
|
||||
super.apply(user, target, move, args);
|
||||
}
|
||||
|
||||
[user.stats[Stat.ATK], user.stats[Stat.DEF]] = [user.stats[Stat.DEF], user.stats[Stat.ATK]];
|
||||
user.calculateStats();
|
||||
|
||||
user.scene.queueMessage(i18next.t("battle:battlerTagsPowerTrickApply", { pokemonNameWithAffix: getPokemonNameWithAffix(user) }));
|
||||
|
||||
|
@ -2242,9 +2242,7 @@ 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.calculateStats();
|
||||
this.updateInfo();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user