make berserked monsters fight each other
This commit is contained in:
parent
c15123688a
commit
1110927057
1 changed files with 2 additions and 1 deletions
|
|
@ -849,7 +849,8 @@ void UpdateEnemy(Monster &monster)
|
|||
continue;
|
||||
if (M_Talker(otherMonster) && otherMonster.mtalkmsg != TEXT_NONE)
|
||||
continue;
|
||||
if ((monster._mFlags & MFLAG_GOLEM) != 0 && (otherMonster._mFlags & MFLAG_GOLEM) != 0) // prevent golems from fighting each other
|
||||
bool isBerserked = (monster._mFlags & MFLAG_BERSERK) != 0 || (otherMonster._mFlags & MFLAG_BERSERK) != 0;
|
||||
if ((monster._mFlags & MFLAG_GOLEM) != 0 && (otherMonster._mFlags & MFLAG_GOLEM) != 0 && !isBerserked) // prevent golems from fighting each other
|
||||
continue;
|
||||
|
||||
int dist = otherMonster.position.tile.WalkingDistance(position);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue