Merge pull request #340 from utsukami/idle-notify-debugging

Incorrect idle notifications
This commit is contained in:
Adam
2018-01-08 19:28:16 -05:00
committed by GitHub

View File

@@ -264,7 +264,12 @@ public class IdleNotifierPlugin extends Plugin
}
Actor opponent = local.getInteracting();
if (opponent != null && opponent.getCombatLevel() > 0)
boolean isPlayer = opponent instanceof Player;
if (opponent != null
&& !isPlayer
&& opponent.getCombatLevel() > 0
&& opponent.getHealth() != -1)
{
lastInteracting = Instant.now();
}