Require ressources to rebuid wall after attack
The wall can rebuild itself directly after the attack. This should cost ressources. It would be an incentive to hoard ressources, in turn making attacking more interesting.
The cost of rebuilding should be less than building the wall in the first place, maybe 50%?