--Isolate Hybrid Gen function c11000235.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TODECK+CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(c11000235.target) e1:SetOperation(c11000235.activate) c:RegisterEffect(e1) end function c11000235.filter(c) return c:IsFaceup() and c:IsType(TYPE_FUSION) and c:IsAbleToExtra() end function c11000235.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and c11000235.filter(chkc) end if chk==0 then return Duel.IsExistingTarget(c11000235.filter,tp,LOCATION_MZONE,0,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) local g=Duel.SelectTarget(tp,c11000235.filter,tp,LOCATION_MZONE,0,1,1,nil) Duel.SetOperationInfo(0,CATEGORY_TODECK,g,1,0,0) end function c11000235.mgfilter(c,e,tp,fusc) return not c:IsControler(tp) or not c:IsLocation(LOCATION_GRAVE) or bit.band(c:GetReason(),0x40008)~=0x40008 or c:GetReasonCard()~=fusc or not c:IsAbleToHand() or c:IsHasEffect(EFFECT_NECRO_VALLEY) end function c11000235.thfilter(c,e,tp,fc) return c:IsSetCard(0x1FA) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand() and not c:IsCode(11000235) end function c11000235.activate(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() if not (tc:IsRelateToEffect(e) and tc:IsFaceup()) then return end local mg=tc:GetMaterial() local sumable=true local sumtype=tc:GetSummonType() if Duel.SendtoDeck(tc,nil,0,REASON_EFFECT)==0 or bit.band(sumtype,SUMMON_TYPE_FUSION)~=SUMMON_TYPE_FUSION or mg:GetCount()==0 or mg:GetCount()>Duel.GetLocationCount(tp,LOCATION_MZONE) or mg:IsExists(c11000235.mgfilter,1,nil,e,tp,tc) then sumable=false end if sumable then Duel.BreakEffect() Duel.SendtoHand(mg,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,mg) local g=Duel.SelectMatchingCard(tp,c11000235.thfilter,tp,LOCATION_DECK,0,1,1,nil) if g:GetCount()>0 then Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end end end