]> granicus.if.org Git - nethack/commitdiff
B03006 - Searching trapped chests
authorcohrs <cohrs>
Sun, 25 May 2003 05:04:11 +0000 (05:04 +0000)
committercohrs <cohrs>
Sun, 25 May 2003 05:04:11 +0000 (05:04 +0000)
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
src/trap.c

index 177a4a276176967a604e113f56ba8cd057523a9b..ebc067941fd5fedb6f67199acd9c990847289122 100644 (file)
@@ -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
index 854ba9be7b0577b59bdd28ae735d78f2e22aa05c..4694befc9c3ef0e40ac037bff8738800b4b48096 100644 (file)
@@ -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);