From 906034ed49735524719e399e14efec5d1b21c716 Mon Sep 17 00:00:00 2001 From: Tomas Slusny Date: Sun, 4 Mar 2018 10:22:53 +0100 Subject: [PATCH] Make idle notifier work for splashing/missing When you splash or miss too many times HP dissapears and thus client thinks that you have -1 HP and then idle notifier ignores that. Reason why -1 check was there is because it was added in modification when we were preventing the NPCs to throw notifications. But after some testing it looks like that just checking for combat level is enough. Signed-off-by: Tomas Slusny --- .../client/plugins/idlenotifier/IdleNotifierPlugin.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/idlenotifier/IdleNotifierPlugin.java b/runelite-client/src/main/java/net/runelite/client/plugins/idlenotifier/IdleNotifierPlugin.java index 17d2cd9845..9c67ce53a3 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/idlenotifier/IdleNotifierPlugin.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/idlenotifier/IdleNotifierPlugin.java @@ -357,8 +357,7 @@ public class IdleNotifierPlugin extends Plugin if (opponent != null && !isPlayer - && opponent.getCombatLevel() > 0 - && opponent.getHealth() != -1) + && opponent.getCombatLevel() > 0) { resetTimers(); lastOpponent = opponent;