From 5ffa09c3881153101d603162afaa71fd1e3fb63f Mon Sep 17 00:00:00 2001 From: "nethack.rankin" Date: Thu, 6 Oct 2005 03:12:55 +0000 Subject: [PATCH] alignment of Angels followup No need to retain sgn() here; mon_aligntyp() takes care of that now. --- src/artifact.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/artifact.c b/src/artifact.c index 9ea4ae6c8..41aa90b5c 100644 --- a/src/artifact.c +++ b/src/artifact.c @@ -507,7 +507,7 @@ touch_artifact(obj,mon) badclass = self_willed && oart->role != NON_PM && oart != &artilist[ART_EXCALIBUR]; badalign = (oart->spfx & SPFX_RESTR) && oart->alignment != A_NONE && - (oart->alignment != sgn(mon_aligntyp(mon))); + (oart->alignment != mon_aligntyp(mon)); } else { /* an M3_WANTSxxx monster or a fake player */ /* special monsters trying to take the Amulet, invocation tools or quest item can touch anything except for `spec_applies' artifacts */ -- 2.40.0