mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-04-15 06:09:11 +01:00
Fix variable move accuracy not working with guaranteed hits
This commit is contained in:
parent
7cd45b30eb
commit
2ec0c32487
@ -1366,11 +1366,11 @@ class MoveEffectPhase extends PokemonPhase {
|
|||||||
|
|
||||||
const moveAccuracy = new Utils.NumberHolder(this.move.getMove().accuracy);
|
const moveAccuracy = new Utils.NumberHolder(this.move.getMove().accuracy);
|
||||||
|
|
||||||
|
applyMoveAttrs(VariableAccuracyAttr, this.getUserPokemon(), target, this.move.getMove(), moveAccuracy);
|
||||||
|
|
||||||
if (moveAccuracy.value === -1)
|
if (moveAccuracy.value === -1)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
applyMoveAttrs(VariableAccuracyAttr, this.getUserPokemon(), target, this.move.getMove(), moveAccuracy);
|
|
||||||
|
|
||||||
if (!this.move.getMove().getAttrs(OneHitKOAttr).length && this.scene.arena.getTag(ArenaTagType.GRAVITY))
|
if (!this.move.getMove().getAttrs(OneHitKOAttr).length && this.scene.arena.getTag(ArenaTagType.GRAVITY))
|
||||||
moveAccuracy.value = Math.floor(moveAccuracy.value * 1.67);
|
moveAccuracy.value = Math.floor(moveAccuracy.value * 1.67);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user