From b85b3d47ffaa7a2c2bcf21086b5eda905ec07b39 Mon Sep 17 00:00:00 2001 From: "nethack.rankin" Date: Sat, 5 May 2007 21:41:54 +0000 Subject: [PATCH] zhitu thinko (trunk only) Spotted by Janet: in the ``using #monster to breath[e] at self'' patch I accidentally reversed the Half_spell_damage adjustment (to breath only from non-breath attacks only, not by doubling instead of halving damage :-). Changing it to include zaps by the hero is intentional. --- src/zap.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/zap.c b/src/zap.c index 5351e9dc5..7724a2234 100644 --- a/src/zap.c +++ b/src/zap.c @@ -3504,8 +3504,10 @@ xchar sx, sy; break; } - if (dam && Half_spell_damage && abstyp >= 20 && abstyp <= 29) - dam = (dam + 1) / 2; /* half-damage for breath attack */ + /* Half_spell_damage protection yields half-damage for wands & spells, + including hero's own ricochets; breath attacks do full damage */ + if (dam && Half_spell_damage && !(abstyp >= 20 && abstyp <= 29)) + dam = (dam + 1) / 2; losehp(dam, fltxt, KILLED_BY_AN); return; }