From 7529ac938e8a93a79f5ed4b034d0ae00d7c0cdf0 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Wed, 12 Apr 2023 11:37:54 -0400 Subject: [PATCH] Slightly modify ether and elixir condition --- src/modifier.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modifier.ts b/src/modifier.ts index bf251880f..cfa339d26 100644 --- a/src/modifier.ts +++ b/src/modifier.ts @@ -763,7 +763,7 @@ const modifierPool = { return Math.ceil(thresholdPartyMemberCount / 3); }), new WeightedModifierType(new PokemonPpRestoreModifierType('ETHER', 10), (party: PlayerPokemon[]) => { - const thresholdPartyMemberCount = party.filter(p => p.moveset.filter(m => m.ppUsed)).length; + const thresholdPartyMemberCount = party.filter(p => p.moveset.filter(m => m.ppUsed >= 5)).length; return thresholdPartyMemberCount; }), new WeightedModifierType(new PokemonPpRestoreModifierType('MAX ETHER', -1), (party: PlayerPokemon[]) => { @@ -790,7 +790,7 @@ const modifierPool = { return Math.ceil(thresholdPartyMemberCount / 3); }), new WeightedModifierType(new PokemonAllMovePpRestoreModifierType('ELIXIR', 10), (party: PlayerPokemon[]) => { - const thresholdPartyMemberCount = party.filter(p => p.moveset.filter(m => m.ppUsed)).length; + const thresholdPartyMemberCount = party.filter(p => p.moveset.filter(m => m.ppUsed >= 5)).length; return thresholdPartyMemberCount; }), new WeightedModifierType(new PokemonAllMovePpRestoreModifierType('MAX ELIXIR', -1), (party: PlayerPokemon[]) => {