Browse Source

Check for MonsterMode::Death in isPossibleToHit()

pull/7424/merge
staphen 1 year ago committed by Stephen C. Wills
parent
commit
371421bfd7
  1. 2
      Source/monster.cpp

2
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));
}

Loading…
Cancel
Save