From aead84ec3945f59a9c3687bdb41938663ae2bea7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bastos=20Dias?= Date: Wed, 26 Feb 2025 23:09:46 +0000 Subject: [PATCH] Don't send upkeep if battle ended --- sim/battle.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim/battle.ts b/sim/battle.ts index c25b554bfc165..f97b98f743737 100644 --- a/sim/battle.ts +++ b/sim/battle.ts @@ -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; }