Fix crash when Sacred Ash from shop is used

pull/16/head
Flashfyre 2024-02-14 19:20:12 -05:00
parent bb7edd9ced
commit f2e5a2eb34
1 changed files with 1 additions and 1 deletions

View File

@ -3622,7 +3622,7 @@ export class SelectModifierPhase extends BattlePhase {
}, pokemonModifierType.selectFilter, modifierType instanceof PokemonMoveModifierType ? (modifierType as PokemonMoveModifierType).moveSelectFilter : undefined, tmMoveId);
}
} else
applyModifier(typeOptions[cursor].type.newModifier());
applyModifier(modifierType.newModifier());
return !cost;
};