Skip to content

Commit 5a46885

Browse files
authored
Merge pull request #90 from MindRapist/mr-18
Death fix
2 parents fb03082 + 5e902b8 commit 5a46885

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ It builds as it is, without external dependencies.
2626
## 📋 Changelog
2727

2828
### 🐛 Bug Fixes
29-
- **Refinement**: Fixed refinement by item (scroll/stone)
30-
31-
### ⬆️ Improvements
32-
- **Refinement**: Updated translations for the refinement dialogs and added conditional failed messages (from official)
29+
- **Death**: Fixed mobs attacking player's corpse, player regenerating HP while dead and revive functionality
3330

3431
<br>
3532
<br>

src/game/char_battle.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1659,8 +1659,10 @@ void CHARACTER::EnterCombat()
16591659
if (!IsPC())
16601660
return;
16611661

1662-
if (!IsPosition(POS_FIGHTING))
1662+
// MR-18: Fix mobs attacking corpse
1663+
if (!IsPosition(POS_FIGHTING) && !IsPosition(POS_DEAD))
16631664
SetPosition(POS_FIGHTING);
1665+
// MR-18: -- END OF -- Fix mobs attacking corpse
16641666

16651667
// MR-3: Cancel logout on use skill
16661668
if (m_pkTimedEvent)

0 commit comments

Comments
 (0)