Commit 1c1b7933 authored by Tachibana's avatar Tachibana

ybb

parent b1aa8b2f
No preview for this file type
...@@ -56,12 +56,12 @@ function cm.sumsuc(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,12 +56,12 @@ function cm.sumsuc(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
g1=Duel.GetFieldGroup(tp,0,LOCATION_EXTRA) g1=Duel.GetFieldGroup(tp,0,LOCATION_EXTRA)
Duel.ConfirmCards(tp,g1) Duel.ConfirmCards(tp,g1)
local sg=g1:FilterSelect(tp,cm.ofilter,1,1,nil,tp,nil):GetFirst() local sg=g1:FilterSelect(tp,cm.ofilter,1,1,nil,tp,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
g3:Merge(g) g3:Merge(g)
end end
if g1:GetCount()>0 then if g1:GetCount()>0 then
g3:Merge(g1) g3:Merge(sg)
end end
if g3:GetCount()>0 then if g3:GetCount()>0 then
Duel.Overlay(c,g3) Duel.Overlay(c,g3)
......
...@@ -103,19 +103,19 @@ function c9330019.cfilter(c) ...@@ -103,19 +103,19 @@ function c9330019.cfilter(c)
end end
function c9330019.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c9330019.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
local p=e:GetHandler():GetControler() local p=e:GetHandlerPlayer()
if chk==0 then return c:GetFlagEffect(9330021)==0 and if chk==0 then return c:GetFlagEffect(9330021)==0 and
((Duel.GetLocationCount(1-p,LOCATION_MZONE)>0 ((Duel.GetLocationCount(1-p,LOCATION_MZONE)>0
and c:IsCanBeSpecialSummoned(e,0,p,false,false,1-p)) and c:IsCanBeSpecialSummoned(e,0,p,false,false,POS_FACEUP,1-p))
or (Duel.GetLocationCount(p,LOCATION_MZONE)>0 or (Duel.GetLocationCount(p,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c9330019.cfilter,p,LOCATION_ONFIELD,0,1,nil) and Duel.IsExistingMatchingCard(c9330019.cfilter,p,LOCATION_ONFIELD,0,1,nil)
and c:IsCanBeSpecialSummoned(e,0,p,false,false))) end and c:IsCanBeSpecialSummoned(e,0,p,false,false,POS_FACEUP))) end
c:RegisterFlagEffect(9330021,RESET_CHAIN,0,1) c:RegisterFlagEffect(9330021,RESET_CHAIN,0,1)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0)
end end
function c9330019.spop(e,tp,eg,ep,ev,re,r,rp) function c9330019.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local p=e:GetHandler():GetControler() local p=e:GetHandlerPlayer()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.IsExistingMatchingCard(c9330019.cfilter,p,LOCATION_ONFIELD,0,1,nil) if Duel.IsExistingMatchingCard(c9330019.cfilter,p,LOCATION_ONFIELD,0,1,nil)
and Duel.SelectYesNo(p,aux.Stringid(9330019,0)) then and Duel.SelectYesNo(p,aux.Stringid(9330019,0)) then
......
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