Zapping wand of opening at yourself, unlock carried boxes

This commit is contained in:
Pasi Kallinen
2016-01-06 14:17:11 +02:00
parent 5ccfd34328
commit 72f55fedb5
2 changed files with 8 additions and 1 deletions

View File

@@ -95,6 +95,7 @@ redraw map when hilite_pile is toggled to display the highlighting
make commands that accept a count prefix for item selection
show "Count:" like command repeating does
allow picking a used inventory letter from menu when #adjusting
zapping wand of opening at yourself, unlock carried boxes
Platform- and/or Interface-Specific Fixes

View File

@@ -2368,7 +2368,13 @@ boolean ordinary;
}
if (u.utrap) { /* escape web or bear trap */
(void) openholdingtrap(&youmonst, &learn_it);
} else { /* trigger previously escaped trapdoor */
} else {
struct obj *otmp;
/* unlock carried boxes */
for (otmp = invent; otmp; otmp = otmp->nobj)
if (Is_box(otmp))
(void) boxlock(otmp, obj);
/* trigger previously escaped trapdoor */
(void) openfallingtrap(&youmonst, TRUE, &learn_it);
}
break;