runelite-client: update to use isDead
This commit is contained in:
@@ -58,7 +58,7 @@ public class BossTimersPlugin extends Plugin
|
|||||||
{
|
{
|
||||||
NPC npc = npcDespawned.getNpc();
|
NPC npc = npcDespawned.getNpc();
|
||||||
|
|
||||||
if (npc.getHealthRatio() != 0)
|
if (!npc.isDead())
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -166,7 +166,7 @@ public class SpecialCounterPlugin extends Plugin
|
|||||||
{
|
{
|
||||||
NPC actor = npcDespawned.getNpc();
|
NPC actor = npcDespawned.getNpc();
|
||||||
|
|
||||||
if (actor.getHealthRatio() == 0 && actor.getId() == interactedNpcId)
|
if (actor.isDead() && actor.getId() == interactedNpcId)
|
||||||
{
|
{
|
||||||
removeCounters();
|
removeCounters();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user