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.
This commit is contained in:
nethack.rankin
2007-05-05 21:41:54 +00:00
parent 6d33acd2af
commit b85b3d47ff

View File

@@ -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;
}