--セイクリッド·ポルクス
function c78364470.initial_effect(c)
	--extra summon
	local e1=Effect.CreateEffect(c)
	e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
	e1:SetCode(EVENT_SUMMON_SUCCESS)
	e1:SetOperation(c78364470.sumop)
	c:RegisterEffect(e1)
end
function c78364470.sumop(e,tp,eg,ep,ev,re,r,rp)
	if Duel.GetFlagEffect(tp,78364471)~=0 then return end
	local e1=Effect.CreateEffect(e:GetHandler())
	e1:SetType(EFFECT_TYPE_FIELD)
	e1:SetTargetRange(LOCATION_HAND+LOCATION_MZONE,0)
	e1:SetCode(EFFECT_EXTRA_SUMMON_COUNT)
	e1:SetCondition(c78364470.escon)
	e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x53))
	e1:SetValue(c78364470.esop)
	e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
	Duel.RegisterEffect(e1,tp)
	Duel.RegisterFlagEffect(tp,78364471,RESET_PHASE+PHASE_END,0,1)
end
function c78364470.escon(e)
	return Duel.GetFlagEffect(Duel.GetTurnPlayer(),78364470)==0
end
function c78364470.esop(e,c)
	Duel.RegisterFlagEffect(c:GetControler(),78364470,RESET_PHASE+PHASE_END,0,1)
end
