Fix ice types immune to sleep

This commit is contained in:
Flashfyre committed 2024-03-30 17:11:34 -04:00
1 parent 5b0a790d86
commit bb185d9845
1 file changed
+1
+1
View File
@@ -1608,6 +1608,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
case StatusEffect.SLEEP:
if (this.isGrounded() && this.scene.arena.terrain?.terrainType === TerrainType.ELECTRIC)
return false;
break;
case StatusEffect.FREEZE:
if (this.isOfType(Type.ICE))
return false;