mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-02-16 17:27:41 +00:00
Fixed getSecondaryChanceMultiplier to just look at sheer force.
This commit is contained in:
parent
a7aad1e479
commit
f3c742291d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user