My first horse had the pain memory problem, she de-gloved her leg, it re-healed beatifully but limped for a while because she thought her leg would hurt. Eventually she figured it out, but was a complete nutcase and couldn't be ridden due to previous training issues.