Fix Misty Terrain softlock
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