Property which has been given by an intestate decedent by way of an advancement to one to whom the decedent's property, or a part of it, would pass by intestate succession, shall be counted as a part of the distributive share of such property to such person, and to that extent shall be taken into account in determining the estate to be distributed among those to whom it passes by intestate succession, but if such advancement exceeds the amount to which such person would be entitled by the laws of intestate succession the person shall not be required to refund any portion of the advancement. If such person receiving an advancement dies before the decedent, leaving heirs who take from the decedent, the advancement shall be allowed in like manner as if it had been made directly to them.
K.S.A. 59-510