ensure that a sleeping steed doesn't answer you

This commit is contained in:
nethack.allison
2004-08-23 22:54:02 +00:00
parent d84ad3ec3c
commit 31bf37ee7c
2 changed files with 8 additions and 2 deletions

View File

@@ -50,6 +50,7 @@ really fix rolling boulder bug C340-18, the previous "fix" reversed the test
monster throwing greased weapon has same chance for slip/misfire as player
killing a pet by displacing it into a trap now yields experience
prevent a rolling boulder that is in motion from vanishing in bones files
ensure that a sleeping steed doesn't answer a #chat
Platform- and/or Interface-Specific Fixes

View File

@@ -867,9 +867,14 @@ dochat()
}
#ifdef STEED
if (u.usteed && u.dz > 0)
return (domonnoise(u.usteed));
if (u.usteed && u.dz > 0) {
if (!u.usteed->mcanmove || u.usteed->msleeping)
pline("%s seems not to notice you.", Monnam(u.usteed));
else
return (domonnoise(u.usteed));
}
#endif
if (u.dz) {
pline("They won't hear you %s there.", u.dz < 0 ? "up" : "down");
return(0);