Browse Source

combat bug fix

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
90feaea89e
  1. 14
      src/engine/objects/Mine.java

14
src/engine/objects/Mine.java

@ -749,12 +749,18 @@ public class Mine extends AbstractGameObject { @@ -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<AbstractWorldObject> currentPlayers) {

Loading…
Cancel
Save