mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-01-18 23:11:11 +00:00
commit
c2f69f1fb2
@ -2477,11 +2477,12 @@ export class MoveEffectPhase extends PokemonPhase {
|
|||||||
const moveAccuracy = new Utils.NumberHolder(this.move.getMove().accuracy);
|
const moveAccuracy = new Utils.NumberHolder(this.move.getMove().accuracy);
|
||||||
|
|
||||||
applyMoveAttrs(VariableAccuracyAttr, user, target, this.move.getMove(), moveAccuracy);
|
applyMoveAttrs(VariableAccuracyAttr, user, target, this.move.getMove(), moveAccuracy);
|
||||||
user.scene.applyModifiers(PokemonMoveAccuracyBoosterModifier, user.isPlayer(), user, moveAccuracy);
|
|
||||||
|
|
||||||
if (moveAccuracy.value === -1)
|
if (moveAccuracy.value === -1)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
user.scene.applyModifiers(PokemonMoveAccuracyBoosterModifier, user.isPlayer(), user, moveAccuracy);
|
||||||
|
|
||||||
if (this.scene.arena.weather?.weatherType === WeatherType.FOG)
|
if (this.scene.arena.weather?.weatherType === WeatherType.FOG)
|
||||||
moveAccuracy.value = Math.floor(moveAccuracy.value * 0.9);
|
moveAccuracy.value = Math.floor(moveAccuracy.value * 0.9);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user