fix more of #2629 - striking/force bolt feedback (trunk only)

From a bug report, the message "Boing!" is given if wand of striking
or spell of force bolt is aimed at magic resistant hero by self or by
monster, or at magic resistant monster by another monster, but it was
omitted when aimed at magic resistant monster by the hero.  The shield
effect animation for resistance is given in all the cases.
This commit is contained in:
nethack.rankin
2012-04-07 01:17:23 +00:00
parent e46e3668b3
commit 921c056efc
2 changed files with 2 additions and 0 deletions

View File

@@ -171,6 +171,7 @@ struct obj *otmp;
reveal_invis = TRUE;
if (resists_magm(mtmp)) { /* match effect on player */
shieldeff(mtmp->mx, mtmp->my);
pline("Boing!");
break; /* skip makeknown */
} else if (u.uswallow || rnd(20) < 10 + find_mac(mtmp)) {
dmg = d(2,12);