From 90feaea89e70d5016984dcf15b3d1d8e8145340a Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 2 Mar 2024 15:50:44 -0600 Subject: [PATCH] combat bug fix --- src/engine/objects/Mine.java | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/engine/objects/Mine.java b/src/engine/objects/Mine.java index 38c63b1c..f5d730e0 100644 --- a/src/engine/objects/Mine.java +++ b/src/engine/objects/Mine.java @@ -749,12 +749,18 @@ public class Mine extends AbstractGameObject { ChatManager.chatSystemInfo(player,"Left Mine, Multiplier: " + player.ZergMultiplier); } } + if(purge.size() > 0) { - this._playerMemory.removeAll(purge); - return true; - } else{ - return false; + //this._playerMemory.removeAll(purge); + for(int id : purge){ + if(this._recentMemory.containsKey(id) == false) { + this._recentMemory.put(id, System.currentTimeMillis() + 60000); + } else if(this._recentMemory.get(id) > System.currentTimeMillis()){ + this._playerMemory.remove(id); + } + } } + return true; } private Boolean onExitZerg(HashSet currentPlayers) {