Yellow polyps (parazoanthus sp.) are incapable of harming a small damsel or any other type of fish via stinging. Perhaps what you saw was something completely different?
Most corals pose little harm to fish, though there are indeed some corals capable of consuming fish.
Most corals pose little harm to fish, though there are indeed some corals capable of consuming fish.