sleeping monster responding to attacks

when msleeping is set, mcanmove is not cleared.  mcanmove applies only to
mfrozen.  So, mattackm needs to test both mcanmove and msleeping.
mattackm will not wake the defender if the attack misses.
This commit is contained in:
cohrs
2003-10-30 02:40:45 +00:00
parent cdbe3b1d39
commit e8a53c9ea3
2 changed files with 2 additions and 1 deletions

View File

@@ -203,7 +203,7 @@ mattackm(magr, mdef)
struct permonst *pa, *pd;
if (!magr || !mdef) return(MM_MISS); /* mike@genat */
if (!magr->mcanmove) return(MM_MISS); /* riv05!a3 */
if (!magr->mcanmove || magr->msleeping) return(MM_MISS);
pa = magr->data; pd = mdef->data;
/* Grid bugs cannot attack at an angle. */