runelite-client: update to use isDead

This commit is contained in:
Adam
2018-05-31 18:19:33 -04:00
parent 8a6fc94239
commit 267f88de57
2 changed files with 2 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ public class BossTimersPlugin extends Plugin
{
NPC npc = npcDespawned.getNpc();
if (npc.getHealthRatio() != 0)
if (!npc.isDead())
{
return;
}

View File

@@ -166,7 +166,7 @@ public class SpecialCounterPlugin extends Plugin
{
NPC actor = npcDespawned.getNpc();
if (actor.getHealthRatio() == 0 && actor.getId() == interactedNpcId)
if (actor.isDead() && actor.getId() == interactedNpcId)
{
removeCounters();
}