Raise dead and charm bug?

Hi, I got a subscription for my birthday and bought the Pugicorn. I noticed when I cast raise dead on a unit that has spells, like let’s say a shaman, it wouldn’t cast spells. Also when I cast raise dead on an enemy warlock, it would only attack enemies, and wouldn’t summon skeletons or raise dead for me. When I raise a witch, she won’t heal at all and only attacks the enemies. Same thing happens when I make my pugicorn charm an enemy.

My guess is the Raise dead and charms’ code are only programmed to make the entity attack not cast spells or anything.