mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-15 03:49:33 +02:00
Move updateInfo call
This commit is contained in:
parent
b905dff7d9
commit
1ab9b72898
@ -734,7 +734,6 @@ export class FreshStartChallenge extends Challenge {
|
||||
}
|
||||
pokemon.ivs = [15, 15, 15, 15, 15, 15]; // Default IVs of 15 for all stats (Updated to 15 from 10 in 1.2.0)
|
||||
pokemon.teraType = pokemon.species.type1; // Always primary tera type
|
||||
pokemon.updateInfo();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -99,8 +99,12 @@ export class SelectStarterPhase extends Phase {
|
||||
starterPokemon.generateFusionSpecies(true);
|
||||
}
|
||||
starterPokemon.setVisible(false);
|
||||
applyChallenges(ChallengeType.STARTER_MODIFY, starterPokemon);
|
||||
const chalApplied = applyChallenges(ChallengeType.STARTER_MODIFY, starterPokemon);
|
||||
party.push(starterPokemon);
|
||||
if (chalApplied) {
|
||||
// If any challenges modified the starter, it should update
|
||||
loadPokemonAssets.push(starterPokemon.updateInfo());
|
||||
}
|
||||
loadPokemonAssets.push(starterPokemon.loadAssets());
|
||||
});
|
||||
overrideModifiers();
|
||||
|
Loading…
Reference in New Issue
Block a user