name: The
card_text: Pay 1000 Life Points. Negate the Summon of a monster that has the same Type as a monster on the field, and destroy it.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	--Activate
  	local e1 = Effect.CreateEffect(c)
  	e1:SetCategory(CATEGORY_DISABLE_SUMMON + CATEGORY_DESTROY)
  	e1:SetType(EFFECT_TYPE_ACTIVATE)
  	e1:SetCode(EVENT_SUMMON)
  	e1:SetCondition(s.condition)
  	e1:SetCost(s.cost)
  	e1:SetTarget(s.target)
  	e1:SetOperation(s.activate)
  	c:RegisterEffect(e1)
  	local e2 = e1:Clone()
  	e2:SetCode(EVENT_FLIP_SUMMON)
  	c:RegisterEffect(e2)
  	local e3 = e1:Clone()
  	e3:SetCode(EVENT_SPSUMMON)
  	c:RegisterEffect(e3)
  end
  function s.cfilter(c, rc)
  	return c:IsFaceup() and c:IsRace(rc)
  end
  function s.filter(c)
  	return Duel.IsExistingMatchingCard(s.cfilter, 0, LOCATION_MZONE, LOCATION_MZONE, 1, c, c:GetRace())
  end
  function s.condition(e, tp, eg, ep, ev, re, r, rp)
  	return aux.NegateSummonCondition() and eg:IsExists(s.filter, 1, nil)
  end
  function s.cost(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return Duel.CheckLPCost(tp, 1000)
  	end
  	Duel.PayLPCost(tp, 1000)
  end
  function s.target(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return true
  	end
  	local g = eg:Filter(s.filter, nil)
  	Duel.SetOperationInfo(0, CATEGORY_DISABLE_SUMMON, g, g:GetCount(), 0, 0)
  	Duel.SetOperationInfo(0, CATEGORY_DESTROY, g, g:GetCount(), 0, 0)
  end
  function s.activate(e, tp, eg, ep, ev, re, r, rp)
  	local g = eg:Filter(s.filter, nil)
  	Duel.NegateSummon(g)
  	Duel.Destroy(g, REASON_EFFECT)
  end
  
  
source_text: The
  Pay 1000 Life Points. Negate the Summon of a monster that has the same Type as a monster on the field, and destroy it.
target_text: -- The
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--Activate
  	local e1 = Effect.CreateEffect(c)
  	e1:SetCategory(CATEGORY_DISABLE_SUMMON + CATEGORY_DESTROY)
  	e1:SetType(EFFECT_TYPE_ACTIVATE)
  	e1:SetCode(EVENT_SUMMON)
  	e1:SetCondition(s.condition)
  	e1:SetCost(s.cost)
  	e1:SetTarget(s.target)
  	e1:SetOperation(s.activate)
  	c:RegisterEffect(e1)
  	local e2 = e1:Clone()
  	e2:SetCode(EVENT_FLIP_SUMMON)
  	c:RegisterEffect(e2)
  	local e3 = e1:Clone()
  	e3:SetCode(EVENT_SPSUMMON)
  	c:RegisterEffect(e3)
  end
  function s.cfilter(c, rc)
  	return c:IsFaceup() and c:IsRace(rc)
  end
  function s.filter(c)
  	return Duel.IsExistingMatchingCard(s.cfilter, 0, LOCATION_MZONE, LOCATION_MZONE, 1, c, c:GetRace())
  end
  function s.condition(e, tp, eg, ep, ev, re, r, rp)
  	return aux.NegateSummonCondition() and eg:IsExists(s.filter, 1, nil)
  end
  function s.cost(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return Duel.CheckLPCost(tp, 1000)
  	end
  	Duel.PayLPCost(tp, 1000)
  end
  function s.target(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return true
  	end
  	local g = eg:Filter(s.filter, nil)
  	Duel.SetOperationInfo(0, CATEGORY_DISABLE_SUMMON, g, g:GetCount(), 0, 0)
  	Duel.SetOperationInfo(0, CATEGORY_DESTROY, g, g:GetCount(), 0, 0)
  end
  function s.activate(e, tp, eg, ep, ev, re, r, rp)
  	local g = eg:Filter(s.filter, nil)
  	Duel.NegateSummon(g)
  	Duel.Destroy(g, REASON_EFFECT)
  end
  
  