Make Electric types immune to paralysis

pull/14/head
Flashfyre 2024-01-08 00:10:08 -05:00
parent bde168accb
commit 111f9c9af8
1 changed files with 4 additions and 0 deletions

View File

@ -1401,6 +1401,10 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
if (this.isOfType(Type.POISON) || this.isOfType(Type.STEEL)) if (this.isOfType(Type.POISON) || this.isOfType(Type.STEEL))
return false; return false;
break; break;
case StatusEffect.PARALYSIS:
if (this.isOfType(Type.ELECTRIC))
return false;
break;
case StatusEffect.FREEZE: case StatusEffect.FREEZE:
if (this.isOfType(Type.ICE)) if (this.isOfType(Type.ICE))
return false; return false;