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 <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-03-04 10:22:53 +01:00
parent f93d268973
commit 906034ed49

View File

@@ -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;