|
| 1 | +--ソイツとドイツ |
| 2 | +--Soitsu & Doitsu |
| 3 | +--scripted by YoshiDuels |
| 4 | +local s,id=GetID() |
| 5 | +function s.initial_effect(c) |
| 6 | + --fusion material |
| 7 | + c:EnableReviveLimit() |
| 8 | + Fusion.AddProcMix(c,true,true,60246171,57062206) |
| 9 | + Fusion.AddUnionFusionProc(c) |
| 10 | + --Special Summon |
| 11 | + local e1=Effect.CreateEffect(c) |
| 12 | + e1:SetDescription(aux.Stringid(id,0)) |
| 13 | + e1:SetCategory(CATEGORY_TOGRAVE+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.target(e,tp,eg,ep,ev,re,r,rp,chk) |
| 22 | + if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToGrave,tp,LOCATION_HAND|LOCATION_ONFIELD,0,1,nil) end |
| 23 | + Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_HAND|LOCATION_ONFIELD) |
| 24 | + Duel.SetPossibleOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE) |
| 25 | +end |
| 26 | +function s.spfilter(c,e,tp) |
| 27 | + return c:IsCode(60246171,57062206,48202661,69456283) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) |
| 28 | +end |
| 29 | +function s.operation(e,tp,eg,ep,ev,re,r,rp) |
| 30 | + --Effect |
| 31 | + Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) |
| 32 | + local g=Duel.SelectMatchingCard(tp,Card.IsAbleToGrave,tp,LOCATION_HAND|LOCATION_ONFIELD,0,1,1,nil) |
| 33 | + if Duel.SendtoGrave(g,REASON_EFFECT)==0 then return end |
| 34 | + --Special Summon |
| 35 | + local g2=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_GRAVE,0,nil,e,tp) |
| 36 | + local ft=Duel.GetMZoneCount(tp) |
| 37 | + if ft<=0 then return end |
| 38 | + if ft>=2 then ft=2 end |
| 39 | + if Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) then ft=1 end |
| 40 | + if #g2>0 and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then |
| 41 | + Duel.BreakEffect() |
| 42 | + Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) |
| 43 | + local sg=g2:Select(tp,1,ft,nil) |
| 44 | + Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) |
| 45 | + end |
| 46 | +end |
0 commit comments