--Sabra, Pharaohnic Watchman local id,cod=23251027,c23251027 function cod.initial_effect(c) --Link Summon aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0xd3e),2,2) c:EnableReviveLimit() --Special Summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1) e1:SetCost(cod.spcost) e1:SetTarget(cod.sptg) e1:SetOperation(cod.spop) c:RegisterEffect(e1) end function cod.spcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.CheckLPCost(tp,500) end Duel.PayLPCost(tp,500) end function cod.spfilter(c,e,tp,zone) return c:IsSetCard(0xd3e) and c:IsLevelBelow(4) and zone~=0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp,zone) end function cod.sptg(e,tp,eg,ep,ev,re,r,rp,chk) local zone=e:GetHandler():GetLinkedZone() if chk==0 then return Duel.IsExistingMatchingCard(cod.spfilter,tp,LOCATION_HAND,0,1,nil,e,tp,zone) end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND) end function cod.spop(e,tp,eg,ep,ev,re,r,rp) local zone=e:GetHandler():GetLinkedZone() Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local sg=Duel.SelectMatchingCard(tp,cod.spfilter,tp,LOCATION_HAND,0,1,1,nil,e,tp,zone) if sg:GetCount() then Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP,zone) end end