]> granicus.if.org Git - nethack/commitdiff
xans fly, but could not reach your feet if you flew
authornhmall <nhmall@nethack.org>
Wed, 22 May 2019 22:27:03 +0000 (18:27 -0400)
committernhmall <nhmall@nethack.org>
Wed, 22 May 2019 22:27:03 +0000 (18:27 -0400)
doc/fixes36.3
src/mhitu.c

index 2293f0c7859d0551b3a704df91b0c09474c34fea..93b7087976fe737d60fca9f50059102beb622957 100644 (file)
@@ -17,6 +17,7 @@ billing and payment issue as a result of glob coalescing
 glob pricing did not consider weight properly
 glob shop interaction improved to handle more of the expected scenarios
 non-flying steed on Plane of Water would drown when air bubble moved hero
+xans fly, but could not reach your feet if you flew
 
 
 Fixes to Post-3.6.2 Problems that Were Exposed Via git Repository
index db92458032912abb66ce44cca4eb1580dffd43c9..a175daeabeb85f937a0940425c8cf88573152150 100644 (file)
@@ -1206,9 +1206,8 @@ register struct attack *mattk;
         /* This case is too obvious to ignore, but Nethack is not in
          * general very good at considering height--most short monsters
          * still _can_ attack you when you're flying or mounted.
-         * [FIXME: why can't a flying attacker overcome this?]
          */
-        if (u.usteed || Levitation || Flying) {
+        if ((u.usteed || Levitation || Flying) && !is_flyer(mtmp->data)) {
             pline("%s tries to reach your %s %s!", Monst_name, sidestr, leg);
             dmg = 0;
         } else if (mtmp->mcan) {