Rebalance base stat boosters and make max stack count rely on IVs

This commit is contained in:
Flashfyre committed 2023-12-09 00:33:29 -05:00
1 parent d4b620b155
commit e2a6a93209
7 files changed
+104 -59

No files matched your search

+1 -1
View File
@@ -96,7 +96,7 @@ export default class PartyUiHandler extends MessageUiHandler {
public static FilterItemMaxStacks = (pokemon: PlayerPokemon, modifier: PokemonHeldItemModifier) => {
const matchingModifier = pokemon.scene.findModifier(m => m instanceof PokemonHeldItemModifier && (m as PokemonHeldItemModifier).matchType(modifier)) as PokemonHeldItemModifier;
if (matchingModifier && matchingModifier.stackCount === matchingModifier.getMaxStackCount())
if (matchingModifier && matchingModifier.stackCount === matchingModifier.getMaxStackCount(pokemon.scene))
return `${pokemon.name} has too many\nof this item!`;
return null;
};