diasurgical / devilutionX

Diablo build for modern operating systems
Other
7.93k stars 775 forks source link

Monsters don't target Golem #1521

Open StephenCWills opened 3 years ago

StephenCWills commented 3 years ago

Important information Windows 10 / Latest version (acc1578c) / Compiled using VS2019

Describe Enemy monsters don't target the Golem and will instead go to great lengths to get around him and attack the player.

To Reproduce Steps to reproduce the behavior:

  1. Follow the steps to reproduce #1522
  2. Follow the Golem to an enemy monster
  3. Attempt to force the enemy to attack the Golem

Expected behavior It shouldn't even be possible to create a bugged Golem in the first place.

StephenCWills commented 3 years ago

It seems this may have been related to the HP overflow issue described in #1522. This behavior certainly is different from what I observed in vanilla, but it resolved itself when I fixed the HP overflow bug in my debug build.

AJenbo commented 3 years ago

There is probably similar check that concludes the golem is dead and so avoids it