From 4b01c2d4de414204159e80f7ed1bb1ed55c57942 Mon Sep 17 00:00:00 2001 From: Bonchellon Date: Wed, 28 Jan 2026 00:37:35 +0300 Subject: [PATCH] 123 --- public/game.js | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/public/game.js b/public/game.js index 2824bfc..c7c6018 100644 --- a/public/game.js +++ b/public/game.js @@ -699,11 +699,21 @@ } if (text) { - announcementEl.textContent = text; + announcementEl.innerHTML = text; + // Инициализируем иконки Lucide после установки HTML + if (typeof lucide !== 'undefined') { + setTimeout(() => { + try { + lucide.createIcons(); + } catch (e) { + console.warn('Error updating Lucide icons in attack announcement:', e); + } + }, 10); + } announcementEl.classList.remove('hidden'); - setTimeout(() => { - announcementEl.classList.add('hidden'); - }, 2000); // Сократил с 3500 до 2000 мс + setTimeout(() => { + announcementEl.classList.add('hidden'); + }, 2000); // Сократил с 3500 до 2000 мс } }