game: Override isDying for Nex, Alchemical hydra, and Drakes

These NPCs transform to a new form in their "dying" phase, thus have
`isDead()` reset to false, despite actually dying. This commit overrides
those particular forms to be considered dead.
This commit is contained in:
Jordan Atwood
2022-06-21 15:27:17 -07:00
committed by Adam
parent 560ca9eac1
commit 07d55b864e

View File

@@ -95,6 +95,12 @@ public class NpcUtil
case NpcID.GROWTHLING:
case NpcID.KALPHITE_QUEEN_963: // KQ's first form sometimes regenerates 1hp after reaching 0hp, thus not dying
return false;
// These NPCs transform and have their `isDead()` reset to `false` despite actually being dead in these forms
case NpcID.DRAKE_8613:
case NpcID.GUARDIAN_DRAKE_10401:
case NpcID.ALCHEMICAL_HYDRA_8634:
case NpcID.NEX_11282:
return true;
default:
if (runtimeConfig != null)
{