Flying should not allow monsters to walk on the wall of water

Also applies to levitating monsters.
This commit is contained in:
Pasi Kallinen
2022-02-13 17:54:01 +02:00
parent 2448ead0c4
commit c1a6dd40bc

View File

@@ -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