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.
This commit is contained in:
cohrs
2003-05-25 05:04:11 +00:00
parent 1d2b62de95
commit dde1a1ceec
2 changed files with 2 additions and 1 deletions

View 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

View 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);