mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-18 05:19:29 +02:00
Merge branch 'flip_stats_challange' of github.com:Scoooom/pokerogue into flip_stats_challange
This commit is contained in:
commit
6049cbd412
@ -1044,15 +1044,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
|
|
||||||
calculateBaseStats(): number[] {
|
calculateBaseStats(): number[] {
|
||||||
const baseStats = this.getSpeciesForm(true).baseStats.slice(0);
|
const baseStats = this.getSpeciesForm(true).baseStats.slice(0);
|
||||||
const origStats = this.getSpeciesForm(true).baseStats.slice(0);
|
applyChallenges(this.scene.gameMode, ChallengeType.FLIP_STAT, this, baseStats);
|
||||||
if (this.scene.gameMode.isFlipStatChallenge()) {
|
|
||||||
baseStats[0] = origStats[5];
|
|
||||||
baseStats[1] = origStats[4];
|
|
||||||
baseStats[2] = origStats[3];
|
|
||||||
baseStats[3] = origStats[2];
|
|
||||||
baseStats[4] = origStats[1];
|
|
||||||
baseStats[5] = origStats[0];
|
|
||||||
}
|
|
||||||
// Shuckle Juice
|
// Shuckle Juice
|
||||||
this.scene.applyModifiers(PokemonBaseStatTotalModifier, this.isPlayer(), this, baseStats);
|
this.scene.applyModifiers(PokemonBaseStatTotalModifier, this.isPlayer(), this, baseStats);
|
||||||
// Old Gateau
|
// Old Gateau
|
||||||
|
Loading…
Reference in New Issue
Block a user