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,13 +749,19 @@ public class Mine extends AbstractGameObject {
ChatManager.chatSystemInfo(player,"Left Mine, Multiplier: " + player.ZergMultiplier); ChatManager.chatSystemInfo(player,"Left Mine, Multiplier: " + player.ZergMultiplier);
} }
} }
if(purge.size() > 0) { if(purge.size() > 0) {
this._playerMemory.removeAll(purge); //this._playerMemory.removeAll(purge);
return true; for(int id : purge){
} else{ if(this._recentMemory.containsKey(id) == false) {
return 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) { private Boolean onExitZerg(HashSet<AbstractWorldObject> currentPlayers) {
PlayerCharacter player; PlayerCharacter player;

Loading…
Cancel
Save