--Pili, the Follower local id,cod=23251014,c23251014 function cod.initial_effect(c) --Synchro Summon aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0xd3e),aux.NonTuner(Card.IsAttribute,ATTRIBUTE_DARK),1) c:EnableReviveLimit() --Special Summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCondition(cod.spcon) e1:SetTarget(cod.sptg) e1:SetOperation(cod.spop) c:RegisterEffect(e1) end function cod.spcon(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO end function cod.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>2 end end function cod.spfilter(c,e,tp) return c:IsSetCard(0xd3e) and c:IsLevelBelow(5) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function cod.spop(e,tp,eg,ep,ev,re,r,rp) if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)<3 then return end local g=Duel.GetDecktopGroup(tp,3) Duel.ConfirmDecktop(tp,3) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end local rg=Duel.GetDecktopGroup(tp,3):Filter(cod.spfilter,nil,e,tp) Duel.DisableShuffleCheck() if rg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(id,0)) then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local sg=rg:Select(tp,1,1,nil) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) g:Sub(sg) end Duel.SendtoGrave(g,REASON_EFFECT+REASON_REVEAL) end