Fix ice types immune to sleep
parent
5b0a790d86
commit
bb185d9845
|
@ -1608,6 +1608,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||||
case StatusEffect.SLEEP:
|
case StatusEffect.SLEEP:
|
||||||
if (this.isGrounded() && this.scene.arena.terrain?.terrainType === TerrainType.ELECTRIC)
|
if (this.isGrounded() && this.scene.arena.terrain?.terrainType === TerrainType.ELECTRIC)
|
||||||
return false;
|
return false;
|
||||||
|
break;
|
||||||
case StatusEffect.FREEZE:
|
case StatusEffect.FREEZE:
|
||||||
if (this.isOfType(Type.ICE))
|
if (this.isOfType(Type.ICE))
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue