General Fixes and Modified Features
-----------------------------------
-Prevent panic() obj_not_free when pushing a boulder over a landmine
+prevent panic() obj_not_free when pushing a boulder over a landmine
+there was no feedback when successfully hitting shock resistant monsters
+ with Mjollnir via hand-to-hand attack
Platform- and/or Interface-Specific Fixes
-/* SCCS Id: @(#)artifact.c 3.4 2002/02/21 */
+/* SCCS Id: @(#)artifact.c 3.4 2002/03/22 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
return FALSE;
}
- realizes_damage = (youdefend || vis);
+ realizes_damage = (youdefend || vis ||
+ /* feel the effect even if not seen */
+ (youattack && mdef == u.ustuck));
/* the four basic attacks: fire, cold, shock and missiles */
if (attacks(AD_FIRE, otmp)) {
}
if (attacks(AD_ELEC, otmp)) {
if (realizes_damage) {
- if (youattack ? otmp != uwep : !spec_dbon_applies)
- pline("%s %s%c", Tobjnam(otmp, "hit"),
+ pline_The("massive hammer hits %s%c",
hittee, !spec_dbon_applies ? '.' : '!');
if (spec_dbon_applies)
pline("Lightning strikes %s!", hittee);
}
if (attacks(AD_MAGM, otmp)) {
if (realizes_damage) {
- if (youattack ? otmp != uwep : !spec_dbon_applies)
- pline("%s %s%c", Tobjnam(otmp, "hit"),
+ pline_The("imaginary widget hits %s%c",
hittee, !spec_dbon_applies ? '.' : '!');
if (spec_dbon_applies)
pline("A hail of magic missiles strikes %s!", hittee);