From c1a6dd40bcd8d316a40f1266a1f2dcad24e7bea3 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sun, 13 Feb 2022 17:54:01 +0200 Subject: [PATCH] Flying should not allow monsters to walk on the wall of water Also applies to levitating monsters. --- src/mon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.1