Make it so you can't freeze in sun
parent
ee6c3e8fbc
commit
c3eaa0506f
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue