mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-25 08:16:04 +00:00
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
Block a user