--created & coded by Lyris, art at http://safebooru.org/images/745/74311c251b3ed100874bb04f02927debddd05beb.jpg --襲雷ストアイク local s,id,o=GetID() function s.initial_effect(c) local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCategory(CATEGORY_DESTROY) e1:SetTarget(s.pentg) e1:SetOperation(s.penop) c:RegisterEffect(e1) end function s.cfilter(c) return c:IsSetCard(0x7c4) and c:IsDestructable() end function s.penfilter(c) return c:IsSetCard(0x7c4) and c:IsType(TYPE_PENDULUM) and not c:IsForbidden() end function s.pentg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_PZONE,0,1,nil) and Duel.IsExistingMatchingCard(s.penfilter,tp,LOCATION_DECK,0,1,nil) end local g=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_PZONE,0,nil) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0) end function s.penop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) local dg=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_PZONE,0,1,1,nil) Duel.HintSelection(dg) if Duel.Destroy(dg,REASON_EFFECT)==0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD) local g=Duel.SelectMatchingCard(tp,s.penfilter,tp,LOCATION_DECK,0,1,1,nil) local tc=g:GetFirst() if tc then if not Duel.MoveToField(tc,tp,tp,LOCATION_PZONE,POS_FACEUP,true) then Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true) end end end