name: Patchwork
card_text: This card is also treated as a "Frightfur" monster while face-up on the field. This card on the field can be used as a substitute for any 1 Fusion Material whose name is specifically listed on a "Frightfur" Fusion Monster, but the other Fusion Material(s) must be correct.
external_ids: local SETCARD_ID_0 = 0xad --Frightfur
  
lua: local SETCARD_ID_0 = 0xad --Frightfur
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--setcode
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_SINGLE)
  	e1:SetCode(EFFECT_ADD_SETCODE)
  	e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetValue(0xad)
  	c:RegisterEffect(e1)
  	--fusion substitute
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_SINGLE)
  	e2:SetCode(EFFECT_FUSION_SUBSTITUTE)
  	e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
  	e2:SetRange(LOCATION_MZONE)
  	e2:SetValue(s.subval)
  	c:RegisterEffect(e2)
  end
  function s.subval(e, c)
  	return c:IsSetCard(SETCARD_ID_0)
  end
  
  
source_text: Patchwork
  This card is also treated as a "Frightfur" monster while face-up on the field. This card on the field can be used as a substitute for any 1 Fusion Material whose name is specifically listed on a "Frightfur" Fusion Monster, but the other Fusion Material(s) must be correct.
target_text: -- Patchwork
  local SETCARD_ID_0 = 0xad --Frightfur
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--setcode
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_SINGLE)
  	e1:SetCode(EFFECT_ADD_SETCODE)
  	e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetValue(0xad)
  	c:RegisterEffect(e1)
  	--fusion substitute
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_SINGLE)
  	e2:SetCode(EFFECT_FUSION_SUBSTITUTE)
  	e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
  	e2:SetRange(LOCATION_MZONE)
  	e2:SetValue(s.subval)
  	c:RegisterEffect(e2)
  end
  function s.subval(e, c)
  	return c:IsSetCard(SETCARD_ID_0)
  end
  
  