mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 07:52:17 +02: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 {
|
canSetStatus(effect: StatusEffect, quiet: boolean = false): boolean {
|
||||||
if (effect !== StatusEffect.FAINT && this.status)
|
if (effect !== StatusEffect.FAINT) {
|
||||||
return false;
|
if (this.status)
|
||||||
if (this.isGrounded() && this.scene.arena.terrain?.terrainType === TerrainType.MISTY)
|
return false;
|
||||||
return false;
|
if (this.isGrounded() && this.scene.arena.terrain?.terrainType === TerrainType.MISTY)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
switch (effect) {
|
switch (effect) {
|
||||||
case StatusEffect.POISON:
|
case StatusEffect.POISON:
|
||||||
|
Loading…
Reference in New Issue
Block a user