Browse Source

Resetting tracking variables when a mine tower is destroyed.

master
MagicBot 2 years ago
parent
commit
d425050387
  1. 4
      src/engine/objects/Mine.java

4
src/engine/objects/Mine.java

@ -450,8 +450,6 @@ public class Mine extends AbstractGameObject {
return true; return true;
} }
public void handleDestroyMine() { public void handleDestroyMine() {
if (!this.isActive) if (!this.isActive)
@ -463,6 +461,8 @@ public class Mine extends AbstractGameObject {
this.nationName = ""; this.nationName = "";
this.owningGuild = Guild.getErrantGuild(); this.owningGuild = Guild.getErrantGuild();
Mine.setLastChange(System.currentTimeMillis()); Mine.setLastChange(System.currentTimeMillis());
this.lastClaimer = null;
this.wasClaimed = false;
// Update database // Update database

Loading…
Cancel
Save