tgtkmdtz
This commit is contained in:
parent
4ce732168e
commit
c68b3bfb11
@ -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 = `
|
||||
|
||||
Loading…
Reference in New Issue
Block a user