Fix ice types immune to sleep

pull/21/head
Flashfyre 2024-03-30 17:11:34 -04:00
parent 5b0a790d86
commit bb185d9845
1 changed files with 1 additions and 0 deletions

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;