Ultimatum auto targets terraform structures
http://i.imgur.com/rRZg9PT.png
I would require the replay or at least the infolog. The terraunit becoming visible to the enemy is likely an earlier lua error which stops the invisible state being applied.
Replay is here http://zero-k.info/Battles/Detail/338921
when approximately do this happen? (to wait for the replay) UPDATE 4/4/2015: its at 43:49 game second.
Possible cause:

UPDATE 5/4/2015: the decloak happen exactly at 38:18 game second (or 38:17 to be safe) which happen at the moment where "tomicaST gave unit to slowFox due to lag/AFK", and the owner of the terraform is indeed slowFox
Weird, no code in unit_terraform.lua set cloak/visibility status ? When I test them with a test code below, its just simply visible to enemy team!
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if not gadgetHandler:IsSyncedCode() then
return
end
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function gadget:GetInfo()
return {
name = "Issue #639 tester",
desc = "Create and Gives terraform unit for cloak test",
author = "!",
date = "0/0/0",
license = "_",
layer = 0,
enabled = true -- loaded by default?
}
end
local id = -1
function gadget:GameFrame(n)
if n == 20*30 then
local team = 1
local y = CallAsTeam(team, function () return Spring.GetGroundHeight(100,100) end)
id = Spring.CreateUnit((UnitDefNames["terraunit"].id), 100, y, 100, 0, team, true)
Spring.SetUnitHealth(id, 0.01)
Spring.SetUnitTooltip(id, "Estimated Cost: 100")
Spring.Echo("game_message: terraform created")
end
if n == 40*30 then
local given = true
local team = 2
Spring.TransferUnit(id, team, given)
Spring.Echo("game_message: terraform transfered")
end
end