The bug
Skeleton will be killed by the freezr damage of the /damage command, and will not be transformed.
Using the /damage with freeze type should not damage immune-freezing mobs.
Affected immune-freezing mobs:
Skeleton
Stray
Polar bear
Snow golem
Wither
Ender dragon
Reproduce steps
Summon a skeleton.
Use the /damage command:
/damage @e[type=minecraft:skeleton,limit=1] 30 minecraft:freeze at 88 65 1
It was found that they did not transform.
Expected to happen...
Skeleton freezing should be transformed into a stray.
Using the /damage with freeze type should not damage immune-freezing mobs.
Transforming is not related to freezing damage, it is related to time spent in powdered snow (7 seconds).
The issue here is that freezing-immune mobs can be damaged using /damage with freeze type.