From: Pasi Kallinen Date: Sun, 13 Feb 2022 15:54:01 +0000 (+0200) Subject: Flying should not allow monsters to walk on the wall of water X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c1a6dd40bcd8d316a40f1266a1f2dcad24e7bea3;p=nethack Flying should not allow monsters to walk on the wall of water Also applies to levitating monsters. --- diff --git a/src/mon.c b/src/mon.c index 01957a470..0e705a9b4 100644 --- a/src/mon.c +++ b/src/mon.c @@ -1779,7 +1779,7 @@ mfndpos( nodiag = NODIAG(mdat - mons); wantpool = (mdat->mlet == S_EEL); - poolok = ((!Is_waterlevel(&u.uz) + poolok = ((!Is_waterlevel(&u.uz) && !(nowtyp != WATER) && (is_flyer(mdat) || is_floater(mdat) || is_clinger(mdat))) || (is_swimmer(mdat) && !wantpool)); /* note: floating eye is the only is_floater() so this could be