terminate eating if pet falls asleep or becomes paralyzed (trunk only)
From a bug report: sleeping pet could be shown as "eating" by stethoscope. Fixing that is a one-liner since all (or should be all; sleeping gas trap wasn't utilizing it) cases of monster being forced into sleep go through one routine. That wasn't the situation for paralysis, but now it is. Paralyzed pets won't continue eating either.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* SCCS Id: @(#)mhitu.c 3.5 2005/09/27 */
|
||||
/* SCCS Id: @(#)mhitu.c 3.5 2005/12/05 */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -2493,15 +2493,13 @@ register struct attack *mattk;
|
||||
"Your gaze is reflected by %s %s."))
|
||||
return 1;
|
||||
pline("%s is frozen by your gaze!", Monnam(mtmp));
|
||||
mtmp->mcanmove = 0;
|
||||
mtmp->mfrozen = tmp;
|
||||
paralyze_monst(mtmp, tmp);
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
} else { /* gelatinous cube */
|
||||
pline("%s is frozen by you.", Monnam(mtmp));
|
||||
mtmp->mcanmove = 0;
|
||||
mtmp->mfrozen = tmp;
|
||||
paralyze_monst(mtmp, tmp);
|
||||
return 3;
|
||||
}
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user