From 572bff8d6bbb4c6e8529127cfb6f493cc386c06a Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 29 Mar 2024 19:05:56 -0500 Subject: [PATCH] auto attack timer for players fixed --- src/engine/gameManager/CombatManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/gameManager/CombatManager.java b/src/engine/gameManager/CombatManager.java index c905c825..1040b032 100644 --- a/src/engine/gameManager/CombatManager.java +++ b/src/engine/gameManager/CombatManager.java @@ -327,7 +327,7 @@ public enum CombatManager { if (timers != null) { AttackJob aj = new AttackJob(attacker, slot.ordinal(), true); JobContainer job; - job = JobScheduler.getInstance().scheduleJob(aj, (delay + 1)); // offset 1 millisecond so no overlap issue + job = JobScheduler.getInstance().scheduleJob(aj, (System.currentTimeMillis() + delay + 1)); // offset 1 millisecond so no overlap issue timers.put("Attack" + slot, job); } else Logger.error("Unable to find Timers for Character " + attacker.getObjectUUID());