Remove potential desync from `PokemonHealPhase` (#4497)
This commit is contained in:
parent
771b0edcb0
commit
a69da4bc06
|
@ -46,8 +46,7 @@ export class PokemonHealPhase extends CommonAnimPhase {
|
|||
const pokemon = this.getPokemon();
|
||||
|
||||
if (!pokemon.isOnField() || (!this.revive && !pokemon.isActive())) {
|
||||
super.end();
|
||||
return;
|
||||
return super.end();
|
||||
}
|
||||
|
||||
const hasMessage = !!this.message;
|
||||
|
@ -58,7 +57,7 @@ export class PokemonHealPhase extends CommonAnimPhase {
|
|||
if (healBlock && this.hpHealed > 0) {
|
||||
this.scene.queueMessage(healBlock.onActivation(pokemon));
|
||||
this.message = null;
|
||||
super.end();
|
||||
return super.end();
|
||||
} else if (healOrDamage) {
|
||||
const hpRestoreMultiplier = new Utils.IntegerHolder(1);
|
||||
if (!this.revive) {
|
||||
|
|
Loading…
Reference in New Issue