[part of] #H1743 - sleeping victim of theft (trunk only)
Mentioned by <email deleted> in his report about sound anomalies, it was possible for a sleeping hero to "gladly start removing armor" when attacked by a nymph or succubus. The code explicitly wakes up the hero if he has fainted from lack of food because "can't charm without waking you" (according to the existing comment), but it didn't handle other forms of sleep and paralysis. You could get |You fall asleep. |The wood nymph charms you. You gladly start removing your armor. |The combat awakens you. Now in the same situation you'll get |You fall asleep. |You wake up. |The wood nymph charms you. You gladly start removing your armor.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* SCCS Id: @(#)steal.c 3.5 2007/04/16 */
|
||||
/* SCCS Id: @(#)steal.c 3.5 2008/11/02 */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -421,7 +421,7 @@ gotobj:
|
||||
|
||||
otmp->cursed = 0;
|
||||
/* can't charm you without first waking you */
|
||||
if (multi < 0 && is_fainted()) unmul((char *)0);
|
||||
if (Unaware) unmul((char *)0);
|
||||
slowly = (armordelay >= 1 || multi < 0);
|
||||
if(flags.female)
|
||||
pline("%s charms you. You gladly %s your %s.",
|
||||
|
||||
Reference in New Issue
Block a user