alignment of Angels followup
No need to retain sgn() here; mon_aligntyp() takes care of that now.
This commit is contained in:
+1
-1
@@ -507,7 +507,7 @@ touch_artifact(obj,mon)
|
|||||||
badclass = self_willed &&
|
badclass = self_willed &&
|
||||||
oart->role != NON_PM && oart != &artilist[ART_EXCALIBUR];
|
oart->role != NON_PM && oart != &artilist[ART_EXCALIBUR];
|
||||||
badalign = (oart->spfx & SPFX_RESTR) && oart->alignment != A_NONE &&
|
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 */
|
} else { /* an M3_WANTSxxx monster or a fake player */
|
||||||
/* special monsters trying to take the Amulet, invocation tools or
|
/* special monsters trying to take the Amulet, invocation tools or
|
||||||
quest item can touch anything except for `spec_applies' artifacts */
|
quest item can touch anything except for `spec_applies' artifacts */
|
||||||
|
|||||||
Reference in New Issue
Block a user