Commit 81935990 authored by Chen Bill's avatar Chen Bill

update Duel.GetReleaseGroup

parent af293941
......@@ -31,11 +31,11 @@ end
function c10000.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local rg=Duel.GetReleaseGroup(tp):Filter(c10000.rfilter,nil,tp)
local rg=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON):Filter(c10000.rfilter,nil,tp)
return rg:CheckSubGroup(c10000.fselect,1,rg:GetCount(),tp)
end
function c10000.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local rg=Duel.GetReleaseGroup(tp):Filter(c10000.rfilter,nil,tp)
local rg=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON):Filter(c10000.rfilter,nil,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=rg:SelectSubGroup(tp,c10000.fselect,true,1,rg:GetCount(),tp)
if sg then
......@@ -46,7 +46,7 @@ function c10000.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
end
function c10000.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=e:GetLabelObject()
Duel.Release(g,REASON_COST)
Duel.Release(g,REASON_SPSUMMON)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_ATTACK)
......
......@@ -36,11 +36,11 @@ c10000040.spchecks=aux.CreateChecks(Card.IsOriginalCodeRule,{10000020,10000000,1
function c10000040.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local g=Duel.GetReleaseGroup(tp)
local g=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON)
return g:CheckSubGroupEach(c10000040.spchecks,aux.mzctcheckrel,tp)
end
function c10000040.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local g=Duel.GetReleaseGroup(tp)
local g=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=g:SelectSubGroupEach(tp,c10000040.spchecks,true,aux.mzctcheckrel,tp)
if sg then
......@@ -51,7 +51,7 @@ function c10000040.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
end
function c10000040.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=e:GetLabelObject()
Duel.Release(g,REASON_COST)
Duel.Release(g,REASON_SPSUMMON)
g:DeleteGroup()
end
function c10000040.winop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -73,14 +73,14 @@ function s.gcheck(g,tp,ec,sc)
end
function s.sstg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
local g=Duel.GetReleaseGroup(tp,true):Filter(s.mfilter,c)
local g=Duel.GetReleaseGroup(tp,true,REASON_EFFECT):Filter(s.mfilter,c)
if chk==0 then return c:IsReleasableByEffect() and c:GetLevel()>0
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp,g) end
Duel.SetOperationInfo(0,CATEGORY_RELEASE,g,2,0,0)
end
function s.ssop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local g=Duel.GetReleaseGroup(tp,true):Filter(s.mfilter,c)
local g=Duel.GetReleaseGroup(tp,true,REASON_EFFECT):Filter(s.mfilter,c)
if not (c:IsRelateToEffect(e) and c:IsReleasableByEffect()) or #g==0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local tc=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,g):GetFirst()
......
......@@ -26,12 +26,12 @@ function c12338068.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local g=Duel.GetFieldGroup(tp,LOCATION_MZONE,0)
local rg=Duel.GetReleaseGroup(tp)
local rg=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON)
return (g:GetCount()>0 or rg:GetCount()>0) and g:FilterCount(Card.IsReleasable,nil)==g:GetCount()
end
function c12338068.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.GetReleaseGroup(tp)
Duel.Release(g,REASON_COST)
Duel.Release(g,REASON_SPSUMMON)
local atk=0
local tc=g:GetFirst()
while tc do
......
......@@ -58,7 +58,7 @@ function c15758127.fselect(g,e,tp)
end
function c15758127.target(e,tp,eg,ep,ev,re,r,rp,chk)
local b1=Duel.IsExistingMatchingCard(c15758127.thfilter,tp,LOCATION_GRAVE,0,1,nil)
local g=Duel.GetReleaseGroup(tp):Filter(c15758127.rfilter,nil,tp)
local g=Duel.GetReleaseGroup(tp,false,REASON_EFFECT):Filter(c15758127.rfilter,nil,tp)
local b2=g:CheckSubGroup(c15758127.fselect,2,2,e,tp)
if chk==0 then return b1 or b2 end
local s=0
......@@ -89,7 +89,7 @@ function c15758127.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
if e:GetLabel()==1 then
local g=Duel.GetReleaseGroup(tp):Filter(c15758127.rfilter,nil,tp)
local g=Duel.GetReleaseGroup(tp,false,REASON_EFFECT):Filter(c15758127.rfilter,nil,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local rg=g:SelectSubGroup(tp,c15758127.fselect,false,2,2,e,tp)
if rg and rg:GetCount()==2 then
......
......@@ -97,11 +97,11 @@ end
function c16306932.hspcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local g=Duel.GetReleaseGroup(tp):Filter(Card.IsRace,nil,RACE_DRAGON)
local g=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON):Filter(Card.IsRace,nil,RACE_DRAGON)
return g:CheckSubGroupEach(c16306932.spchecks,aux.mzctcheckrel,tp)
end
function c16306932.hsptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local g=Duel.GetReleaseGroup(tp):Filter(Card.IsRace,nil,RACE_DRAGON)
local g=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON):Filter(Card.IsRace,nil,RACE_DRAGON)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=g:SelectSubGroupEach(tp,c16306932.spchecks,true,aux.mzctcheckrel,tp)
if sg then
......@@ -112,7 +112,7 @@ function c16306932.hsptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
end
function c16306932.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local g=e:GetLabelObject()
Duel.Release(g,REASON_COST)
Duel.Release(g,REASON_SPSUMMON)
g:DeleteGroup()
end
function c16306932.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -51,7 +51,7 @@ function c16719140.relfilter(c)
end
function c16719140.sptg1(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
local mg=Duel.GetReleaseGroup(tp):Filter(c16719140.relfilter,c)
local mg=Duel.GetReleaseGroup(tp,false,REASON_EFFECT):Filter(c16719140.relfilter,c)
if chk==0 then
if e:GetLabel()~=100 then return false end
e:SetLabel(0)
......@@ -69,7 +69,7 @@ function c16719140.spop1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if not c:IsRelateToEffect(e) or not tc:IsRelateToEffect(e) then return end
local mg=Duel.GetReleaseGroup(tp):Filter(c16719140.relfilter,c)
local mg=Duel.GetReleaseGroup(tp,false,REASON_EFFECT):Filter(c16719140.relfilter,c)
if mg:GetCount()==0 then return end
if aux.NecroValleyFilter()(tc) and tc:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_DEFENSE) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
......
......@@ -37,11 +37,11 @@ end
function c17132130.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local rg=Duel.GetReleaseGroup(tp)
local rg=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON)
return rg:CheckSubGroup(c17132130.fselect,3,3,tp)
end
function c17132130.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local rg=Duel.GetReleaseGroup(tp)
local rg=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=rg:SelectSubGroup(tp,c17132130.fselect,true,3,3,tp)
if sg then
......@@ -52,7 +52,7 @@ function c17132130.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
end
function c17132130.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=e:GetLabelObject()
Duel.Release(g,REASON_COST)
Duel.Release(g,REASON_SPSUMMON)
g:DeleteGroup()
end
function c17132130.lp(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -16,11 +16,11 @@ c25833572.spchecks=aux.CreateChecks(Card.IsCode,{25955164,62340868,98434877})
function c25833572.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local g=Duel.GetReleaseGroup(tp)
local g=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON)
return g:CheckSubGroupEach(c25833572.spchecks,aux.mzctcheckrel,tp)
end
function c25833572.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local g=Duel.GetReleaseGroup(tp)
local g=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=g:SelectSubGroupEach(tp,c25833572.spchecks,true,aux.mzctcheckrel,tp)
if sg then
......@@ -31,6 +31,6 @@ function c25833572.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
end
function c25833572.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=e:GetLabelObject()
Duel.Release(g,REASON_COST)
Duel.Release(g,REASON_SPSUMMON)
g:DeleteGroup()
end
......@@ -48,11 +48,11 @@ end
function c28651380.sprcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local rg=Duel.GetReleaseGroup(tp)
local rg=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON)
return rg:CheckSubGroup(aux.mzctcheckrel,3,3,tp)
end
function c28651380.sprtg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local rg=Duel.GetReleaseGroup(tp)
local rg=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=rg:SelectSubGroup(tp,aux.mzctcheckrel,true,3,3,tp)
if sg then
......@@ -63,7 +63,7 @@ function c28651380.sprtg(e,tp,eg,ep,ev,re,r,rp,chk,c)
end
function c28651380.sprop(e,tp,eg,ep,ev,re,r,rp,c)
local g=e:GetLabelObject()
Duel.Release(g,REASON_COST)
Duel.Release(g,REASON_SPSUMMON)
g:DeleteGroup()
end
function c28651380.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -43,11 +43,11 @@ end
function c28711704.hspcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local rg=Duel.GetReleaseGroup(tp,true):Filter(c28711704.rfilter,c,tp)
local rg=Duel.GetReleaseGroup(tp,true,REASON_SPSUMMON):Filter(c28711704.rfilter,c,tp)
return rg:CheckSubGroup(c28711704.fselect,1,rg:GetCount(),tp)
end
function c28711704.hsptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local rg=Duel.GetReleaseGroup(tp,true):Filter(c28711704.rfilter,c,tp)
local rg=Duel.GetReleaseGroup(tp,true,REASON_SPSUMMON):Filter(c28711704.rfilter,c,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=rg:SelectSubGroup(tp,c28711704.fselect,true,1,rg:GetCount(),tp)
if sg then
......@@ -58,7 +58,7 @@ function c28711704.hsptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
end
function c28711704.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local g=e:GetLabelObject()
Duel.Release(g,REASON_COST)
Duel.Release(g,REASON_SPSUMMON)
end
function c28711704.cfilter1(c)
return c:IsFaceup() and c:IsCode(15259703)
......
......@@ -76,14 +76,14 @@ function c29432356.hspcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local g=Duel.GetFieldGroup(tp,LOCATION_MZONE,0)
local rg=Duel.GetReleaseGroup(tp)
local rg=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON)
return (g:GetCount()>0 or rg:GetCount()>0) and g:FilterCount(Card.IsReleasable,nil)==g:GetCount()
and g:FilterCount(Card.IsSetCard,nil,0xc4)>=3
and Duel.GetLocationCountFromEx(tp,tp,g,c)>0
end
function c29432356.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.GetReleaseGroup(tp)
Duel.Release(g,REASON_COST)
local g=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON)
Duel.Release(g,REASON_SPSUMMON)
end
function c29432356.penop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -38,11 +38,11 @@ end
function c32750510.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local rg=Duel.GetReleaseGroup(tp):Filter(c32750510.rfilter,nil,tp)
local rg=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON):Filter(c32750510.rfilter,nil,tp)
return rg:CheckSubGroup(aux.mzctcheckrel,2,2,tp)
end
function c32750510.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local rg=Duel.GetReleaseGroup(tp):Filter(c32750510.rfilter,nil,tp)
local rg=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON):Filter(c32750510.rfilter,nil,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=rg:SelectSubGroup(tp,aux.mzctcheckrel,true,2,2,tp)
if sg then
......@@ -53,7 +53,7 @@ function c32750510.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
end
function c32750510.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=e:GetLabelObject()
Duel.Release(g,REASON_COST)
Duel.Release(g,REASON_SPSUMMON)
g:DeleteGroup()
end
function c32750510.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
......@@ -31,11 +31,11 @@ end
function c33022867.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local rg=Duel.GetReleaseGroup(tp)
local rg=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON)
return rg:CheckSubGroup(aux.mzctcheck,3,3,tp)
end
function c33022867.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local rg=Duel.GetReleaseGroup(tp)
local rg=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=rg:SelectSubGroup(tp,aux.mzctcheck,true,3,3,tp)
if sg then
......@@ -46,7 +46,7 @@ function c33022867.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
end
function c33022867.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=e:GetLabelObject()
Duel.Release(g,REASON_COST)
Duel.Release(g,REASON_SPSUMMON)
local atk=0
local tc=g:GetFirst()
while tc do
......
......@@ -48,11 +48,11 @@ end
function c34079868.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local g=Duel.GetReleaseGroup(tp)
local g=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON)
return g:CheckSubGroup(c34079868.fselect,2,2,tp)
end
function c34079868.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local g=Duel.GetReleaseGroup(tp)
local g=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=g:SelectSubGroup(tp,c34079868.fselect,true,2,2,tp)
if sg then
......@@ -63,7 +63,7 @@ function c34079868.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
end
function c34079868.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=e:GetLabelObject()
Duel.Release(g,REASON_COST)
Duel.Release(g,REASON_SPSUMMON)
g:DeleteGroup()
end
function c34079868.discon(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -30,7 +30,7 @@ end
function c36982581.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
local mg1=Duel.GetRitualMaterial(tp)
local mg2=Duel.GetReleaseGroup(1-tp):Filter(c36982581.cfilter,nil,e,1-tp)
local mg2=Duel.GetReleaseGroup(1-tp,false,REASON_EFFECT):Filter(c36982581.cfilter,nil,e,1-tp)
return Duel.IsExistingMatchingCard(aux.RitualUltimateFilter,tp,LOCATION_HAND,0,1,nil,c36982581.rfilter1,e,tp,mg1,nil,Card.GetLevel,"Equal")
or (mg2:GetCount()>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c36982581.rfilter2,tp,LOCATION_HAND,0,1,nil,e,tp))
......@@ -41,7 +41,7 @@ function c36982581.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
::cancel::
local mg1=Duel.GetRitualMaterial(tp)
local mg2=Duel.GetReleaseGroup(1-tp):Filter(c36982581.cfilter,nil,e,1-tp)
local mg2=Duel.GetReleaseGroup(1-tp,false,REASON_EFFECT):Filter(c36982581.cfilter,nil,e,1-tp)
local g1=Duel.GetMatchingGroup(aux.RitualUltimateFilter,tp,LOCATION_HAND,0,nil,c36982581.rfilter1,e,tp,mg1,nil,Card.GetLevel,"Equal")
local g2=nil
local g=g1
......
......@@ -57,12 +57,12 @@ end
function c38369349.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local rg=Duel.GetReleaseGroup(tp)
local rg=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON)
return Duel.IsExistingMatchingCard(c38369349.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
and rg:CheckSubGroup(aux.mzctcheckrel,2,2,tp)
end
function c38369349.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local rg=Duel.GetReleaseGroup(tp)
local rg=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=rg:SelectSubGroup(tp,aux.mzctcheckrel,true,2,2,tp)
if sg then
......@@ -73,7 +73,7 @@ function c38369349.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
end
function c38369349.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=e:GetLabelObject()
Duel.Release(g,REASON_COST)
Duel.Release(g,REASON_SPSUMMON)
g:DeleteGroup()
end
function c38369349.sfilter(c)
......
......@@ -29,11 +29,11 @@ end
function c48948935.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local rg=Duel.GetReleaseGroup(tp)
local rg=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON)
return rg:CheckSubGroup(c48948935.fselect,2,2,tp)
end
function c48948935.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local rg=Duel.GetReleaseGroup(tp)
local rg=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=rg:SelectSubGroup(tp,c48948935.fselect,true,2,2,tp)
if sg then
......@@ -44,7 +44,7 @@ function c48948935.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
end
function c48948935.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=e:GetLabelObject()
Duel.Release(g,REASON_COST)
Duel.Release(g,REASON_SPSUMMON)
g:DeleteGroup()
end
function c48948935.eqcon(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -57,12 +57,12 @@ end
function c53183600.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local rg=Duel.GetReleaseGroup(tp)
local rg=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON)
return Duel.IsExistingMatchingCard(c53183600.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
and rg:CheckSubGroup(aux.mzctcheckrel,2,2,tp)
end
function c53183600.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local rg=Duel.GetReleaseGroup(tp)
local rg=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=rg:SelectSubGroup(tp,aux.mzctcheckrel,true,2,2,tp)
if sg then
......@@ -73,7 +73,7 @@ function c53183600.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
end
function c53183600.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=e:GetLabelObject()
Duel.Release(g,REASON_COST)
Duel.Release(g,REASON_SPSUMMON)
g:DeleteGroup()
end
function c53183600.sfilter(c)
......
......@@ -44,11 +44,11 @@ end
function c62098216.sprcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local rg=Duel.GetReleaseGroup(tp):Filter(Card.IsType,nil,TYPE_LINK)
local rg=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON):Filter(Card.IsType,nil,TYPE_LINK)
return rg:CheckSubGroup(aux.mzctcheckrel,2,2,tp)
end
function c62098216.sprtg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local rg=Duel.GetReleaseGroup(tp):Filter(Card.IsType,nil,TYPE_LINK)
local rg=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON):Filter(Card.IsType,nil,TYPE_LINK)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=rg:SelectSubGroup(tp,aux.mzctcheckrel,true,2,2,tp)
if sg then
......@@ -59,7 +59,7 @@ function c62098216.sprtg(e,tp,eg,ep,ev,re,r,rp,chk,c)
end
function c62098216.sprop(e,tp,eg,ep,ev,re,r,rp,c)
local g=e:GetLabelObject()
Duel.Release(g,REASON_COST)
Duel.Release(g,REASON_SPSUMMON)
g:DeleteGroup()
end
function c62098216.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -41,14 +41,14 @@ end
function s.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local g=Duel.GetReleaseGroup(tp):Filter(Card.IsSetCard,nil,0x188)
local g=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON):Filter(Card.IsSetCard,nil,0x188)
return g:CheckSubGroup(aux.mzctcheckrel,2,2,tp)
end
function s.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.GetReleaseGroup(tp):Filter(Card.IsSetCard,nil,0x188)
local g=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON):Filter(Card.IsSetCard,nil,0x188)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=g:SelectSubGroup(tp,aux.mzctcheckrel,false,2,2,tp)
Duel.Release(sg,REASON_COST)
Duel.Release(sg,REASON_SPSUMMON)
end
function s.negcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_VALUE_SELF)
......
......@@ -46,11 +46,11 @@ end
function c69890967.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local rg=Duel.GetReleaseGroup(tp):Filter(c69890967.rfilter,nil,tp)
local rg=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON):Filter(c69890967.rfilter,nil,tp)
return rg:CheckSubGroup(aux.mzctcheckrel,3,3,tp)
end
function c69890967.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local rg=Duel.GetReleaseGroup(tp):Filter(c69890967.rfilter,nil,tp)
local rg=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON):Filter(c69890967.rfilter,nil,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=rg:SelectSubGroup(tp,aux.mzctcheckrel,true,3,3,tp)
if sg then
......@@ -61,7 +61,7 @@ function c69890967.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
end
function c69890967.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=e:GetLabelObject()
Duel.Release(g,REASON_COST)
Duel.Release(g,REASON_SPSUMMON)
g:DeleteGroup()
end
function c69890967.tkcon(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -115,15 +115,15 @@ end
function c70335319.hspcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local g=Duel.GetReleaseGroup(tp)
local g=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON)
return g:GetCount()>=2 and g:FilterCount(Card.IsReleasable,nil)==g:GetCount()
and g:IsExists(c70335319.hspfilter,1,nil)
and (c:IsLocation(LOCATION_EXTRA) and Duel.GetLocationCountFromEx(tp,tp,g,c)>0
or c:IsLocation(LOCATION_HAND) and Duel.GetMZoneCount(tp,g,tp)>0)
end
function c70335319.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.GetReleaseGroup(tp)
Duel.Release(g,REASON_COST)
local g=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON)
Duel.Release(g,REASON_SPSUMMON)
end
function c70335319.atkcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -30,11 +30,11 @@ end
function c75347539.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local g=Duel.GetReleaseGroup(tp,true)
local g=Duel.GetReleaseGroup(tp,true,REASON_SPSUMMON)
return g:CheckSubGroupEach(c75347539.spchecks,c75347539.fselect,tp)
end
function c75347539.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local g=Duel.GetReleaseGroup(tp,true)
local g=Duel.GetReleaseGroup(tp,true,REASON_SPSUMMON)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=g:SelectSubGroupEach(tp,c75347539.spchecks,true,c75347539.fselect,tp)
if sg then
......@@ -45,7 +45,7 @@ function c75347539.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
end
function c75347539.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=e:GetLabelObject()
Duel.Release(g,REASON_COST)
Duel.Release(g,REASON_SPSUMMON)
g:DeleteGroup()
end
function c75347539.cost(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -90,11 +90,11 @@ end
function c80776622.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local rg=Duel.GetReleaseGroup(tp):Filter(c80776622.rfilter,nil,tp)
local rg=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON):Filter(c80776622.rfilter,nil,tp)
return rg:CheckSubGroup(aux.mzctcheckrel,2,2,tp)
end
function c80776622.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local rg=Duel.GetReleaseGroup(tp):Filter(c80776622.rfilter,nil,tp)
local rg=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON):Filter(c80776622.rfilter,nil,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=rg:SelectSubGroup(tp,aux.mzctcheckrel,true,2,2,tp)
if sg then
......@@ -105,7 +105,7 @@ function c80776622.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
end
function c80776622.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=e:GetLabelObject()
Duel.Release(g,REASON_COST)
Duel.Release(g,REASON_SPSUMMON)
g:DeleteGroup()
end
function c80776622.pfilter(c)
......
......@@ -42,11 +42,11 @@ end
function c83965310.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local rg=Duel.GetReleaseGroup(tp)
local rg=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON)
return rg:CheckSubGroup(aux.mzctcheckrel,3,3,tp)
end
function c83965310.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local rg=Duel.GetReleaseGroup(tp)
local rg=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=rg:SelectSubGroup(tp,aux.mzctcheckrel,true,3,3,tp)
if sg then
......@@ -57,7 +57,7 @@ function c83965310.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
end
function c83965310.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=e:GetLabelObject()
Duel.Release(g,REASON_COST)
Duel.Release(g,REASON_SPSUMMON)
g:DeleteGroup()
end
function c83965310.cfilter(c)
......
......@@ -37,11 +37,11 @@ end
function c88619463.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local rg=Duel.GetReleaseGroup(tp):Filter(c88619463.rfilter,nil,tp)
local rg=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON):Filter(c88619463.rfilter,nil,tp)
return rg:CheckSubGroup(aux.mzctcheckrel,2,2,tp)
end
function c88619463.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local rg=Duel.GetReleaseGroup(tp):Filter(c88619463.rfilter,nil,tp)
local rg=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON):Filter(c88619463.rfilter,nil,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=rg:SelectSubGroup(tp,aux.mzctcheckrel,true,2,2,tp)
if sg then
......@@ -52,7 +52,7 @@ function c88619463.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
end
function c88619463.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=e:GetLabelObject()
Duel.Release(g,REASON_COST)
Duel.Release(g,REASON_SPSUMMON)
g:DeleteGroup()
end
function c88619463.discon(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -30,11 +30,11 @@ end
function c93717133.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local rg=Duel.GetReleaseGroup(tp):Filter(c93717133.rfilter,nil,tp)
local rg=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON):Filter(c93717133.rfilter,nil,tp)
return rg:CheckSubGroup(aux.mzctcheckrel,2,2,tp)
end
function c93717133.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local rg=Duel.GetReleaseGroup(tp):Filter(c93717133.rfilter,nil,tp)
local rg=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON):Filter(c93717133.rfilter,nil,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=rg:SelectSubGroup(tp,aux.mzctcheckrel,true,2,2,tp)
if sg then
......@@ -45,7 +45,7 @@ function c93717133.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
end
function c93717133.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=e:GetLabelObject()
Duel.Release(g,REASON_COST)
Duel.Release(g,REASON_SPSUMMON)
g:DeleteGroup()
c:RegisterFlagEffect(0,RESET_EVENT+0x4fc0000,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(93717133,1))
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