Browse Source

combat bug fix

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
1fe3f7dfb1
  1. 5
      src/engine/objects/Mine.java

5
src/engine/objects/Mine.java

@ -762,8 +762,10 @@ public class Mine extends AbstractGameObject {
toRemove.add(playerUUID); toRemove.add(playerUUID);
if(_recentMemory.containsKey(playerUUID) == false) { if(_recentMemory.containsKey(playerUUID) == false) {
_recentMemory.put(playerUUID, System.currentTimeMillis()); _recentMemory.put(playerUUID, System.currentTimeMillis());
PlayerCharacter.getPlayerCharacter(playerUUID).mineAppliedID = 0;
PlayerCharacter.getPlayerCharacter(playerUUID).ZergMultiplier = 1.0f;
} }
player.ZergMultiplier = 1.0f; // reset damage modifier to 1.0 //player.ZergMultiplier = 1.0f; // reset damage modifier to 1.0
} }
// Remove players from mine memory // Remove players from mine memory
@ -776,7 +778,6 @@ public class Mine extends AbstractGameObject {
} }
} }
for(Integer id : purge){ for(Integer id : purge){
PlayerCharacter.getPlayerCharacter(id).mineAppliedID = 0;
_recentMemory.remove(id); _recentMemory.remove(id);
} }
if(toRemove.isEmpty()){ if(toRemove.isEmpty()){

Loading…
Cancel
Save