This commit is contained in:
cay 2026-04-13 18:53:59 +01:00
parent 4ce732168e
commit c68b3bfb11

View File

@ -852,7 +852,6 @@ function updateHpDisplay(slot, currentHp, maxHp) {
const flash = document.createElement('div');
flash.style.cssText = 'position:absolute;inset:0;border-radius:inherit;background:rgba(220,50,50,0.4);z-index:20;pointer-events:none;';
avEl.style.position = 'relative';
avEl.appendChild(flash);
setTimeout(() => flash.remove(), 320);
}
@ -881,7 +880,6 @@ socket.on('avatar_damaged', data => {
const isLeft = slot === (window._leftSlot || 'player1');
const avEl = document.getElementById(isLeft ? 'avLeft' : 'avRight');
if (avEl) {
avEl.style.position = 'relative';
const dmg = document.createElement('div');
dmg.textContent = `-${damage}`;
dmg.style.cssText = `