|
|
|
@ -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; |
|
|
|
|