Skip to content

Commit 664c070

Browse files
committed
Check for MonsterMode::Death in isPossibleToHit()
1 parent 83aa454 commit 664c070

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/monster.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4697,7 +4697,7 @@ bool Monster::isPossibleToHit() const
46974697
return !(hitPoints >> 6 <= 0
46984698
|| talkMsg != TEXT_NONE
46994699
|| (type().type == MT_ILLWEAV && goal == MonsterGoal::Retreat)
4700-
|| mode == MonsterMode::Charge
4700+
|| (IsAnyOf(mode, MonsterMode::Charge, MonsterMode::Death))
47014701
|| (IsAnyOf(type().type, MT_COUNSLR, MT_MAGISTR, MT_CABALIST, MT_ADVOCATE) && goal != MonsterGoal::Normal));
47024702
}
47034703

0 commit comments

Comments
 (0)