From dde1a1ceec057df52d7bb33b03a934c5fb8c162e Mon Sep 17 00:00:00 2001 From: cohrs Date: Sun, 25 May 2003 05:04:11 +0000 Subject: [PATCH] B03006 - Searching trapped chests When attempting to disarm a trapped chest, wisdom should only be exercised when not confused. It stands to reason that even if you manage to find a trap in a confused/hallucinating state, wisdom shouldn't be exercised. --- doc/fixes34.2 | 1 + src/trap.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/fixes34.2 b/doc/fixes34.2 index 177a4a276..ebc067941 100644 --- a/doc/fixes34.2 +++ b/doc/fixes34.2 @@ -77,6 +77,7 @@ short swords are not throwing weapons several sit-in-trap cases were unreachable curse candelabrum in bones, like other similar artifacts clear up Magicbane messages when it attempts to re-cancel a canceled monster +detecting a trap in a chest while confused should not exercise wisdom Platform- and/or Interface-Specific Fixes diff --git a/src/trap.c b/src/trap.c index 854ba9be7..4694befc9 100644 --- a/src/trap.c +++ b/src/trap.c @@ -3397,7 +3397,7 @@ boolean force; && rn2(MAXULEV + 1 - u.ulevel) < 10))) || (!force && confused && !rn2(3))) { You("find a trap on %s!", the(xname(otmp))); - exercise(A_WIS, TRUE); + if (!confused) exercise(A_WIS, TRUE); switch (ynq("Disarm it?")) { case 'q': return(1); -- 2.40.0