|
|
|
@ -640,19 +640,12 @@ public class City extends AbstractWorldObject {
@@ -640,19 +640,12 @@ public class City extends AbstractWorldObject {
|
|
|
|
|
public Guild getGuild() { |
|
|
|
|
|
|
|
|
|
if (this.getTOL() == null) |
|
|
|
|
return null; |
|
|
|
|
|
|
|
|
|
if (this.isNpc == 1) { |
|
|
|
|
return Guild.getErrantGuild(); |
|
|
|
|
|
|
|
|
|
if (this.getTOL().getOwner() == null) |
|
|
|
|
return null; |
|
|
|
|
return this.getTOL().getOwner().getGuild(); |
|
|
|
|
} else { |
|
|
|
|
if (this.getTOL().getOwner() == null) |
|
|
|
|
return Guild.getErrantGuild(); |
|
|
|
|
|
|
|
|
|
if (this.getTOL().getOwner() == null) |
|
|
|
|
return null; |
|
|
|
|
return this.getTOL().getOwner().getGuild(); |
|
|
|
|
} |
|
|
|
|
return this.getTOL().getOwner().getGuild(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public boolean openCity(boolean open) { |
|
|
|
|