Unit Sets are only working with player, party, raid, arena and boss unit.
It is not working for targettarget unit.
You should use the variable "Var Isdeath ?" Inside the IDE
It is normal that it works in the IDE preview design, by default the preview design use the player unit.
Cheers