From 114f99867eced260f668d00319732143e0703ae8 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Wed, 1 Jan 2025 23:43:12 +0200 Subject: [PATCH] Fix unicorn movement special handling My commit 82f0b1e8ea4e54 to make monsters which had nowhere to move would panic attack the hero if possible, broke the special unicorn handling; they avoid being in-line with hero, so often had nowhere to move... Fixes #1344 --- src/monmove.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/monmove.c b/src/monmove.c index 61afc0d35..ceb4927a1 100644 --- a/src/monmove.c +++ b/src/monmove.c @@ -1898,7 +1898,7 @@ m_move(struct monst *mtmp, int after) coord poss[9]; cnt = mfndpos(mtmp, poss, info, flag); - if (cnt == 0) { + if (cnt == 0 && !is_unicorn(mtmp->data)) { if (find_defensive(mtmp, TRUE) && use_defensive(mtmp)) return MMOVE_DONE; return MMOVE_NOMOVES;