mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
Replace (fainted) text with 0/X hp (#2604)
--------- Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>
This commit is contained in:
parent
49a311cc9b
commit
fff081a1de
|
|
@ -870,8 +870,10 @@ export class BattleTooltips {
|
|||
text += `<p class="tooltip-section"><strong>Possible Illusion #${illusionIndex}</strong>${levelBuf}</p>`;
|
||||
}
|
||||
|
||||
if (pokemon.fainted) {
|
||||
text += '<p><small>HP:</small> (fainted)</p>';
|
||||
if (pokemon.fainted && pokemon.maxhp === 100) {
|
||||
text += `<p><small>HP:</small> (fainted)</p>`;
|
||||
} else if (pokemon.fainted) {
|
||||
text += `<p><small>HP:</small> <span class="gray">0/${pokemon.maxhp} (fainted)</span></p>`;
|
||||
} else if (this.battle.hardcoreMode) {
|
||||
if (serverPokemon) {
|
||||
const status = pokemon.status ? ` <span class="status ${pokemon.status}">${pokemon.status.toUpperCase()}</span>` : '';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user