reparing now automaticly end if building is on full hp