Make it so you can't freeze in sun

pull/218/head
Xavion3 2024-04-21 14:10:16 +10:00 committed by Samuel H
parent ee6c3e8fbc
commit c3eaa0506f
1 changed files with 1 additions and 1 deletions

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: