--VECTOR Legion Multi Launch --Scripted by Zerry function c67864670.initial_effect(c) --Special Summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(67864670,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,67864670) e1:SetTarget(c67864670.target2) e1:SetOperation(c67864670.activate2) c:RegisterEffect(e1) end function c67864670.tgfilter2(c,e,tp) return c:IsFaceup() and c:IsSetCard(0x2a6) and Duel.IsExistingMatchingCard(c67864670.spfilter2,tp,LOCATION_DECK,0,1,nil,e,tp,c:GetAttribute()) end function c67864670.spfilter2(c,e,tp,att) return c:IsSetCard(0x52a6) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and not c:IsAttribute(att) end function c67864670.target2(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c67864670.tgfilter2(chkc,e,tp) end if chk==0 then return not Duel.IsPlayerAffectedByEffect(tp,59822133) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingTarget(c67864670.tgfilter2,tp,LOCATION_MZONE,0,1,nil,e,tp) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) Duel.SelectTarget(tp,c67864670.tgfilter2,tp,LOCATION_MZONE,0,1,1,nil,e,tp) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) end function c67864670.activate2(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local tc=Duel.GetFirstTarget() local att=tc:GetAttribute() local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local g=Duel.GetMatchingGroup(c67864670.spfilter2,tp,LOCATION_DECK,0,nil,e,tp,att) if not Duel.IsPlayerAffectedByEffect(tp,59822133) and ft>0 and tc:IsRelateToEffect(e) and tc:IsFaceup() then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local g1=g:Select(tp,1,1,nil) Duel.SpecialSummon(g1,0,tp,tp,false,false,POS_FACEUP) end local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetTargetRange(1,0) e1:SetTarget(c67864670.splimit) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) end function c67864670.splimit(e,c,sump,sumtype,sumpos,targetp,se) return not c:IsSetCard(0x2a6) end