name: ダブルトラップ
card_text: フィールド上に表側表示で存在する、「罠の効果を無効にする効果」を持つカード1枚を破壊する。
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	--Activate
  	local e1 = Effect.CreateEffect(c)
  	e1:SetCategory(CATEGORY_DESTROY)
  	e1:SetType(EFFECT_TYPE_ACTIVATE)
  	e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
  	e1:SetCode(EVENT_FREE_CHAIN)
  	e1:SetTarget(s.target)
  	e1:SetOperation(s.activate)
  	c:RegisterEffect(e1)
  end
  s.collection = {
  	[40867519] = true,
  	[67750322] = true,
  	[73551138] = true,
  	[01953925] = true,
  	[65403020] = true,
  	[77585513] = true,
  	[35803249] = true,
  	[94568601] = true,
  	[74841885] = true,
  	[66235877] = true,
  	[19312169] = true,
  	[51452091] = true,
  	[92408984] = true,
  	[62892347] = true,
  	[42868711] = true,
  	[90464188] = true,
  	[03370104] = true,
  	[88989706] = true,
  	[20529766] = true,
  	[53347303] = true,
  	[06150044] = true,
  	[49868263] = true,
  	[51447164] = true,
  	[44155002] = true,
  	[74593218] = true,
  }
  function s.filter(c)
  	return c:IsFaceup() and s.collection[c:GetCode()]
  end
  function s.target(e, tp, eg, ep, ev, re, r, rp, chk, chkc)
  	if chkc then
  		return chkc:IsOnField() and s.filter(chkc)
  	end
  	if chk == 0 then
  		return Duel.IsExistingTarget(s.filter, tp, LOCATION_ONFIELD, LOCATION_ONFIELD, 1, e:GetHandler())
  	end
  	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_DESTROY)
  	local g = Duel.SelectTarget(tp, s.filter, tp, LOCATION_ONFIELD, LOCATION_ONFIELD, 1, 1, e:GetHandler())
  	Duel.SetOperationInfo(0, CATEGORY_DESTROY, g, 1, 0, 0)
  end
  function s.activate(e, tp, eg, ep, ev, re, r, rp)
  	local tc = Duel.GetFirstTarget()
  	if tc:IsFaceup() and tc:IsRelateToEffect(e) then
  		Duel.Destroy(tc, REASON_EFFECT)
  	end
  end
  
  
source_text: ダブルトラップ
  フィールド上に表側表示で存在する、「罠の効果を無効にする効果」を持つカード1枚を破壊する。
target_text: -- ダブルトラップ
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--Activate
  	local e1 = Effect.CreateEffect(c)
  	e1:SetCategory(CATEGORY_DESTROY)
  	e1:SetType(EFFECT_TYPE_ACTIVATE)
  	e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
  	e1:SetCode(EVENT_FREE_CHAIN)
  	e1:SetTarget(s.target)
  	e1:SetOperation(s.activate)
  	c:RegisterEffect(e1)
  end
  s.collection = {
  	[40867519] = true,
  	[67750322] = true,
  	[73551138] = true,
  	[01953925] = true,
  	[65403020] = true,
  	[77585513] = true,
  	[35803249] = true,
  	[94568601] = true,
  	[74841885] = true,
  	[66235877] = true,
  	[19312169] = true,
  	[51452091] = true,
  	[92408984] = true,
  	[62892347] = true,
  	[42868711] = true,
  	[90464188] = true,
  	[03370104] = true,
  	[88989706] = true,
  	[20529766] = true,
  	[53347303] = true,
  	[06150044] = true,
  	[49868263] = true,
  	[51447164] = true,
  	[44155002] = true,
  	[74593218] = true,
  }
  function s.filter(c)
  	return c:IsFaceup() and s.collection[c:GetCode()]
  end
  function s.target(e, tp, eg, ep, ev, re, r, rp, chk, chkc)
  	if chkc then
  		return chkc:IsOnField() and s.filter(chkc)
  	end
  	if chk == 0 then
  		return Duel.IsExistingTarget(s.filter, tp, LOCATION_ONFIELD, LOCATION_ONFIELD, 1, e:GetHandler())
  	end
  	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_DESTROY)
  	local g = Duel.SelectTarget(tp, s.filter, tp, LOCATION_ONFIELD, LOCATION_ONFIELD, 1, 1, e:GetHandler())
  	Duel.SetOperationInfo(0, CATEGORY_DESTROY, g, 1, 0, 0)
  end
  function s.activate(e, tp, eg, ep, ev, re, r, rp)
  	local tc = Duel.GetFirstTarget()
  	if tc:IsFaceup() and tc:IsRelateToEffect(e) then
  		Duel.Destroy(tc, REASON_EFFECT)
  	end
  end
  
  