SpDef boost in sandstorm only applies to rock types

This commit is contained in:
Flashfyre 2024-04-11 14:52:32 -04:00
parent 2c38849aa1
commit 3d959e3860
1 changed files with 1 additions and 1 deletions

View File

@ -523,7 +523,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
case Stat.SPATK:
break;
case Stat.SPDEF:
if (this.scene.arena.weather?.weatherType === WeatherType.SANDSTORM)
if (this.isOfType(Type.ROCK) && this.scene.arena.weather?.weatherType === WeatherType.SANDSTORM)
ret *= 1.5;
break;
case Stat.SPD: