Commit fff53c93 authored by 聖園ミカ's avatar 聖園ミカ 🐟

hop

parent 36a32609
No preview for this file type
...@@ -19,6 +19,9 @@ function c65050009.filter2(c,e,tp,rc) ...@@ -19,6 +19,9 @@ function c65050009.filter2(c,e,tp,rc)
or not c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true) then return false end or not c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true) then return false end
return rc:IsCanBeRitualMaterial(c) and c:IsSetCard(0x3da1) and c:GetLevel()==rc:GetLevel() return rc:IsCanBeRitualMaterial(c) and c:IsSetCard(0x3da1) and c:GetLevel()==rc:GetLevel()
end end
function c65050009.filter1(c,e,tp)
return bit.band(c:GetType(),0x81)==0x81 and c:IsSetCard(0x3da1) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true)
end
function c65050009.target(e,tp,eg,ep,ev,re,r,rp,chk) function c65050009.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c65050009.filter0,tp,LOCATION_MZONE,0,1,nil,e,tp) end if chk==0 then return Duel.IsExistingMatchingCard(c65050009.filter0,tp,LOCATION_MZONE,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE)
...@@ -26,24 +29,26 @@ end ...@@ -26,24 +29,26 @@ end
function c65050009.activate(e,tp,eg,ep,ev,re,r,rp) function c65050009.activate(e,tp,eg,ep,ev,re,r,rp)
local m=Duel.GetMatchingGroup(Card.IsCode,tp,LOCATION_MZONE,0,1,nil,65050012) local m=Duel.GetMatchingGroup(Card.IsCode,tp,LOCATION_MZONE,0,1,nil,65050012)
local mg1=m:Filter(c65050009.filter0,nil,e,tp) local mg1=m:Filter(c65050009.filter0,nil,e,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local ttg=Duel.GetMatchingGroup(c65050009.filter1,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE,0,nil,e,tp)
local mg2=mg1:Select(tp,1,mg1:GetCount(),nil) local ritg=Group.CreateGroup()
local mc=mg2:GetFirst() while Duel.IsExistingMatchingCard(c65050009.filter0,tp,LOCATION_MZONE,0,1,nil,e,tp) do
local ritg=Group.CreateGroup() local mg=m:FilterSelect(tp,c65050009.filter0,1,1,nil,e,tp)
while mc do local mc=mg:GetFirst()
local tg=Duel.SelectMatchingCard(tp,c65050009.filter2,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil,e,tp,mc) local tg=ttg:FilterSelect(tp,c65050009.filter2,1,1,nil,e,tp,mc)
local tc=tg:GetFirst() ttg:Sub(tg)
local mcg=Group.FromCards(mc) local tc=tg:GetFirst()
tc:SetMaterial(mcg) tc:SetMaterial(mg)
ritg:AddCard(tc) Duel.Release(mg,REASON_EFFECT)
mc=mg2:GetNext() ritg:AddCard(tc)
end if Duel.IsExistingMatchingCard(c65050009.filter0,tp,LOCATION_MZONE,0,1,nil,e,tp) and not Duel.SelectYesNo(tp,aux.Stringid(65050009,0)) then break end
if ritg:GetCount()>0 and Duel.Release(mg2,REASON_EFFECT+REASON_RITUAL)==mg2:GetCount() then end
if ritg:GetCount()>0 then
local rit=ritg:GetFirst() local rit=ritg:GetFirst()
while rit do while rit do
Duel.SpecialSummon(rit,SUMMON_TYPE_RITUAL,tp,tp,false,true,POS_FACEUP) Duel.SpecialSummonStep(rit,SUMMON_TYPE_RITUAL,tp,tp,false,true,POS_FACEUP)
rit:CompleteProcedure() rit:CompleteProcedure()
rit=ritg:GetNext() rit=ritg:GetNext()
end end
Duel.SpecialSummonComplete()
end end
end end
\ No newline at end of file
...@@ -60,7 +60,7 @@ function c65050010.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -60,7 +60,7 @@ function c65050010.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c65050010.activate(e,tp,eg,ep,ev,re,r,rp) function c65050010.activate(e,tp,eg,ep,ev,re,r,rp)
local ec=re:GetHandler() local ec=re:GetHandler()
if Duel.NegateActivation(ev) and ec:IsRelateToEffect(re) and e:GetLabel()==1 then if Duel.NegateActivation(ev) and ec:IsRelateToEffect(re) and e:GetLabel()==1 and Duel.SelectYesNo(tp,aux.Stringid(65050010,0)) then
ec:CancelToGrave() ec:CancelToGrave()
Duel.SendtoDeck(ec,nil,2,REASON_EFFECT) Duel.SendtoDeck(ec,nil,2,REASON_EFFECT)
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment