From 5a9e00d0dd6edb175858c8d7441d969cafa5ae04 Mon Sep 17 00:00:00 2001 From: PatR Date: Sun, 24 Jan 2016 16:23:33 -0800 Subject: [PATCH] mind flayer's damage From a followup to #H2247, April 2011... Physical damage from a mind flayer attack was inflicted in the AD_DRIN case for hitmu(), then being inflicted again in the common code after the switch statement. The new comment explaining the reason for non-standard damage is just a guess. --- doc/fixes36.1 | 1 + src/mhitu.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/doc/fixes36.1 b/doc/fixes36.1 index 59d97f7b5..1fe963394 100644 --- a/doc/fixes36.1 +++ b/doc/fixes36.1 @@ -124,6 +124,7 @@ override MSGTYPE=norep while executing the ':' command if a chameleon took vampire form, it would stop periodically changing shape corpses obtained from tipping an ice box wouldn't rot away suppress "you climb up the stairs" message if verbose option is off +physical damage from mind flayer attack was being inflicted twice Platform- and/or Interface-Specific Fixes diff --git a/src/mhitu.c b/src/mhitu.c index 814061ccd..d8c85a133 100644 --- a/src/mhitu.c +++ b/src/mhitu.c @@ -1091,9 +1091,11 @@ register struct attack *mattk; helm_simple_name(uarmh)); break; } + /* negative armor class doesn't reduce this damage */ if (Half_physical_damage) dmg = (dmg + 1) / 2; mdamageu(mtmp, dmg); + dmg = 0; /* don't inflict a second dose below */ if (!uarmh || uarmh->otyp != DUNCE_CAP) { /* eat_brains() will miss if target is mindless (won't -- 2.40.0