Skip to content

Commit

Permalink
runelite-client: update to use isDead
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam- committed May 31, 2018
1 parent 8a6fc94 commit 267f88d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void onNpcDespawned(NpcDespawned npcDespawned)
{
NPC npc = npcDespawned.getNpc();

if (npc.getHealthRatio() != 0)
if (!npc.isDead())
{
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public void onNpcDespawn(NpcDespawned npcDespawned)
{
NPC actor = npcDespawned.getNpc();

if (actor.getHealthRatio() == 0 && actor.getId() == interactedNpcId)
if (actor.isDead() && actor.getId() == interactedNpcId)
{
removeCounters();
}
Expand Down

0 comments on commit 267f88d

Please sign in to comment.