From 5e902b8a606fc46ea5c3c690684763f6ccf754c2 Mon Sep 17 00:00:00 2001 From: Mind Rapist Date: Tue, 24 Feb 2026 03:09:09 +0200 Subject: [PATCH] Death fix --- README.md | 5 +---- src/game/char_battle.cpp | 4 +++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 90d3682..bcfbce9 100644 --- a/README.md +++ b/README.md @@ -26,10 +26,7 @@ It builds as it is, without external dependencies. ## 📋 Changelog ### 🐛 Bug Fixes - - **Refinement**: Fixed refinement by item (scroll/stone) - -### ⬆️ Improvements - - **Refinement**: Updated translations for the refinement dialogs and added conditional failed messages (from official) + - **Death**: Fixed mobs attacking player's corpse, player regenerating HP while dead and revive functionality

diff --git a/src/game/char_battle.cpp b/src/game/char_battle.cpp index d76edde..c9fd26b 100644 --- a/src/game/char_battle.cpp +++ b/src/game/char_battle.cpp @@ -1659,8 +1659,10 @@ void CHARACTER::EnterCombat() if (!IsPC()) return; - if (!IsPosition(POS_FIGHTING)) + // MR-18: Fix mobs attacking corpse + if (!IsPosition(POS_FIGHTING) && !IsPosition(POS_DEAD)) SetPosition(POS_FIGHTING); + // MR-18: -- END OF -- Fix mobs attacking corpse // MR-3: Cancel logout on use skill if (m_pkTimedEvent)