Browse Source

teleport to mines

lakebane-mine-tele
FatBoy-DOTC 3 months ago
parent
commit
a6d3c827ad
  1. 6
      src/engine/objects/Mine.java

6
src/engine/objects/Mine.java

@ -322,8 +322,10 @@ public class Mine extends AbstractGameObject { @@ -322,8 +322,10 @@ public class Mine extends AbstractGameObject {
public static ArrayList<Mine> getMinesToTeleportTo(PlayerCharacter player) {
ArrayList<Mine> mines = new ArrayList<>();
for(Mine mine : Mine.getMines())
if(mine.getOwningGuild() != null && mine.getOwningGuild().getNation().equals(player.getGuild().getNation()))
mines.add(mine);
if(!mine.isActive)
if(mine.getOwningGuild() != null)
if(mine.getOwningGuild().getNation().equals(player.getGuild().getNation()))
mines.add(mine);
return mines;
}

Loading…
Cancel
Save