mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-17 12:59:25 +02:00
Update src/field/pokemon.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
parent
c67c992a01
commit
6d36ccf235
@ -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