From 202ac36a5209eef2ced8953fb525f2ded29211c9 Mon Sep 17 00:00:00 2001 From: qndel Date: Sun, 18 Apr 2021 16:24:15 +0200 Subject: [PATCH] golems, dont fight each other --- Source/monster.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/monster.cpp b/Source/monster.cpp index e125b04ed..c29c0d7b1 100644 --- a/Source/monster.cpp +++ b/Source/monster.cpp @@ -1356,6 +1356,9 @@ void M_Enemy(int i) continue; if (M_Talker(mi) && monster[mi].mtalkmsg) continue; + if ((Monst->_mFlags & MFLAG_GOLEM) && (monster[mi]._mFlags & MFLAG_GOLEM)) // prevent golems from fighting each other + continue; + dist = std::max(abs(monster[mi]._mx - Monst->_mx), abs(monster[mi]._my - Monst->_my)); if ((!(Monst->_mFlags & MFLAG_GOLEM) && !(Monst->_mFlags & MFLAG_BERSERK)