Browse Source

teleport to mines

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

4
src/engine/objects/Mine.java

@ -322,7 +322,9 @@ public class Mine extends AbstractGameObject { @@ -322,7 +322,9 @@ 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()))
if(!mine.isActive)
if(mine.getOwningGuild() != null)
if(mine.getOwningGuild().getNation().equals(player.getGuild().getNation()))
mines.add(mine);
return mines;

Loading…
Cancel
Save