@Override
 protected int getCond(Player player) {
   Residence residence = getResidence();
   Clan residenceOwner = residence.getOwner();
   if (residenceOwner != null && player.getClan() == residenceOwner) {
     return COND_OWNER;
   } else {
     return COND_FAIL;
   }
 }
 private boolean validateCondition(Player player) {
   Residence residence = getCastle();
   if (residence != null && residence.getId() > 0)
     if (player.getClan() != null)
       if (residence.getOwnerId() == player.getClanId() && player.isClanLeader()) // Leader of clan
       return true; // Owner
   residence = getFortress();
   if (residence != null && residence.getId() > 0)
     if (player.getClan() != null)
       if (residence.getOwnerId() == player.getClanId() && player.isClanLeader()) // Leader of clan
       return true; // Owner
   residence = getClanHall();
   if (residence != null && residence.getId() > 0)
     if (player.getClan() != null)
       if (residence.getOwnerId() == player.getClanId() && player.isClanLeader()) // Leader of clan
       return true; // Owner
   return false;
 }