artifact manipulation
Fix an item from <Someone>'s list: invoking or applying an artifact might blast you; if it evades your grasp, the intended action won't take place but will still use up a turn.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* SCCS Id: @(#)artifact.c 3.4 2002/03/22 */
|
||||
/* SCCS Id: @(#)artifact.c 3.4 2002/08/01 */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -1096,7 +1096,8 @@ doinvoke()
|
||||
register struct obj *obj;
|
||||
|
||||
obj = getobj(invoke_types, "invoke");
|
||||
if(!obj) return 0;
|
||||
if (!obj) return 0;
|
||||
if (obj->oartifact && !touch_artifact(obj, &youmonst)) return 1;
|
||||
return arti_invoke(obj);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user