--动物朋友之楔 天蓝薮猫 if not pcall(function() require("expansions/script/c10199990") end) then require("script/c10199990") end local m=33700943 local cm=_G["c"..m] function cm.initial_effect(c) --link summon aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkSetCard,0x442),3,3,cm.lcheck) c:EnableReviveLimit() local e1=rsef.SV_INDESTRUCTABLE(c,"battle") --special summon local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(m,0)) e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_MZONE) e2:SetCountLimit(1) e2:SetCondition(cm.condition) e2:SetTarget(cm.target) e2:SetOperation(cm.operation) c:RegisterEffect(e2) end function cm.filter(c,e,tp,zone) return c:IsSetCard(0x442) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp,zone) end function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then local zone=e:GetHandler():GetLinkedZone(tp) return zone~=0 and Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp,zone) end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE) end function cm.operation(e,tp,eg,ep,ev,re,r,rp) local zone=e:GetHandler():GetLinkedZone(tp) if zone==0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(cm.filter),tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,e,tp,zone) if #g>0 then rssf.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP,zone,rssf.SummonBuff(nil,nil,nil,LOCATION_HAND)) end end function cm.condition(e,tp) local g=Duel.GetFieldGroup(tp,LOCATION_GRAVE,0) return g:GetClassCount(Card.GetCode)==#g end function cm.lcheck(g,lc) return g:GetClassCount(Card.GetCode)==#g and g:IsExists(Card.IsType,1,nil,TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK) end