alignment of Angels followup

No need to retain sgn() here; mon_aligntyp() takes care of that now.
This commit is contained in:
nethack.rankin
2005-10-06 03:12:55 +00:00
parent 7b1b472c33
commit 5ffa09c388

View File

@@ -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 */