Droll
If a card(s) is added from the Main Deck to your opponent's hand, except during the Draw Phase (Quick Effect): You can send this card from your hand to the GY; for the rest of this turn, cards cannot be added from either player's Main Deck to the hand.
local s, id, o = GetID()
function s.initial_effect(c)
	--search limit
	local e1 = Effect.CreateEffect(c)
	e1:SetDescription(aux.Stringid(id, 0))
	e1:SetProperty(EFFECT_FLAG_DELAY)
	e1:SetType(EFFECT_TYPE_QUICK_O)
	e1:SetCode(EVENT_CUSTOM + id)
	e1:SetRange(LOCATION_HAND)
	e1:SetCondition(s.condition)
	e1:SetCost(s.cost)
	e1:SetOperation(s.operation)
	c:RegisterEffect(e1)
	if not s.global_check then
		s.global_check = true
		local ge1 = Effect.CreateEffect(c)
		ge1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
		ge1:SetCode(EVENT_TO_HAND)
		ge1:SetCondition(s.regcon)
		ge1:SetOperation(s.regop)
		Duel.RegisterEffect(ge1, 0)
	end
end
function s.cfilter(c, tp)
	return c:IsControler(tp) and c:IsPreviousLocation(LOCATION_DECK)
end
function s.regcon(e, tp, eg, ep, ev, re, r, rp)
	if Duel.GetCurrentPhase() == PHASE_DRAW or Duel.GetCurrentPhase() == 0 then
		return false
	end
	local v = 0
	if eg:IsExists(s.cfilter, 1, nil, 0) then
		v = v + 1
	end
	if eg:IsExists(s.cfilter, 1, nil, 1) then
		v = v + 2
	end
	if v == 0 then
		return false
	end
	e:SetLabel(({ 0, 1, PLAYER_ALL })[v])
	return true
end
function s.regop(e, tp, eg, ep, ev, re, r, rp)
	Duel.RaiseEvent(eg, EVENT_CUSTOM + id, re, r, rp, ep, e:GetLabel())
end
function s.condition(e, tp, eg, ep, ev, re, r, rp)
	return ev == 1 - tp or ev == PLAYER_ALL
end
function s.cost(e, tp, eg, ep, ev, re, r, rp, chk)
	if chk == 0 then
		return e:GetHandler():IsAbleToGraveAsCost()
	end
	Duel.SendtoGrave(e:GetHandler(), REASON_COST)
end
function s.operation(e, tp, eg, ep, ev, re, r, rp)
	local e1 = Effect.CreateEffect(e:GetHandler())
	e1:SetType(EFFECT_TYPE_FIELD)
	e1:SetCode(EFFECT_CANNOT_TO_HAND)
	e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
	e1:SetTargetRange(1, 1)
	e1:SetTarget(aux.TargetBoolFunction(Card.IsLocation, LOCATION_DECK))
	e1:SetReset(RESET_PHASE + PHASE_END)
	Duel.RegisterEffect(e1, tp)
	local e2 = Effect.CreateEffect(e:GetHandler())
	e2:SetType(EFFECT_TYPE_FIELD)
	e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
	e2:SetCode(EFFECT_CANNOT_DRAW)
	e2:SetReset(RESET_PHASE + PHASE_END)
	e2:SetTargetRange(1, 1)
	Duel.RegisterEffect(e2, tp)
end


Droll
If a card(s) is added from the Main Deck to your opponent's hand, except during the Draw Phase (Quick Effect): You can send this card from your hand to the GY; for the rest of this turn, cards cannot be added from either player's Main Deck to the hand.
-- Droll
local s, id, o = GetID()
function s.initial_effect(c)
	--search limit
	local e1 = Effect.CreateEffect(c)
	e1:SetDescription(aux.Stringid(id, 0))
	e1:SetProperty(EFFECT_FLAG_DELAY)
	e1:SetType(EFFECT_TYPE_QUICK_O)
	e1:SetCode(EVENT_CUSTOM + id)
	e1:SetRange(LOCATION_HAND)
	e1:SetCondition(s.condition)
	e1:SetCost(s.cost)
	e1:SetOperation(s.operation)
	c:RegisterEffect(e1)
	if not s.global_check then
		s.global_check = true
		local ge1 = Effect.CreateEffect(c)
		ge1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
		ge1:SetCode(EVENT_TO_HAND)
		ge1:SetCondition(s.regcon)
		ge1:SetOperation(s.regop)
		Duel.RegisterEffect(ge1, 0)
	end
end
function s.cfilter(c, tp)
	return c:IsControler(tp) and c:IsPreviousLocation(LOCATION_DECK)
end
function s.regcon(e, tp, eg, ep, ev, re, r, rp)
	if Duel.GetCurrentPhase() == PHASE_DRAW or Duel.GetCurrentPhase() == 0 then
		return false
	end
	local v = 0
	if eg:IsExists(s.cfilter, 1, nil, 0) then
		v = v + 1
	end
	if eg:IsExists(s.cfilter, 1, nil, 1) then
		v = v + 2
	end
	if v == 0 then
		return false
	end
	e:SetLabel(({ 0, 1, PLAYER_ALL })[v])
	return true
end
function s.regop(e, tp, eg, ep, ev, re, r, rp)
	Duel.RaiseEvent(eg, EVENT_CUSTOM + id, re, r, rp, ep, e:GetLabel())
end
function s.condition(e, tp, eg, ep, ev, re, r, rp)
	return ev == 1 - tp or ev == PLAYER_ALL
end
function s.cost(e, tp, eg, ep, ev, re, r, rp, chk)
	if chk == 0 then
		return e:GetHandler():IsAbleToGraveAsCost()
	end
	Duel.SendtoGrave(e:GetHandler(), REASON_COST)
end
function s.operation(e, tp, eg, ep, ev, re, r, rp)
	local e1 = Effect.CreateEffect(e:GetHandler())
	e1:SetType(EFFECT_TYPE_FIELD)
	e1:SetCode(EFFECT_CANNOT_TO_HAND)
	e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
	e1:SetTargetRange(1, 1)
	e1:SetTarget(aux.TargetBoolFunction(Card.IsLocation, LOCATION_DECK))
	e1:SetReset(RESET_PHASE + PHASE_END)
	Duel.RegisterEffect(e1, tp)
	local e2 = Effect.CreateEffect(e:GetHandler())
	e2:SetType(EFFECT_TYPE_FIELD)
	e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
	e2:SetCode(EFFECT_CANNOT_DRAW)
	e2:SetReset(RESET_PHASE + PHASE_END)
	e2:SetTargetRange(1, 1)
	Duel.RegisterEffect(e2, tp)
end

