--Pharaohnic Seer local id,cod=23251012,c23251012 function cod.initial_effect(c) --Special Summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_SPSUMMON_PROC) e1:SetProperty(EFFECT_FLAG_UNCOPYABLE) e1:SetRange(LOCATION_GRAVE) e1:SetCondition(cod.spcon) e1:SetOperation(cod.spop) c:RegisterEffect(e1) end function cod.spfilter(c) return c:IsFaceup() and c:IsSetCard(0xd3e) end function cod.spcon(e,c) if c==nil then return true end local tp=c:GetControler() return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(cod.spfilter,tp,LOCATION_MZONE,0,1,nil) and Duel.GetDecktopGroup(tp,2):FilterCount(Card.IsAbleToRemove,nil)==2 end function cod.spop(e,tp,eg,ep,ev,re,r,rp,c) local c=e:GetHandler() local g=Duel.GetDecktopGroup(tp,2) if g:GetCount()<=0 then return end Duel.Remove(g,POS_FACEUP,REASON_COST) local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_LEAVE_FIELD_REDIRECT) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetReset(RESET_EVENT+0x47e0000) e1:SetValue(LOCATION_REMOVED) c:RegisterEffect(e1,true) end