mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 07:52:17 +02:00
Fix Nugget crash
This commit is contained in:
parent
b3a2584f44
commit
03ea1e131a
@ -2063,7 +2063,11 @@ export class MoneyRewardModifier extends ConsumableModifier {
|
||||
|
||||
scene.addMoney(moneyAmount.value);
|
||||
|
||||
scene.getParty().filter(p => p.species.speciesId === Species.GIMMIGHOUL || p.fusionSpecies.speciesId === Species.GIMMIGHOUL).map(p => p.evoCounter++);
|
||||
scene.getParty().map(p => {
|
||||
if (p.species.speciesId === Species.GIMMIGHOUL || p.fusionSpecies.speciesId === Species.GIMMIGHOUL) {
|
||||
p.evoCounter++;
|
||||
}
|
||||
});
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user