mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-20 06:19:29 +02: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]) {
|
if (!pokemon.getLastXMoves()[0]) {
|
||||||
return 1;
|
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) {
|
if (sheerForceAffected) {
|
||||||
return 0;
|
return 0;
|
||||||
} else if (pokemon.hasAbility(Abilities.SERENE_GRACE)) {
|
} else if (pokemon.hasAbility(Abilities.SERENE_GRACE, true)) {
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user