From 62ac7cc4533ff1bb3d46f159a644a6b30c25acd0 Mon Sep 17 00:00:00 2001 From: obligaron Date: Tue, 20 Jul 2021 18:51:33 +0200 Subject: [PATCH] Fix DirOK for unique monsters --- Source/monster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/monster.cpp b/Source/monster.cpp index 4f3a8134d..223155b2d 100644 --- a/Source/monster.cpp +++ b/Source/monster.cpp @@ -4575,7 +4575,7 @@ bool DirOK(int i, Direction mdir) if (monster.leaderRelation == LeaderRelation::Leashed) { return futurePosition.WalkingDistance(Monsters[monster.leader].position.future) < 4; } - if (monster._uniqtype == 0 || UniqMonst[monster._uniqtype - 1].monsterPack == UniqueMonsterPack::Leashed) + if (monster._uniqtype == 0 || UniqMonst[monster._uniqtype - 1].monsterPack != UniqueMonsterPack::Leashed) return true; int mcount = 0; for (int x = futurePosition.x - 3; x <= futurePosition.x + 3; x++) {