mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-04-28 11:46:55 -05:00
Don't send upkeep if battle ended (#10927)
This commit is contained in:
parent
66c90ebd29
commit
bfc79b4043
|
|
@ -2756,7 +2756,7 @@ export class Battle {
|
||||||
this.updateSpeed();
|
this.updateSpeed();
|
||||||
residualPokemon = this.getAllActive().map(pokemon => [pokemon, pokemon.getUndynamaxedHP()] as const);
|
residualPokemon = this.getAllActive().map(pokemon => [pokemon, pokemon.getUndynamaxedHP()] as const);
|
||||||
this.fieldEvent('Residual');
|
this.fieldEvent('Residual');
|
||||||
this.add('upkeep');
|
if (!this.ended) this.add('upkeep');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user