--Vertex Melody Chorus --Script by Zerry function c11111311.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCountLimit(1,96073342+EFFECT_COUNT_CODE_OATH) e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE) e1:SetTarget(c11111311.target) e1:SetOperation(c11111311.activate) c:RegisterEffect(e1) local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetCode(EFFECT_TRAP_ACT_IN_HAND) e2:SetCondition(c11111311.handcon) c:RegisterEffect(e2) end function c11111311.filter(c) return c:IsFaceup() and c:IsSetCard(0x5a3) end function c11111311.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return false end local c=e:GetHandler() if chk==0 then return Duel.IsExistingTarget(c11111311.filter,tp,LOCATION_ONFIELD,0,1,c) and Duel.IsExistingTarget(nil,tp,0,LOCATION_ONFIELD,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) local g1=Duel.SelectTarget(tp,c11111311.filter,tp,LOCATION_ONFIELD,0,1,1,c) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) local g2=Duel.SelectTarget(tp,nil,tp,0,LOCATION_ONFIELD,1,1,nil) g1:Merge(g2) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g1,2,0,0) end function c11111311.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e) if g:GetCount()>0 then Duel.Destroy(g,REASON_EFFECT) end end function c11111311.actfilter(c) return c:IsFaceup() and c:IsSetCard(0x5a3) and c:IsType(TYPE_FUSION) and c:IsLevel(6) end function c11111311.handcon(e) return Duel.IsExistingMatchingCard(c11111311.actfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) end