Rare doesn't always mean valuable.
What is the bike/frame you are considering?
Photos of the bike/frame, and the damage?
Also once repaired, and painted, it will remain as a repaired/painted frame that will naturally decrease its value.
I might consider the repair on something very special like a super-rare funny bike. But, probably not on most other frames... other than attempting a home repair.