mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-20 15:22:19 +02:00
Modify pokemon.resetStatus to use ResetStatusPhase
This commit is contained in:
parent
97e19f0407
commit
e278fb4521
@ -3810,21 +3810,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
if (!revive && lastStatus === StatusEffect.FAINT) {
|
if (!revive && lastStatus === StatusEffect.FAINT) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.status = null;
|
globalScene.unshiftPhase(new ResetStatusPhase(this, confusion, reloadAssets));
|
||||||
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());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user