What I expected to happen was...:
I expected the dragon to lose health and not regain it.
What actually happened was...:
there was visual glitch of the beams from the cyrstals to the dragon even though they were broken and the when that happened the dragon regained health.
Steps to Reproduce:
1. I killed the dragon the first time.
2. then I went back to my spawn to restock
3. then respawned the dragon.
4. I broke all the crystals.
5. then started killing the dragon.
6. the visual glitches happened and the dragon regained health.
7. opened my game to lan to see if all the crystals were broken (they were).
8. went back to survival. closed the game to get out of lan.
9. opened the world back up and the regeneration stopped. but visual glitches persisted.
10. I killed the dragon
Linked issues
Comments

Thank you for your report!
We're tracking this issue in MC-105080, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! Please report any issues on Discord or Reddit