name: Fake
card_text: Send 1 "Blackwing" monster from your hand to the Graveyard and select 1 Normal Trap Card in your opponent's Graveyard. The effect of this card will be same as the selected Normal Trap Card.
external_ids: local CARD_ID_0 = 6351147 --Transaction Rollback
  local CARD_ID_1 = 79766336 --Trap of Darkness
  local SETCARD_ID_0 = 0x33 --Blackwing
  
lua: local CARD_ID_0 = 6351147 --Transaction Rollback
  local CARD_ID_1 = 79766336 --Trap of Darkness
  local SETCARD_ID_0 = 0x33 --Blackwing
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--copy trap
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_ACTIVATE)
  	e1:SetCode(EVENT_FREE_CHAIN)
  	e1:SetHintTiming(0x1e1, 0x1e1)
  	e1:SetCost(s.cost)
  	e1:SetTarget(s.target)
  	e1:SetOperation(s.operation)
  	c:RegisterEffect(e1)
  end
  function s.cfilter(c)
  	return c:IsSetCard(SETCARD_ID_0) and c:IsType(TYPE_MONSTER) and c:IsAbleToGraveAsCost()
  end
  function s.cost(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return Duel.IsExistingMatchingCard(s.cfilter, tp, LOCATION_HAND, 0, 1, nil)
  	end
  	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_TOGRAVE)
  	local g = Duel.SelectMatchingCard(tp, s.cfilter, tp, LOCATION_HAND, 0, 1, 1, nil)
  	Duel.SendtoGrave(g, REASON_COST)
  end
  function s.filter(c)
  	return c:GetType() == 0x4 and not c:IsCode(id, CARD_ID_1, CARD_ID_0) and c:CheckActivateEffect(false, true, false) ~= nil
  end
  function s.target(e, tp, eg, ep, ev, re, r, rp, chk, chkc)
  	if chkc then
  		local te = e:GetLabelObject()
  		local tg = te:GetTarget()
  		return tg and tg(e, tp, eg, ep, ev, re, r, rp, 1, true)
  	end
  	if chk == 0 then
  		return Duel.IsExistingTarget(s.filter, tp, 0, LOCATION_GRAVE, 1, nil)
  	end
  	e:SetProperty(EFFECT_FLAG_CARD_TARGET)
  	Duel.Hint(HINT_SELECTMSG, tp, aux.Stringid(id, 0))
  	local g = Duel.SelectTarget(tp, s.filter, tp, 0, LOCATION_GRAVE, 1, 1, nil)
  	if not g then
  		return false
  	end
  	local te, eg, ep, ev, re, r, rp = g:GetFirst():CheckActivateEffect(false, true, true)
  	e:SetLabelObject(te)
  	Duel.ClearTargetCard()
  	local tg = te:GetTarget()
  	e:SetProperty(te:GetProperty())
  	if tg then
  		tg(e, tp, eg, ep, ev, re, r, rp, 1)
  	end
  	Duel.ClearOperationInfo(0)
  end
  function s.operation(e, tp, eg, ep, ev, re, r, rp)
  	local te = e:GetLabelObject()
  	if not te then
  		return
  	end
  	local op = te:GetOperation()
  	if op then
  		op(e, tp, eg, ep, ev, re, r, rp)
  	end
  end
  
  
source_text: Fake
  Send 1 "Blackwing" monster from your hand to the Graveyard and select 1 Normal Trap Card in your opponent's Graveyard. The effect of this card will be same as the selected Normal Trap Card.
target_text: -- Fake
  local CARD_ID_0 = 6351147 --Transaction Rollback
  local CARD_ID_1 = 79766336 --Trap of Darkness
  local SETCARD_ID_0 = 0x33 --Blackwing
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--copy trap
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_ACTIVATE)
  	e1:SetCode(EVENT_FREE_CHAIN)
  	e1:SetHintTiming(0x1e1, 0x1e1)
  	e1:SetCost(s.cost)
  	e1:SetTarget(s.target)
  	e1:SetOperation(s.operation)
  	c:RegisterEffect(e1)
  end
  function s.cfilter(c)
  	return c:IsSetCard(SETCARD_ID_0) and c:IsType(TYPE_MONSTER) and c:IsAbleToGraveAsCost()
  end
  function s.cost(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return Duel.IsExistingMatchingCard(s.cfilter, tp, LOCATION_HAND, 0, 1, nil)
  	end
  	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_TOGRAVE)
  	local g = Duel.SelectMatchingCard(tp, s.cfilter, tp, LOCATION_HAND, 0, 1, 1, nil)
  	Duel.SendtoGrave(g, REASON_COST)
  end
  function s.filter(c)
  	return c:GetType() == 0x4 and not c:IsCode(id, CARD_ID_1, CARD_ID_0) and c:CheckActivateEffect(false, true, false) ~= nil
  end
  function s.target(e, tp, eg, ep, ev, re, r, rp, chk, chkc)
  	if chkc then
  		local te = e:GetLabelObject()
  		local tg = te:GetTarget()
  		return tg and tg(e, tp, eg, ep, ev, re, r, rp, 1, true)
  	end
  	if chk == 0 then
  		return Duel.IsExistingTarget(s.filter, tp, 0, LOCATION_GRAVE, 1, nil)
  	end
  	e:SetProperty(EFFECT_FLAG_CARD_TARGET)
  	Duel.Hint(HINT_SELECTMSG, tp, aux.Stringid(id, 0))
  	local g = Duel.SelectTarget(tp, s.filter, tp, 0, LOCATION_GRAVE, 1, 1, nil)
  	if not g then
  		return false
  	end
  	local te, eg, ep, ev, re, r, rp = g:GetFirst():CheckActivateEffect(false, true, true)
  	e:SetLabelObject(te)
  	Duel.ClearTargetCard()
  	local tg = te:GetTarget()
  	e:SetProperty(te:GetProperty())
  	if tg then
  		tg(e, tp, eg, ep, ev, re, r, rp, 1)
  	end
  	Duel.ClearOperationInfo(0)
  end
  function s.operation(e, tp, eg, ep, ev, re, r, rp)
  	local te = e:GetLabelObject()
  	if not te then
  		return
  	end
  	local op = te:GetOperation()
  	if op then
  		op(e, tp, eg, ep, ev, re, r, rp)
  	end
  end
  
  