From fbf885966b11084817ad2ca2003db3bd5e28d079 Mon Sep 17 00:00:00 2001 From: Steve Melenchuk Date: Thu, 19 Apr 2012 19:47:35 -0600 Subject: [PATCH] When wearing / removing a helm of opposite alignment, set player's alignment to -1 (consistent with what happens at the beginning of a conversion-by-altar process). Fixes C343-343. --- src/do_wear.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/do_wear.c b/src/do_wear.c index 1f51e18a03..2f7a66b549 100644 --- a/src/do_wear.c +++ b/src/do_wear.c @@ -519,6 +519,7 @@ Helmet_on(VOID_ARGS) if (u.ualign.type == A_NEUTRAL) u.ualign.type = rn2(2) ? A_CHAOTIC : A_LAWFUL; else u.ualign.type = -(u.ualign.type); + u.ualign.record = -1; /* consistent with altar conversion */ u.ublessed = 0; /* lose your god's protection */ /* makeknown(uarmh->otyp); -- moved below, after xname() */ /*FALLTHRU*/ @@ -582,6 +583,7 @@ Helmet_off(VOID_ARGS) break; case HELM_OF_OPPOSITE_ALIGNMENT: u.ualign.type = u.ualignbase[A_CURRENT]; + u.ualign.record = -1; /* consistent with altar conversion */ u.ublessed = 0; /* lose the other god's protection */ flags.botl = 1; break;