Add support for lastCombatCountdown to combat idle

In case user has combat idle set to 0, this ensures that the idle notif
will not fire right away.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-10-29 10:36:48 +01:00
parent 6515174e18
commit 1842612b28

View File

@@ -456,7 +456,9 @@ public class IdleNotifierPlugin extends Plugin
if (interact == null)
{
if (lastInteracting != null && Instant.now().compareTo(lastInteracting.plus(waitDuration)) >= 0)
if (lastInteracting != null
&& Instant.now().compareTo(lastInteracting.plus(waitDuration)) >= 0
&& lastCombatCountdown == 0)
{
lastInteract = null;
lastInteracting = null;