|
| 1 | +--歌憐奏女デュオルドール |
| 2 | +--Duordoll the Adorable Star |
| 3 | +--scripted by YoshiDuels |
| 4 | +local s,id=GetID() |
| 5 | +function s.initial_effect(c) |
| 6 | + --Fusion Summon Procedure |
| 7 | + c:EnableReviveLimit() |
| 8 | + Fusion.AddProcMixN(c,true,true,160209061,2) |
| 9 | + Fusion.AddContactProc(c,s.contactfil,s.contactop,nil,nil,SUMMON_TYPE_FUSION,nil,false) |
| 10 | + --Shuffle 4 cards from opponent's GY to deck |
| 11 | + local e1=Effect.CreateEffect(c) |
| 12 | + e1:SetDescription(aux.Stringid(id,0)) |
| 13 | + e1:SetCategory(CATEGORY_TODECK+CATEGORY_SPECIAL_SUMMON) |
| 14 | + e1:SetType(EFFECT_TYPE_IGNITION) |
| 15 | + e1:SetRange(LOCATION_MZONE) |
| 16 | + e1:SetCountLimit(1) |
| 17 | + e1:SetTarget(s.target) |
| 18 | + e1:SetOperation(s.operation) |
| 19 | + c:RegisterEffect(e1) |
| 20 | +end |
| 21 | +function s.contactfil(tp) |
| 22 | + return Duel.GetMatchingGroup(aux.FaceupFilter(Card.IsAbleToDeckOrExtraAsCost),tp,LOCATION_ONFIELD,0,nil) |
| 23 | +end |
| 24 | +function s.contactop(g,tp) |
| 25 | + Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_COST+REASON_MATERIAL) |
| 26 | +end |
| 27 | +function s.target(e,tp,eg,ep,ev,re,r,rp,chk) |
| 28 | + if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToDeck,tp,0,LOCATION_GRAVE,1,nil) end |
| 29 | + Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,tp,LOCATION_GRAVE) |
| 30 | +end |
| 31 | +function s.spfilter(c,e,tp) |
| 32 | + return c:IsLevel(3,4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP) |
| 33 | +end |
| 34 | +function s.operation(e,tp,eg,ep,ev,re,r,rp) |
| 35 | + --Effect |
| 36 | + Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) |
| 37 | + local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(Card.IsAbleToDeck),tp,0,LOCATION_GRAVE,1,4,nil) |
| 38 | + Duel.HintSelection(g,4) |
| 39 | + if Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)<1 then return end |
| 40 | + local g2=Duel.GetMatchingGroup(aux.NecroValleyFilter(s.spfilter),tp,LOCATION_GRAVE,0,nil,e,tp) |
| 41 | + if #g2>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then |
| 42 | + Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) |
| 43 | + local sg=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp) |
| 44 | + if #sg>0 then |
| 45 | + Duel.BreakEffect() |
| 46 | + Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) |
| 47 | + end |
| 48 | + end |
| 49 | +end |
0 commit comments