Fix unicorn movement special handling

My commit 82f0b1e8ea 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
This commit is contained in:
Pasi Kallinen
2025-01-01 23:43:15 +02:00
parent 0a58b7a540
commit 114f99867e
+1 -1
View File
@@ -1898,7 +1898,7 @@ m_move(struct monst *mtmp, int after)
coord poss[9]; coord poss[9];
cnt = mfndpos(mtmp, poss, info, flag); cnt = mfndpos(mtmp, poss, info, flag);
if (cnt == 0) { if (cnt == 0 && !is_unicorn(mtmp->data)) {
if (find_defensive(mtmp, TRUE) && use_defensive(mtmp)) if (find_defensive(mtmp, TRUE) && use_defensive(mtmp))
return MMOVE_DONE; return MMOVE_DONE;
return MMOVE_NOMOVES; return MMOVE_NOMOVES;