Skip to content

Commit

Permalink
game: Override isDying for Nex, Alchemical hydra, and Drakes
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Nightfirecat authored and Adam- committed Jun 22, 2022
1 parent 560ca9e commit 07d55b8
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ public boolean isDying(final NPC npc)
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)
{
Expand Down

0 comments on commit 07d55b8

Please sign in to comment.