Units added via script do not disappear upon destruction or capture of an enemy core, but change their affiliation.
Here is my map, Too close. There Underlord 1 gets a batch of new units (for example, the Firelord, Lucius, all types of titans) when a brimstone tile is destroyed. I destroyed his core. Either immediately after the destruction, or after the capture, the surviving (why didn't they disappear with the destruction of the core?) these units added via script from the enemy became mine.
Game Version:
Steam Public
Platform:
Windows