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:
+1
-1
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user