--Wisprit Summons local cid,id=GetID() function cid.initial_effect(c) aux.AddRitualProcGreater2Code2(c,25707911,25707912,nil,cid.mfilter) --to deck local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TODECK+CATEGORY_DRAW) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_GRAVE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCountLimit(1,id) e1:SetTarget(cid.tdtg) e1:SetOperation(cid.tdop) c:RegisterEffect(e1) end --filters function cid.mfilter(c) return c:IsRace(RACE_FAIRY) end function cid.tdfilter(c) return c:IsSetCard(0x26c) and c:IsType(TYPE_MONSTER) and c:IsAbleToDeck() end --to deck function cid.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and cid.tdfilter(chkc) and chkc~=e:GetHandler() end if chk==0 then return e:GetHandler():IsAbleToDeck() and Duel.IsExistingTarget(cid.tdfilter,tp,LOCATION_REMOVED,0,1,e:GetHandler()) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) local g=Duel.SelectTarget(tp,cid.tdfilter,tp,LOCATION_REMOVED,0,1,1,e:GetHandler()) g:AddCard(e:GetHandler()) Duel.SetOperationInfo(0,CATEGORY_TODECK,g,2,0,0) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) end function cid.tdop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local tc=Duel.GetFirstTarget() if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) then local g=Group.FromCards(c,tc) if Duel.SendtoDeck(g,nil,2,REASON_EFFECT)==0 then return end Duel.ShuffleDeck(tp) Duel.BreakEffect() Duel.Draw(tp,1,REASON_EFFECT) end end