I made a spell that makes polymorph permanent and it replaces the unit sheep with a normal critter that is under the control of the neutral player.
The problem is that when I test it out, the unit gets replaced by the critter, but it stays under the control of the enemy player and for some reason it's a flying sheep even though I specified that ground units should be normal sheep.