From 371421bfd796d7c3d2c74ccd7f23d1d906787356 Mon Sep 17 00:00:00 2001 From: staphen Date: Sat, 15 Mar 2025 11:43:29 -0400 Subject: [PATCH] Check for MonsterMode::Death in isPossibleToHit() --- Source/monster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/monster.cpp b/Source/monster.cpp index c6adb1dfe..4a57871c3 100644 --- a/Source/monster.cpp +++ b/Source/monster.cpp @@ -4785,7 +4785,7 @@ bool Monster::isPossibleToHit() const return !(hitPoints >> 6 <= 0 || talkMsg != TEXT_NONE || (type().type == MT_ILLWEAV && goal == MonsterGoal::Retreat) - || mode == MonsterMode::Charge + || (IsAnyOf(mode, MonsterMode::Charge, MonsterMode::Death)) || (IsAnyOf(type().type, MT_COUNSLR, MT_MAGISTR, MT_CABALIST, MT_ADVOCATE) && goal != MonsterGoal::Normal)); }