]> granicus.if.org Git - nethack/commitdiff
fix #M100 - mind flayer's psychic blast during prayer
authornethack.rankin <nethack.rankin>
Sun, 26 Jun 2005 04:02:24 +0000 (04:02 +0000)
committernethack.rankin <nethack.rankin>
Sun, 26 Jun 2005 04:02:24 +0000 (04:02 +0000)
     From a bug report:  the invulnerability conferred
during the multi-turn delay for a successful prayer was not protecting
against damage inflicted by hostile mind flayer's "wave of mental energy".

doc/fixes34.4
src/monmove.c

index 52423ad2563f2b94f3c1cdd3397bea0a3b74c339..67d44f2acc421a225bebd8a1e0855db3b65b8733 100644 (file)
@@ -129,6 +129,7 @@ when a monster grew into a higher form which had previously been genocided,
 hero could still see for brief period after being blinded by potion vapors
 avoid crash when thrown potion hits bars before a monster
 don't give messages about seeing things happen while asleep
+protect hero from mind flayer's remote mental blast during successful prayer
 
 
 Platform- and/or Interface-Specific Fixes
index 4e0e8291ca9533bb0631279009d0c9232ec2714a..f43549b6b10770b6881219731dcabe75e7f927c9 100644 (file)
@@ -404,9 +404,9 @@ register struct monst *mtmp;
                }
                pline("A wave of psychic energy pours over you!");
                if (mtmp->mpeaceful &&
-                   (!Conflict || resist(mtmp, RING_CLASS, 0, 0)))
+                   (!Conflict || resist(mtmp, RING_CLASS, 0, 0))) {
                        pline("It feels quite soothing.");
-               else {
+               } else if (!u.uinvulnerable) {
                        register boolean m_sen = sensemon(mtmp);
 
                        if (m_sen || (Blind_telepat && rn2(2)) || !rn2(10)) {