I think I've encountered this problem myself, don't remember how I solved it though. You could try making a trigger that adds the abilities to the hero when it switches back into it's regular form, but an easier way would be to simply base the skill on metamorphosis if that is possible, because then the hero will not lose the skills at all.