--Shadowbrave Distraction function c1392001.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,1392001+EFFECT_COUNT_CODE_OATH) e1:SetTarget(c1392001.target) e1:SetOperation(c1392001.activate) c:RegisterEffect(e1) end function c1392001.cfilter(c,e,tp) return c:IsSetCard(0x920) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function c1392001.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(c1392001.cfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,0,LOCATION_DECK) end function c1392001.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(Card.IsSetCard,tp,LOCATION_DECK,0,nil,0x920) if g:GetCount()>=2 then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) local sg=g:Select(tp,2,2,nil) Duel.ConfirmCards(1-tp,sg) local tg=sg:RandomSelect(1-tp,1) if tg:GetCount()>0 then local tc=tg:GetFirst() Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) sg:RemoveCard(tc) end Duel.SendtoGrave(sg,REASON_EFFECT) end end