Make Mjollnir lightning noisy

This commit is contained in:
Pasi Kallinen
2018-11-02 20:49:11 +02:00
parent 89a3f4a3fd
commit d7c042eb80
2 changed files with 3 additions and 0 deletions

View File

@@ -180,6 +180,7 @@ death from something other than loss of hit points could leave hero with
non-zero HP at end of game (during "really die?" prompt, disclosure)
added several special cases for genocide and/or wishing prompt: (cookie,
pie, genie, watchmen)
lightning strike from Mjollnir did not make any noise
Fixes to Post-3.6.1 Problems that Were Exposed Via git Repository

View File

@@ -1215,6 +1215,8 @@ int dieroll; /* needed for Magicbane and vorpal blades */
pline_The("massive hammer hits%s %s%c",
!spec_dbon_applies ? "" : "! Lightning strikes",
hittee, !spec_dbon_applies ? '.' : '!');
if (spec_dbon_applies)
wake_nearto(mdef->mx, mdef->my, 4 * 4);
if (!rn2(5))
(void) destroy_mitem(mdef, RING_CLASS, AD_ELEC);
if (!rn2(5))