Merge pull request #340 from utsukami/idle-notify-debugging
Incorrect idle notifications
This commit is contained in:
@@ -264,7 +264,12 @@ public class IdleNotifierPlugin extends Plugin
|
|||||||
}
|
}
|
||||||
|
|
||||||
Actor opponent = local.getInteracting();
|
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();
|
lastInteracting = Instant.now();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user