mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-03-21 17:25:10 -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();
|
||||
residualPokemon = this.getAllActive().map(pokemon => [pokemon, pokemon.getUndynamaxedHP()] as const);
|
||||
this.fieldEvent('Residual');
|
||||
this.add('upkeep');
|
||||
if (!this.ended) this.add('upkeep');
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user