Fix evolution item types switched

pull/20/head
Flashfyre 2024-03-29 19:14:34 -04:00
parent 001ad1f55e
commit b67a3ced85
1 changed files with 1 additions and 1 deletions

View File

@ -609,7 +609,7 @@ class EvolutionItemModifierTypeGenerator extends ModifierTypeGenerator {
const evolutionItemPool = party.filter(p => pokemonEvolutions.hasOwnProperty(p.species.speciesId)).map(p => { const evolutionItemPool = party.filter(p => pokemonEvolutions.hasOwnProperty(p.species.speciesId)).map(p => {
const evolutions = pokemonEvolutions[p.species.speciesId]; const evolutions = pokemonEvolutions[p.species.speciesId];
return evolutions.filter(e => e.item !== EvolutionItem.NONE && (e.evoFormKey === null || (e.preFormKey || '') === p.getFormKey()) && (!e.condition || e.condition.predicate(p))); return evolutions.filter(e => e.item !== EvolutionItem.NONE && (e.evoFormKey === null || (e.preFormKey || '') === p.getFormKey()) && (!e.condition || e.condition.predicate(p)));
}).flat().flatMap(e => e.item).filter(i => (i <= 50) === rare); }).flat().flatMap(e => e.item).filter(i => (i > 50) === rare);
if (!evolutionItemPool.length) if (!evolutionItemPool.length)
return null; return null;