修复无限血上限但是非无限血的显示

This commit is contained in:
mengxinzxz 2024-03-13 22:25:12 +08:00
parent 17674901df
commit 9dc3caf68c
1 changed files with 1 additions and 1 deletions

View File

@ -3069,7 +3069,7 @@ export class Player extends HTMLDivElement {
const hidden = (this.classList.contains('unseen_show') || this.classList.contains('unseen2_show'));
const maxHp = (hidden ? 1 : this.maxHp);
if (maxHp == Infinity) {
hp.innerHTML = '∞';
hp.innerHTML = (this.hp == Infinity ? '∞' : (this.hp + '<br>/<br>' + '∞' + '<div></div>'));
}
else if (game.layout == 'default' && maxHp > 14) {
hp.innerHTML = this.hp + '/' + maxHp;