Prank-Kids
1 Level 4 or lower "Prank-Kids" monster
You can only Link Summon "Prank-Kids Meow-Meow-Mu" once per turn. If a "Prank-Kids" monster you control would Tribute itself to activate its effect during your opponent's turn, you can banish this card you control or from your GY instead. You can only use this effect of "Prank-Kids Meow-Meow-Mu" once per turn.
local SETCARD_ID_0 = 0x120 --Prank-Kids

local SETCARD_ID_0 = 0x120 --Prank-Kids
local s, id, o = GetID()
function s.initial_effect(c)
	--link summon
	aux.AddLinkProcedure(c, s.mfilter, 1, 1)
	c:EnableReviveLimit()
	--splimit
	local e1 = Effect.CreateEffect(c)
	e1:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_CONTINUOUS)
	e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
	e1:SetCode(EVENT_SPSUMMON_SUCCESS)
	e1:SetCondition(s.regcon)
	e1:SetOperation(s.regop)
	c:RegisterEffect(e1)
	--release replace
	local e2 = Effect.CreateEffect(c)
	e2:SetType(EFFECT_TYPE_SINGLE)
	e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
	e2:SetCode(id)
	e2:SetRange(LOCATION_MZONE + LOCATION_GRAVE)
	e2:SetCountLimit(1, id)
	e2:SetCondition(s.repcon)
	c:RegisterEffect(e2)
end
function s.mfilter(c)
	return c:IsLevelBelow(4) and c:IsLinkSetCard(SETCARD_ID_0)
end
function s.regcon(e, tp, eg, ep, ev, re, r, rp)
	return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK)
end
function s.regop(e, tp, eg, ep, ev, re, r, rp)
	local e1 = Effect.CreateEffect(e:GetHandler())
	e1:SetType(EFFECT_TYPE_FIELD)
	e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
	e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
	e1:SetTargetRange(1, 0)
	e1:SetReset(RESET_PHASE + PHASE_END)
	e1:SetTarget(s.splimit)
	Duel.RegisterEffect(e1, tp)
end
function s.splimit(e, c, sump, sumtype, sumpos, targetp, se)
	return c:IsCode(id) and bit.band(sumtype, SUMMON_TYPE_LINK) == SUMMON_TYPE_LINK
end
function s.repcon(e)
	return Duel.GetTurnPlayer() == 1 - e:GetHandlerPlayer()
end


Prank-Kids
1 Level 4 or lower "Prank-Kids" monster
You can only Link Summon "Prank-Kids Meow-Meow-Mu" once per turn. If a "Prank-Kids" monster you control would Tribute itself to activate its effect during your opponent's turn, you can banish this card you control or from your GY instead. You can only use this effect of "Prank-Kids Meow-Meow-Mu" once per turn.
-- Prank-Kids
local SETCARD_ID_0 = 0x120 --Prank-Kids
local s, id, o = GetID()
function s.initial_effect(c)
	--link summon
	aux.AddLinkProcedure(c, s.mfilter, 1, 1)
	c:EnableReviveLimit()
	--splimit
	local e1 = Effect.CreateEffect(c)
	e1:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_CONTINUOUS)
	e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
	e1:SetCode(EVENT_SPSUMMON_SUCCESS)
	e1:SetCondition(s.regcon)
	e1:SetOperation(s.regop)
	c:RegisterEffect(e1)
	--release replace
	local e2 = Effect.CreateEffect(c)
	e2:SetType(EFFECT_TYPE_SINGLE)
	e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
	e2:SetCode(id)
	e2:SetRange(LOCATION_MZONE + LOCATION_GRAVE)
	e2:SetCountLimit(1, id)
	e2:SetCondition(s.repcon)
	c:RegisterEffect(e2)
end
function s.mfilter(c)
	return c:IsLevelBelow(4) and c:IsLinkSetCard(SETCARD_ID_0)
end
function s.regcon(e, tp, eg, ep, ev, re, r, rp)
	return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK)
end
function s.regop(e, tp, eg, ep, ev, re, r, rp)
	local e1 = Effect.CreateEffect(e:GetHandler())
	e1:SetType(EFFECT_TYPE_FIELD)
	e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
	e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
	e1:SetTargetRange(1, 0)
	e1:SetReset(RESET_PHASE + PHASE_END)
	e1:SetTarget(s.splimit)
	Duel.RegisterEffect(e1, tp)
end
function s.splimit(e, c, sump, sumtype, sumpos, targetp, se)
	return c:IsCode(id) and bit.band(sumtype, SUMMON_TYPE_LINK) == SUMMON_TYPE_LINK
end
function s.repcon(e)
	return Duel.GetTurnPlayer() == 1 - e:GetHandlerPlayer()
end

