From fff081a1deb3d7eb496278533a9f3fb7214dd913 Mon Sep 17 00:00:00 2001 From: Ethan Strader Date: Sun, 15 Mar 2026 01:58:23 -0400 Subject: [PATCH] Replace (fainted) text with 0/X hp (#2604) --------- Co-authored-by: Guangcong Luo --- play.pokemonshowdown.com/src/battle-tooltips.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/play.pokemonshowdown.com/src/battle-tooltips.ts b/play.pokemonshowdown.com/src/battle-tooltips.ts index 4bc1eb5ec..a33ed6d4b 100644 --- a/play.pokemonshowdown.com/src/battle-tooltips.ts +++ b/play.pokemonshowdown.com/src/battle-tooltips.ts @@ -870,8 +870,10 @@ export class BattleTooltips { text += `

Possible Illusion #${illusionIndex}${levelBuf}

`; } - if (pokemon.fainted) { - text += '

HP: (fainted)

'; + if (pokemon.fainted && pokemon.maxhp === 100) { + text += `

HP: (fainted)

`; + } else if (pokemon.fainted) { + text += `

HP: 0/${pokemon.maxhp} (fainted)

`; } else if (this.battle.hardcoreMode) { if (serverPokemon) { const status = pokemon.status ? ` ${pokemon.status.toUpperCase()}` : '';