mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 07:52:17 +02:00
Fixed Gimmighoul fr
This commit is contained in:
parent
03ea1e131a
commit
26f8e7b35f
@ -2064,7 +2064,7 @@ export class MoneyRewardModifier extends ConsumableModifier {
|
||||
scene.addMoney(moneyAmount.value);
|
||||
|
||||
scene.getParty().map(p => {
|
||||
if (p.species.speciesId === Species.GIMMIGHOUL || p.fusionSpecies.speciesId === Species.GIMMIGHOUL) {
|
||||
if (p.species?.speciesId === Species.GIMMIGHOUL || p.fusionSpecies?.speciesId === Species.GIMMIGHOUL) {
|
||||
p.evoCounter++;
|
||||
}
|
||||
});
|
||||
|
@ -92,6 +92,8 @@ export default class PokemonData {
|
||||
}
|
||||
this.pokerus = !!source.pokerus;
|
||||
|
||||
this.evoCounter = source.evoCounter || 0;
|
||||
|
||||
this.fusionSpecies = sourcePokemon ? sourcePokemon.fusionSpecies?.speciesId : source.fusionSpecies;
|
||||
this.fusionFormIndex = source.fusionFormIndex;
|
||||
this.fusionAbilityIndex = source.fusionAbilityIndex;
|
||||
|
Loading…
Reference in New Issue
Block a user