Fix variable move accuracy not working with guaranteed hits
This commit is contained in:
1 parent
7cd45b30eb
commit
2ec0c32487
1 file changed
+2
-2
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user