Add snow as a weather

This commit is contained in:
prateau authored and Samuel H committed 2024-04-15 17:45:52 -04:00
1 parent 7275876120
commit 0196cf8310
3 files changed
+16 -4

No files matched your search

+2
View File
@@ -523,6 +523,8 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
ret >>= 1;
break;
case Stat.DEF:
if (this.isOfType(Type.ICE) && this.scene.arena.weather?.weatherType === WeatherType.SNOW)
ret *= 1.5;
break;
case Stat.SPATK:
break;