Fix counter

This commit is contained in:
AJ Fontaine 2024-09-27 10:36:51 -04:00
parent 4bc9545238
commit 17c57457d7

View File

@ -871,7 +871,7 @@ export class EvoTrackerModifier extends PokemonHeldItemModifier {
} }
getMaxHeldItemCount(pokemon: Pokemon): integer { getMaxHeldItemCount(pokemon: Pokemon): integer {
this.stackCount = pokemon.evoCounter ?? this.stackCount; this.stackCount = pokemon.evoCounter + pokemon.getHeldItems().filter(m => m instanceof DamageMoneyRewardModifier).length + pokemon.scene.findModifiers(m => m instanceof MoneyMultiplierModifier || m instanceof ExtraModifierModifier).length;
return 1000; return 1000;
} }
} }