From e278fb4521297224c3b0790016bbdddfba28dea9 Mon Sep 17 00:00:00 2001 From: Dean Date: Mon, 24 Feb 2025 18:00:14 -0800 Subject: [PATCH] Modify pokemon.resetStatus to use ResetStatusPhase --- src/field/pokemon.ts | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index 214c667f1c1..b06b8cb9847 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -3810,21 +3810,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { if (!revive && lastStatus === StatusEffect.FAINT) { return; } - this.status = null; - if (lastStatus === StatusEffect.SLEEP) { - this.setFrameRate(10); - if (this.getTag(BattlerTagType.NIGHTMARE)) { - this.lapseTag(BattlerTagType.NIGHTMARE); - } - } - if (confusion) { - if (this.getTag(BattlerTagType.CONFUSED)) { - this.lapseTag(BattlerTagType.CONFUSED); - } - } - if (reloadAssets) { - this.loadAssets(false).then(() => this.playAnim()); - } + globalScene.unshiftPhase(new ResetStatusPhase(this, confusion, reloadAssets)); } /**