Make it so you can't freeze in sun

This commit is contained in:
Xavion3 2024-04-21 14:10:16 +10:00 committed by Samuel H
parent ee6c3e8fbc
commit c3eaa0506f

View File

@ -1828,7 +1828,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
return false;
break;
case StatusEffect.FREEZE:
if (this.isOfType(Type.ICE))
if (this.isOfType(Type.ICE) || [WeatherType.SUNNY, WeatherType.HARSH_SUN].includes(this.scene?.arena.weather?.weatherType))
return false;
break;
case StatusEffect.BURN: