xans fly, but could not reach your feet if you flew

This commit is contained in:
nhmall
2019-05-22 18:27:03 -04:00
parent d541f108f4
commit 564dcd6576
2 changed files with 2 additions and 2 deletions

View 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

View 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) {