--created & coded by Lyris, art from Shadowverse's "Gun Collector" --弾丸の波動拳 local s,id,o=GetID() function s.initial_effect(c) c:RegisterSetCardString("Hadouken") local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_HAND) e1:SetCategory(CATEGORY_TOGRAVE) e1:SetCountLimit(1,id) e1:SetCost(s.cost) e1:SetTarget(s.destg) e1:SetOperation(s.desop) c:RegisterEffect(e1) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() if chk==0 then return c:IsAbleToDeckAsCost() end Duel.SendtoDeck(c,nil,SEQ_DECKTOP,REASON_COST) end function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) local ct=3 if Duel.IsPlayerAffectedByEffect(tp,102400030) then ct=ct*2 end if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>=ct and Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_DECK,0,1,nil,"Hadouken") end end function s.desop(e,tp,eg,ep,ev,re,r,rp) local ct=3 if Duel.IsPlayerAffectedByEffect(tp,102400030) then ct=ct*2 end if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)5 then for p=0,1 do Duel.ConfirmCards(p,g,true) end end local d=g:FilterCount(Card.IsSetCard,nil,"Hadouken") for i=1,ct do Duel.MoveSequence(Duel.GetFieldCard(tp,LOCATION_DECK,0),SEQ_DECKTOP) end local dg=Duel.GetFieldGroup(tp,0,LOCATION_ONFIELD) if d>0 and #dg>0 and Duel.SelectEffectYesNo(tp,e:GetHandler()) then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) local sg=dg:Select(tp,1,math.min(2,d),nil) Duel.HintSelection(sg) Duel.BreakEffect() Duel.SendtoGrave(sg,REASON_EFFECT) end end