Fixed getSecondaryChanceMultiplier to just look at sheer force.

This commit is contained in:
frutescens 2024-11-17 16:43:13 -08:00
parent a7aad1e479
commit f3c742291d

View File

@ -732,11 +732,10 @@ export abstract class PokemonHeldItemModifier extends PersistentModifier {
if (!pokemon.getLastXMoves()[0]) {
return 1;
}
const sheerForceAffected = allMoves[pokemon.getLastXMoves()[0].move].chance >= 0 && pokemon.hasAbility(Abilities.SHEER_FORCE);
const sheerForceAffected = pokemon.hasAbility(Abilities.SHEER_FORCE, true);
if (sheerForceAffected) {
return 0;
} else if (pokemon.hasAbility(Abilities.SERENE_GRACE)) {
} else if (pokemon.hasAbility(Abilities.SERENE_GRACE, true)) {
return 2;
}
return 1;