Don't send upkeep if battle ended (#10927)

This commit is contained in:
André Bastos Dias 2025-02-26 23:29:01 +00:00 committed by GitHub
parent 66c90ebd29
commit bfc79b4043
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}