I use a ability called ''Soul Preservation'' to remove unit from the game, and use trigger to add each unit removed form the game to an unit group, and then use another ability and trigger to summon all units in the unit group.
The idea actully works, but there is something wrong in the trigger, sometimes I use the Soul Preservation to remove unit in the game, it will add the unit to the unit group, but sometimes not, sometime it minus 1 member of the unit group, sometimes it clear all units in the unit group except the last unit.
Anyone know how to fix it? Thanks!

The idea actully works, but there is something wrong in the trigger, sometimes I use the Soul Preservation to remove unit in the game, it will add the unit to the unit group, but sometimes not, sometime it minus 1 member of the unit group, sometimes it clear all units in the unit group except the last unit.
Anyone know how to fix it? Thanks!