Here’s another one! For some reason I can only select 3 and it doesn’t sort.
Number 5: Dark Seer
Rank 5 Dark Psychic 2800/2200
2 Level 5 monsters
Once per turn: You can detach 1 Xyz Material from this card to look at the top 5 cards from your deck. Return them to the top of your deck in any order.
--Number 5: Dark Seer
function c1005000000.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.XyzFilterFunction(c,5),2)
c:EnableReviveLimit()
--sortdecktop
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCountLimit(1)
e1:SetCost(c1005000000.cost)
e1:SetTarget(c1005000000.target)
e1:SetOperation(c1005000000.operation)
c:RegisterEffect(e1)
end
function c1005000000.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 c1005000000.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_DECK)>2 end
end
function c1005000000.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.SortDecktop(tp,tp,5)
end