--超自研的崩坏 function c33701076.initial_effect(c) --activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCost(c33701076.cost) e1:SetTarget(c33701076.target) e1:SetOperation(c33701076.activate) c:RegisterEffect(e1) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetCode(EVENT_FREE_CHAIN) e1:SetRange(LOCATION_GRAVE) e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER) e1:SetCost(aux.bfgcost) e1:SetTarget(c33701076.pentg) e1:SetOperation(c33701076.penop) c:RegisterEffect(e1) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetCode(EVENT_FREE_CHAIN) e1:SetRange(LOCATION_GRAVE) e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER) e1:SetCost(aux.bfgcost) e1:SetTarget(c33701076.sptg) e1:SetOperation(c33701076.spop) c:RegisterEffect(e1) end function c33701076.cfilter(c) return c:IsLevel(5) and c:IsAttribute(ATTRIBUTE_EARTH) and c:IsAbleToRemoveAsCost() end function c33701076.cost(e,tp,eg,ep,ev,re,r,rp,chk) local g=Duel.GetMatchingGroup(c33701076.cfilter,tp,LOCATION_GRAVE,0,nil) if chk==0 then return Duel.IsExistingMatchingCard(c33701076.cfilter,tp,LOCATION_GRAVE,0,5,nil) and g:GetClassCount(Card.GetCode)>=5 end local rg=Group.CreateGroup() for i=1,5 do Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) local tc=g:Select(tp,1,1,nil):GetFirst() if tc then rg:AddCard(tc) g:Remove(Card.IsCode,nil,tc:GetCode()) end end Duel.Remove(rg,POS_FACEUP,REASON_COST) end function c33701076.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end local sg=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_ONFIELD,LOCLOCATION_ONFIELDATION_MZONE,nil) Duel.SetOperationInfo(0,CATEGORY_DESTROY,sg,sg:GetCount(),0,0) end function c33701076.activate(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil) Duel.Destroy(sg,REASON_EFFECT) Duel.Hint(HINT_MUSIC,0,aux.Stringid(33701076,0)) end function c33701076.setfilter1(c,tp) return c:IsSetCard(0x3440) and c:IsType(TYPE_PENDULUM) and not c:IsForbidden() and Duel.IsExistingMatchingCard(c33701076.setfilter2,tp,LOCATION_DECK,0,1,nil,c:GetCode()) end function c33701076.setfilter2(c,code) return c:IsFaceup() and c:IsSetCard(0x3440) and not c:IsCode(code) and c:IsType(TYPE_PENDULUM) and not c:IsForbidden() end function c33701076.tdfilter1(c) return c:IsFaceup() and c:IsSetCard(0x3440) and c:IsType(TYPE_MONSTER) and c:IsAbleToDeck() end function c33701076.pentg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE+LOCATION_REMOVED) and c33701076.tdfilter1(chkc) end if chk==0 then return Duel.CheckLocation(tp,LOCATION_PZONE,0) and Duel.CheckLocation(tp,LOCATION_PZONE,1) and Duel.IsExistingMatchingCard(c33701076.setfilter1,tp,LOCATION_REMOVED,0,1,nil,tp) and Duel.IsExistingTarget(c33701076.tdfilter1,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,2,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) local g=Duel.SelectTarget(tp,c33701076.tdfilter1,tp,OCATION_GRAVE+LOCATION_REMOVED,0,2,2,nil) Duel.SetOperationInfo(0,CATEGORY_TODECK,g,2,0,0) end function c33701076.penop(e,tp,eg,ep,ev,re,r,rp) if not Duel.CheckLocation(tp,LOCATION_PZONE,0) or not Duel.CheckLocation(tp,LOCATION_PZONE,1) then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD) local g1=Duel.SelectMatchingCard(tp,c33701076.setfilter1,tp,LOCATION_REMOVED,0,1,1,nil,tp) local tc1=g1:GetFirst() if not tc1 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD) local g2=Duel.SelectMatchingCard(tp,c33701076.setfilter2,tp,LOCATION_REMOVED,0,1,1,nil,tc1:GetCode()) local tc2=g2:GetFirst() if Duel.MoveToField(tc1,tp,tp,LOCATION_SZONE,POS_FACEUP,false) then if Duel.MoveToField(tc2,tp,tp,LOCATION_SZONE,POS_FACEUP,false) then tc2:SetStatus(STATUS_EFFECT_ENABLED,true) end tc1:SetStatus(STATUS_EFFECT_ENABLED,true) end end function c33701076.tdfilter2(c) return c:IsFaceup() and c:IsSetCard(0x441) and c:IsType(TYPE_MONSTER) and c:IsAbleToDeck() end function c33701076.filter(c,e,tp) return c:IsFaceup() and c:IsSetCard(0x441) and c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function c33701076.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE+LOCATION_REMOVED) and chkc:IsControler(tp) and c33701076.tdfilter2(chkc) and c33701076.filter(chkc,e,tp) end if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingTarget(c33701076.filter,tp,LOCATION_REMOVED,LOCATION_REMOVED,1,nil,e,tp) and Duel.IsExistingTarget(c33701076.tdfilter2,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,2,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) local g=Duel.SelectTarget(tp,c33701076.tdfilter1,tp,OCATION_GRAVE+LOCATION_REMOVED,0,2,2,nil) Duel.SetOperationInfo(0,CATEGORY_TODECK,g,2,0,0) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local g=Duel.SelectTarget(tp,c33701076.filter,tp,LOCATION_REMOVED,LOCATION_REMOVED,1,1,nil,e,tp) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0) end function c33701076.spop(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end local tc=Duel.GetFirstTarget() if tc:IsRelateToEffect(e) and Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)~=0 then tc:AddCounter(0x1021,2) end end