Browse Source

teleport to mines

lakebane-mine-tele
FatBoy-DOTC 2 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 {
public static ArrayList<Mine> getMinesToTeleportTo(PlayerCharacter player) { public static ArrayList<Mine> getMinesToTeleportTo(PlayerCharacter player) {
ArrayList<Mine> mines = new ArrayList<>(); ArrayList<Mine> mines = new ArrayList<>();
for(Mine mine : Mine.getMines()) for(Mine mine : Mine.getMines())
if(mine.getOwningGuild() != null && mine.getOwningGuild().getNation().equals(player.getGuild().getNation())) if(!mine.isActive)
mines.add(mine); if(mine.getOwningGuild() != null)
if(mine.getOwningGuild().getNation().equals(player.getGuild().getNation()))
mines.add(mine);
return mines; return mines;
} }

Loading…
Cancel
Save