Steelswarm
2 Level 4 monsters
During either player's turn, when a Level 5 or higher monster would be Special Summoned: You can detach 1 Xyz Material from this card; negate the Special Summon, and if you do, destroy it.
local s, id, o = GetID()
function s.initial_effect(c)
	--xyz summon
	aux.AddXyzProcedure(c, nil, 4, 2)
	c:EnableReviveLimit()
	--disable spsummon
	local e1 = Effect.CreateEffect(c)
	e1:SetCategory(CATEGORY_DISABLE_SUMMON + CATEGORY_DESTROY)
	e1:SetDescription(aux.Stringid(id, 0))
	e1:SetType(EFFECT_TYPE_QUICK_O)
	e1:SetRange(LOCATION_MZONE)
	e1:SetCode(EVENT_SPSUMMON)
	e1:SetCondition(s.condition)
	e1:SetCost(s.cost)
	e1:SetTarget(s.target)
	e1:SetOperation(s.operation)
	c:RegisterEffect(e1)
end
function s.filter(c)
	return c:IsLevelAbove(5)
end
function s.condition(e, tp, eg, ep, ev, re, r, rp)
	return Duel.GetCurrentChain() == 0 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 e:GetHandler():CheckRemoveOverlayCard(tp, 1, REASON_COST)
	end
	e:GetHandler():RemoveOverlayCard(tp, 1, 1, REASON_COST)
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.operation(e, tp, eg, ep, ev, re, r, rp)
	local g = eg:Filter(s.filter, nil)
	Duel.NegateSummon(g)
	Duel.Destroy(g, REASON_EFFECT)
end


Steelswarm
2 Level 4 monsters
During either player's turn, when a Level 5 or higher monster would be Special Summoned: You can detach 1 Xyz Material from this card; negate the Special Summon, and if you do, destroy it.
-- Steelswarm
local s, id, o = GetID()
function s.initial_effect(c)
	--xyz summon
	aux.AddXyzProcedure(c, nil, 4, 2)
	c:EnableReviveLimit()
	--disable spsummon
	local e1 = Effect.CreateEffect(c)
	e1:SetCategory(CATEGORY_DISABLE_SUMMON + CATEGORY_DESTROY)
	e1:SetDescription(aux.Stringid(id, 0))
	e1:SetType(EFFECT_TYPE_QUICK_O)
	e1:SetRange(LOCATION_MZONE)
	e1:SetCode(EVENT_SPSUMMON)
	e1:SetCondition(s.condition)
	e1:SetCost(s.cost)
	e1:SetTarget(s.target)
	e1:SetOperation(s.operation)
	c:RegisterEffect(e1)
end
function s.filter(c)
	return c:IsLevelAbove(5)
end
function s.condition(e, tp, eg, ep, ev, re, r, rp)
	return Duel.GetCurrentChain() == 0 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 e:GetHandler():CheckRemoveOverlayCard(tp, 1, REASON_COST)
	end
	e:GetHandler():RemoveOverlayCard(tp, 1, 1, REASON_COST)
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.operation(e, tp, eg, ep, ev, re, r, rp)
	local g = eg:Filter(s.filter, nil)
	Duel.NegateSummon(g)
	Duel.Destroy(g, REASON_EFFECT)
end

