diff --git a/doc/fixes35.0 b/doc/fixes35.0 index 2144c7d0d..86873aa6a 100644 --- a/doc/fixes35.0 +++ b/doc/fixes35.0 @@ -314,6 +314,7 @@ attacking via applied polearm never scuffed engraving underneath hero auto-wielding a polearm took no time if ESC was used to cancel target choice applying a bullwhip while at very edge of map could target beyond edge, potentially leading to a panic or crash +prevent temple priests and minions from wearing helms of opposite alignment Platform- and/or Interface-Specific Fixes diff --git a/src/worn.c b/src/worn.c index fa924bd5e..361a879e0 100644 --- a/src/worn.c +++ b/src/worn.c @@ -1,4 +1,4 @@ -/* SCCS Id: @(#)worn.c 3.5 2008/09/03 */ +/* SCCS Id: @(#)worn.c 3.5 2009/02/28 */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /* NetHack may be freely redistributed. See license for details. */ @@ -503,6 +503,11 @@ boolean racialexception; break; case W_ARMH: if (!is_helmet(obj)) continue; + /* changing alignment is not implemented for monsters; + priests and minions could change alignment but wouldn't + want to, so they reject helms of opposite alignment */ + if (obj->otyp == HELM_OF_OPPOSITE_ALIGNMENT && + (mon->ispriest || mon->isminion)) continue; /* (flimsy exception matches polyself handling) */ if (has_horns(mon->data) && !is_flimsy(obj)) continue; break;