I wast trying to make it with triggers... with orders/ casting abilities and than add classification of undead... but it didnt work, add classification to the unit in object editor, or try to make a trigger that pick all units at the start of the game and add them undead classification.