diff --git a/Source/player.cpp b/Source/player.cpp index 406fd7907..6ff81f5ea 100644 --- a/Source/player.cpp +++ b/Source/player.cpp @@ -2965,6 +2965,10 @@ void CheckNewPath(int pnum, bool pmWillBeCalled) case ACTION_RATTACKMON: case ACTION_SPELLMON: monster = &Monsters[targetId]; + if ((monster->_mhitpoints >> 6) <= 0) { + player.Stop(); + return; + } if (player.destAction == ACTION_ATTACKMON) MakePlrPath(pnum, monster->position.future, false); break; @@ -2972,6 +2976,10 @@ void CheckNewPath(int pnum, bool pmWillBeCalled) case ACTION_RATTACKPLR: case ACTION_SPELLPLR: target = &Players[targetId]; + if ((target->_pHitPoints >> 6) <= 0) { + player.Stop(); + return; + } if (player.destAction == ACTION_ATTACKPLR) MakePlrPath(pnum, target->position.future, false); break;