From eacb68666ebae46421e05fabe43004b9ba706f1d Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Thu, 12 Jan 2023 23:15:51 +0200 Subject: [PATCH] Deadly afflictions and resistances for safe_wait Amend the safe_wait so it still waits if you have a deadly property, even if you have a resistance to it. External resistances do not protect against already existing deadly properties, for example becoming deadly ill is not cured even if you wear a green dragon scale mail. --- src/do.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/do.c b/src/do.c index 6f639dbd9..0ed523884 100644 --- a/src/do.c +++ b/src/do.c @@ -2137,10 +2137,7 @@ zombify_mon(anything *arg, long timeout) static boolean danger_uprops(void) { - return ((Stoned && !Stone_resistance) - || Slimed - || Strangled - || (Sick && !Sick_resistance)); + return (Stoned || Slimed || Strangled || Sick); } boolean