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 мс } }