name: DNA
card_text: Activate by declaring 1 monster Attribute. All face-up monsters become that Attribute.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	--Activate
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_ACTIVATE)
  	e1:SetCode(EVENT_FREE_CHAIN)
  	e1:SetHintTiming(0, 0x1c1)
  	e1:SetTarget(s.target)
  	c:RegisterEffect(e1)
  	--race
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_FIELD)
  	e2:SetRange(LOCATION_SZONE)
  	e2:SetTargetRange(LOCATION_MZONE, LOCATION_MZONE)
  	e2:SetCode(EFFECT_CHANGE_ATTRIBUTE)
  	e2:SetValue(s.value)
  	c:RegisterEffect(e2)
  	e1:SetLabelObject(e2)
  end
  function s.target(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return true
  	end
  	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_ATTRIBUTE)
  	local rc = Duel.AnnounceAttribute(tp, 1, ATTRIBUTE_ALL)
  	e:GetLabelObject():SetLabel(rc)
  	e:GetHandler():SetHint(CHINT_ATTRIBUTE, rc)
  end
  function s.value(e, c)
  	return e:GetLabel()
  end
  
  
source_text: DNA
  Activate by declaring 1 monster Attribute. All face-up monsters become that Attribute.
target_text: -- DNA
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--Activate
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_ACTIVATE)
  	e1:SetCode(EVENT_FREE_CHAIN)
  	e1:SetHintTiming(0, 0x1c1)
  	e1:SetTarget(s.target)
  	c:RegisterEffect(e1)
  	--race
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_FIELD)
  	e2:SetRange(LOCATION_SZONE)
  	e2:SetTargetRange(LOCATION_MZONE, LOCATION_MZONE)
  	e2:SetCode(EFFECT_CHANGE_ATTRIBUTE)
  	e2:SetValue(s.value)
  	c:RegisterEffect(e2)
  	e1:SetLabelObject(e2)
  end
  function s.target(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return true
  	end
  	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_ATTRIBUTE)
  	local rc = Duel.AnnounceAttribute(tp, 1, ATTRIBUTE_ALL)
  	e:GetLabelObject():SetLabel(rc)
  	e:GetHandler():SetHint(CHINT_ATTRIBUTE, rc)
  end
  function s.value(e, c)
  	return e:GetLabel()
  end
  
  