ensure touch_artifact is always called via hold_another_object

- remove the touch_artifact calls just added
- put a check into hold_another_object itself, based on the complete check
removed from makewish
This commit is contained in:
cohrs
2002-04-02 05:32:02 +00:00
parent 28e7cd5c0e
commit 5c1ea899bf
4 changed files with 28 additions and 29 deletions

View File

@@ -2267,10 +2267,7 @@ struct obj *obj;
pline("Snatching %s is a fatal mistake.", kbuf);
instapetrify(kbuf);
}
if (!touch_artifact(otmp, &youmonst))
dropy(otmp);
else
otmp = hold_another_object(otmp, "You drop %s!",
otmp = hold_another_object(otmp, "You drop %s!",
doname(otmp), (const char *)0);
break;
default: