mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-25 08:16:04 +00:00
Make it so you can't freeze in sun
This commit is contained in:
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
Block a user