diff --git a/MosswartMassacre/PluginCore.cs b/MosswartMassacre/PluginCore.cs index 3e7989f..68ee088 100644 --- a/MosswartMassacre/PluginCore.cs +++ b/MosswartMassacre/PluginCore.cs @@ -783,7 +783,27 @@ namespace MosswartMassacre WriteToChat($"[ERROR] Quest streaming service hot reload failed: {ex.Message}"); } - // 10. Reinitialize character stats streaming + // 10. Reinitialize combat stats tracker + try + { + _chatEventRouter.SetCombatTracker(_combatStatsTracker); + _combatStatsTracker?.RestartSession(); + _combatStatsTracker?.Start(); + WriteToChat($"[OK] Combat stats tracker initialized (tracker={(_combatStatsTracker != null ? "OK" : "NULL")})"); + } + catch (Exception ex) + { + WriteToChat($"[ERROR] Combat stats hot reload failed: {ex.Message}"); + } + + // 10b. Reinitialize vital sharing if enabled + if (PluginSettings.Instance.VitalSharingEnabled && _vitalSharingTracker != null) + { + _vitalSharingTracker.Start(); + WriteToChat("[OK] Vital sharing re-enabled after hot reload"); + } + + // 11. Reinitialize character stats streaming try { if (characterStatsTimer == null) diff --git a/MosswartMassacre/bin/Release/MosswartMassacre.dll b/MosswartMassacre/bin/Release/MosswartMassacre.dll index cbefde7..756f3d2 100644 Binary files a/MosswartMassacre/bin/Release/MosswartMassacre.dll and b/MosswartMassacre/bin/Release/MosswartMassacre.dll differ