]> granicus.if.org Git - nethack/commitdiff
Stun from knockback only if not already stunned
authorPasi Kallinen <paxed@alt.org>
Thu, 2 Feb 2023 11:50:59 +0000 (13:50 +0200)
committerPasi Kallinen <paxed@alt.org>
Thu, 2 Feb 2023 11:50:59 +0000 (13:50 +0200)
src/uhitm.c

index cfd27a15d344d693a5bf13000c0f04f0e67ebdf4..7c3ef2f4c3b9b0f176af31e49b7f7c8ae94ad077 100644 (file)
@@ -4883,7 +4883,7 @@ mhitm_knockback(
             hurtle(u.dx, u.dy, rnd(2), FALSE);
 
         set_apparxy(magr); /* update magr's idea of where you are */
-        if (!rn2(4))
+        if (!Stunned && !rn2(4))
             make_stunned((HStun & TIMEOUT) + (long) rnd(2) + 1L, TRUE);
     } else {
         coordxy x = u_agr ? u.ux : magr->mx;