mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-01-30 20:57:13 +00:00
Fix Misty Terrain softlock
This commit is contained in:
parent
1905ecc828
commit
54eed194fd
@ -1546,10 +1546,12 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
}
|
||||
|
||||
canSetStatus(effect: StatusEffect, quiet: boolean = false): boolean {
|
||||
if (effect !== StatusEffect.FAINT && this.status)
|
||||
return false;
|
||||
if (this.isGrounded() && this.scene.arena.terrain?.terrainType === TerrainType.MISTY)
|
||||
return false;
|
||||
if (effect !== StatusEffect.FAINT) {
|
||||
if (this.status)
|
||||
return false;
|
||||
if (this.isGrounded() && this.scene.arena.terrain?.terrainType === TerrainType.MISTY)
|
||||
return false;
|
||||
}
|
||||
|
||||
switch (effect) {
|
||||
case StatusEffect.POISON:
|
||||
|
Loading…
x
Reference in New Issue
Block a user