Commit 35cf1d49 authored by Chen Bill's avatar Chen Bill

Merge branch 'patch-check-release' (#2242)

parents 9e2a7b45 728462e3
...@@ -31,11 +31,11 @@ end ...@@ -31,11 +31,11 @@ end
function c10000.spcon(e,c) function c10000.spcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() 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) return rg:CheckSubGroup(c10000.fselect,1,rg:GetCount(),tp)
end end
function c10000.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c) 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) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=rg:SelectSubGroup(tp,c10000.fselect,true,1,rg:GetCount(),tp) local sg=rg:SelectSubGroup(tp,c10000.fselect,true,1,rg:GetCount(),tp)
if sg then if sg then
...@@ -46,7 +46,7 @@ function c10000.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c) ...@@ -46,7 +46,7 @@ function c10000.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
end end
function c10000.spop(e,tp,eg,ep,ev,re,r,rp,c) function c10000.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=e:GetLabelObject() local g=e:GetLabelObject()
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_ATTACK) e1:SetCode(EFFECT_SET_ATTACK)
......
...@@ -88,14 +88,14 @@ function c10000000.tgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -88,14 +88,14 @@ function c10000000.tgop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c10000000.descost(e,tp,eg,ep,ev,re,r,rp,chk) function c10000000.descost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():GetAttackAnnouncedCount()==0 and Duel.CheckReleaseGroup(tp,nil,2,nil) end if chk==0 then return e:GetHandler():GetAttackAnnouncedCount()==0 and Duel.CheckReleaseGroup(REASON_COST,tp,nil,2,nil) end
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_OATH) e1:SetProperty(EFFECT_FLAG_OATH)
e1:SetCode(EFFECT_CANNOT_ATTACK_ANNOUNCE) e1:SetCode(EFFECT_CANNOT_ATTACK_ANNOUNCE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
e:GetHandler():RegisterEffect(e1) e:GetHandler():RegisterEffect(e1)
local g=Duel.SelectReleaseGroup(tp,nil,2,2,nil) local g=Duel.SelectReleaseGroup(REASON_COST,tp,nil,2,2,nil)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c10000000.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c10000000.destg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -36,11 +36,11 @@ c10000040.spchecks=aux.CreateChecks(Card.IsOriginalCodeRule,{10000020,10000000,1 ...@@ -36,11 +36,11 @@ c10000040.spchecks=aux.CreateChecks(Card.IsOriginalCodeRule,{10000020,10000000,1
function c10000040.spcon(e,c) function c10000040.spcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() 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) return g:CheckSubGroupEach(c10000040.spchecks,aux.mzctcheckrel,tp)
end end
function c10000040.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c) 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) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=g:SelectSubGroupEach(tp,c10000040.spchecks,true,aux.mzctcheckrel,tp) local sg=g:SelectSubGroupEach(tp,c10000040.spchecks,true,aux.mzctcheckrel,tp)
if sg then if sg then
...@@ -51,7 +51,7 @@ function c10000040.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c) ...@@ -51,7 +51,7 @@ function c10000040.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
end end
function c10000040.spop(e,tp,eg,ep,ev,re,r,rp,c) function c10000040.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=e:GetLabelObject() local g=e:GetLabelObject()
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
g:DeleteGroup() g:DeleteGroup()
end end
function c10000040.winop(e,tp,eg,ep,ev,re,r,rp) function c10000040.winop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -38,8 +38,8 @@ function c10026986.otop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -38,8 +38,8 @@ function c10026986.otop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL) Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
end end
function c10026986.descost(e,tp,eg,ep,ev,re,r,rp,chk) function c10026986.descost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c10026986.cfilter,1,nil,tp) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c10026986.cfilter,1,nil,tp) end
local sg=Duel.SelectReleaseGroup(tp,c10026986.cfilter,1,1,nil,tp) local sg=Duel.SelectReleaseGroup(REASON_COST,tp,c10026986.cfilter,1,1,nil,tp)
Duel.Release(sg,REASON_COST) Duel.Release(sg,REASON_COST)
end end
function c10026986.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c10026986.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -40,8 +40,8 @@ function c1003840.spfilter(c,e,tp,lv) ...@@ -40,8 +40,8 @@ function c1003840.spfilter(c,e,tp,lv)
end end
function c1003840.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c1003840.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if chk==0 then return ft>-1 and Duel.CheckReleaseGroup(tp,c1003840.cfilter,1,nil,e,tp,ft) end if chk==0 then return ft>-1 and Duel.CheckReleaseGroup(REASON_COST,tp,c1003840.cfilter,1,nil,e,tp,ft) end
local g=Duel.SelectReleaseGroup(tp,c1003840.cfilter,1,1,nil,e,tp,ft) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c1003840.cfilter,1,1,nil,e,tp,ft)
e:SetLabel(g:GetFirst():GetLevel()) e:SetLabel(g:GetFirst():GetLevel())
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
......
...@@ -73,14 +73,14 @@ function s.gcheck(g,tp,ec,sc) ...@@ -73,14 +73,14 @@ function s.gcheck(g,tp,ec,sc)
end end
function s.sstg(e,tp,eg,ep,ev,re,r,rp,chk) function s.sstg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() 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 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 and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp,g) end
Duel.SetOperationInfo(0,CATEGORY_RELEASE,g,2,0,0) Duel.SetOperationInfo(0,CATEGORY_RELEASE,g,2,0,0)
end end
function s.ssop(e,tp,eg,ep,ev,re,r,rp) function s.ssop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() 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 if not (c:IsRelateToEffect(e) and c:IsReleasableByEffect()) or #g==0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) 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() local tc=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,g):GetFirst()
......
...@@ -40,11 +40,11 @@ end ...@@ -40,11 +40,11 @@ end
function c102380.spcon(e,c) function c102380.spcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local rg=Duel.GetMatchingGroup(Card.IsReleasable,tp,0,LOCATION_MZONE,nil) local rg=Duel.GetMatchingGroup(Card.IsReleasable,tp,0,LOCATION_MZONE,nil,REASON_SPSUMMON)
return rg:CheckSubGroup(c102380.fselect,2,2,tp) return rg:CheckSubGroup(c102380.fselect,2,2,tp)
end end
function c102380.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c) function c102380.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local rg=Duel.GetMatchingGroup(Card.IsReleasable,tp,0,LOCATION_MZONE,nil) local rg=Duel.GetMatchingGroup(Card.IsReleasable,tp,0,LOCATION_MZONE,nil,REASON_SPSUMMON)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=rg:SelectSubGroup(tp,c102380.fselect,true,2,2,tp) local sg=rg:SelectSubGroup(tp,c102380.fselect,true,2,2,tp)
if sg then if sg then
...@@ -55,7 +55,7 @@ function c102380.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c) ...@@ -55,7 +55,7 @@ function c102380.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
end end
function c102380.spop(e,tp,eg,ep,ev,re,r,rp,c) function c102380.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=e:GetLabelObject() local g=e:GetLabelObject()
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
g:DeleteGroup() g:DeleteGroup()
end end
function c102380.damcon(e,tp,eg,ep,ev,re,r,rp) function c102380.damcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -38,10 +38,10 @@ function c1041278.spfilter3(c,e,tp) ...@@ -38,10 +38,10 @@ function c1041278.spfilter3(c,e,tp)
end end
function c1041278.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c1041278.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(c1041278.spfilter0,tp,LOCATION_GRAVE+LOCATION_REMOVED,LOCATION_GRAVE+LOCATION_REMOVED,nil,e,tp) local g=Duel.GetMatchingGroup(c1041278.spfilter0,tp,LOCATION_GRAVE+LOCATION_REMOVED,LOCATION_GRAVE+LOCATION_REMOVED,nil,e,tp)
local b1=Duel.CheckReleaseGroup(tp,c1041278.rfilter1,1,nil,tp) local b1=Duel.CheckReleaseGroup(REASON_COST,tp,c1041278.rfilter1,1,nil,tp)
and Duel.GetLocationCount(1-tp,LOCATION_MZONE,tp)>0 and Duel.GetLocationCount(1-tp,LOCATION_MZONE,tp)>0
and g:IsExists(c1041278.spfilter1,1,nil,e,tp,g) and g:IsExists(c1041278.spfilter1,1,nil,e,tp,g)
local b2=Duel.CheckReleaseGroup(tp,c1041278.rfilter2,1,nil,tp) local b2=Duel.CheckReleaseGroup(REASON_COST,tp,c1041278.rfilter2,1,nil,tp)
and g:IsExists(c1041278.spfilter3,2,nil,e,tp) and g:IsExists(c1041278.spfilter3,2,nil,e,tp)
if chk==0 then return b1 or b2 end if chk==0 then return b1 or b2 end
local rfilter=c1041278.rfilter1 local rfilter=c1041278.rfilter1
...@@ -49,7 +49,7 @@ function c1041278.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -49,7 +49,7 @@ function c1041278.cost(e,tp,eg,ep,ev,re,r,rp,chk)
rfilter=c1041278.rfilter2 rfilter=c1041278.rfilter2
end end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local rg=Duel.SelectReleaseGroup(tp,rfilter,1,1,nil,tp) local rg=Duel.SelectReleaseGroup(REASON_COST,tp,rfilter,1,1,nil,tp)
local rc=rg:GetFirst() local rc=rg:GetFirst()
e:SetLabelObject(rc) e:SetLabelObject(rc)
Duel.Release(rg,REASON_COST) Duel.Release(rg,REASON_COST)
......
...@@ -31,11 +31,11 @@ function c10485110.initial_effect(c) ...@@ -31,11 +31,11 @@ function c10485110.initial_effect(c)
end end
function c10485110.spcon(e,c) function c10485110.spcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.CheckReleaseGroup(c:GetControler(),Card.IsCode,1,nil,37721209) return Duel.CheckReleaseGroup(REASON_SPSUMMON,c:GetControler(),Card.IsCode,1,nil,37721209)
end end
function c10485110.spop(e,tp,eg,ep,ev,re,r,rp,c) function c10485110.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectReleaseGroup(tp,Card.IsCode,1,1,nil,37721209) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,Card.IsCode,1,1,nil,37721209)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c10485110.cfilter(c) function c10485110.cfilter(c)
return c:IsFaceup() and c:IsCode(22702055) and c:IsAbleToGraveAsCost() return c:IsFaceup() and c:IsCode(22702055) and c:IsAbleToGraveAsCost()
......
...@@ -15,8 +15,8 @@ function c10759529.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -15,8 +15,8 @@ function c10759529.condition(e,tp,eg,ep,ev,re,r,rp)
return tp~=Duel.GetTurnPlayer() return tp~=Duel.GetTurnPlayer()
end end
function c10759529.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c10759529.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsCode,1,nil,32679370) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsCode,1,nil,32679370) end
local g=Duel.SelectReleaseGroup(tp,Card.IsCode,1,1,nil,32679370) local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsCode,1,1,nil,32679370)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c10759529.filter(c) function c10759529.filter(c)
......
...@@ -64,9 +64,9 @@ function c11167052.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -64,9 +64,9 @@ function c11167052.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
if e:GetLabel()~=100 then return false end if e:GetLabel()~=100 then return false end
e:SetLabel(0) e:SetLabel(0)
return Duel.CheckReleaseGroup(tp,c11167052.filter1,1,nil,e,tp) return Duel.CheckReleaseGroup(REASON_COST,tp,c11167052.filter1,1,nil,e,tp)
end end
local rg=Duel.SelectReleaseGroup(tp,c11167052.filter1,1,1,nil,e,tp) local rg=Duel.SelectReleaseGroup(REASON_COST,tp,c11167052.filter1,1,1,nil,e,tp)
e:SetLabel(rg:GetFirst():GetOriginalAttribute()) e:SetLabel(rg:GetFirst():GetOriginalAttribute())
Duel.Release(rg,REASON_COST) Duel.Release(rg,REASON_COST)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
......
...@@ -13,8 +13,8 @@ function c11384280.initial_effect(c) ...@@ -13,8 +13,8 @@ function c11384280.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c11384280.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c11384280.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,nil,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,nil,1,nil) end
local sg=Duel.SelectReleaseGroup(tp,nil,1,1,nil) local sg=Duel.SelectReleaseGroup(REASON_COST,tp,nil,1,1,nil)
Duel.Release(sg,REASON_COST) Duel.Release(sg,REASON_COST)
end end
function c11384280.target(e,tp,eg,ep,ev,re,r,rp,chk) function c11384280.target(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -59,13 +59,13 @@ end ...@@ -59,13 +59,13 @@ end
function c11443677.sprcon(e,c) function c11443677.sprcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
return Duel.CheckReleaseGroup(tp,c11443677.sprfilter,1,nil,tp,c) return Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c11443677.sprfilter,1,nil,tp,c)
end end
function c11443677.sprop(e,tp,eg,ep,ev,re,r,rp,c) function c11443677.sprop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectReleaseGroup(tp,c11443677.sprfilter,1,1,nil,tp,c) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c11443677.sprfilter,1,1,nil,tp,c)
c:SetMaterial(g) c:SetMaterial(g)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c11443677.efilter(e,te) function c11443677.efilter(e,te)
return te:IsActiveType(TYPE_TRAP) return te:IsActiveType(TYPE_TRAP)
......
...@@ -50,9 +50,9 @@ function c11516241.rfilter(c,tp) ...@@ -50,9 +50,9 @@ function c11516241.rfilter(c,tp)
return c:IsSetCard(0xfc) and c:IsType(TYPE_LINK) and Duel.IsExistingTarget(aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c) return c:IsSetCard(0xfc) and c:IsType(TYPE_LINK) and Duel.IsExistingTarget(aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c)
end end
function c11516241.descost(e,tp,eg,ep,ev,re,r,rp,chk) function c11516241.descost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c11516241.rfilter,1,nil,tp) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c11516241.rfilter,1,nil,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectReleaseGroup(tp,c11516241.rfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c11516241.rfilter,1,1,nil,tp)
e:SetLabel(g:GetFirst():GetLink()) e:SetLabel(g:GetFirst():GetLink())
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
......
...@@ -24,8 +24,8 @@ function c11819616.costfilter(c) ...@@ -24,8 +24,8 @@ function c11819616.costfilter(c)
return c:IsFaceup() and c:IsRace(RACE_PLANT) and not c:IsStatus(STATUS_BATTLE_DESTROYED) return c:IsFaceup() and c:IsRace(RACE_PLANT) and not c:IsStatus(STATUS_BATTLE_DESTROYED)
end end
function c11819616.discost(e,tp,eg,ep,ev,re,r,rp,chk) function c11819616.discost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c11819616.costfilter,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c11819616.costfilter,1,nil) end
local sg=Duel.SelectReleaseGroup(tp,c11819616.costfilter,1,1,nil) local sg=Duel.SelectReleaseGroup(REASON_COST,tp,c11819616.costfilter,1,1,nil)
Duel.Release(sg,REASON_COST) Duel.Release(sg,REASON_COST)
end end
function c11819616.distg(e,tp,eg,ep,ev,re,r,rp,chk) function c11819616.distg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -4,7 +4,7 @@ function s.initial_effect(c) ...@@ -4,7 +4,7 @@ function s.initial_effect(c)
c:EnableReviveLimit() c:EnableReviveLimit()
--fusion summon --fusion summon
aux.AddFusionProcFunRep(c,s.ffilter,2,true) aux.AddFusionProcFunRep(c,s.ffilter,2,true)
aux.AddContactFusionProcedure(c,Card.IsReleasable,LOCATION_MZONE,0,Duel.Release,REASON_COST+REASON_MATERIAL) aux.AddContactFusionProcedure(c,aux.FilterBoolFunction(Card.IsReleasable,REASON_SPSUMMON),LOCATION_MZONE,0,Duel.Release,REASON_SPSUMMON+REASON_MATERIAL)
--splimit --splimit
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
...@@ -13,8 +13,8 @@ function c11975962.initial_effect(c) ...@@ -13,8 +13,8 @@ function c11975962.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c11975962.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c11975962.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsSetCard,1,nil,0x69) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsSetCard,1,nil,0x69) end
local g=Duel.SelectReleaseGroup(tp,Card.IsSetCard,1,1,nil,0x69) local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsSetCard,1,1,nil,0x69)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c11975962.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c11975962.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -35,8 +35,8 @@ function c12255007.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -35,8 +35,8 @@ function c12255007.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetAttacker():IsControler(1-tp) return Duel.GetAttacker():IsControler(1-tp)
end end
function c12255007.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c12255007.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsSetCard,1,nil,0x9f) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsSetCard,1,nil,0x9f) end
local g=Duel.SelectReleaseGroup(tp,Card.IsSetCard,1,1,nil,0x9f) local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsSetCard,1,1,nil,0x9f)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c12255007.operation(e,tp,eg,ep,ev,re,r,rp) function c12255007.operation(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -26,12 +26,12 @@ function c12338068.spcon(e,c) ...@@ -26,12 +26,12 @@ function c12338068.spcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local g=Duel.GetFieldGroup(tp,LOCATION_MZONE,0) 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() return (g:GetCount()>0 or rg:GetCount()>0) and g:FilterCount(Card.IsReleasable,nil,REASON_SPSUMMON)==g:GetCount()
end end
function c12338068.spop(e,tp,eg,ep,ev,re,r,rp,c) function c12338068.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.GetReleaseGroup(tp) local g=Duel.GetReleaseGroup(tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
local atk=0 local atk=0
local tc=g:GetFirst() local tc=g:GetFirst()
while tc do while tc do
......
...@@ -40,11 +40,11 @@ function c12510878.initial_effect(c) ...@@ -40,11 +40,11 @@ function c12510878.initial_effect(c)
end end
function c12510878.spcon(e,c) function c12510878.spcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.CheckReleaseGroup(c:GetControler(),Card.IsCode,1,nil,18036057) return Duel.CheckReleaseGroup(REASON_SPSUMMON,c:GetControler(),Card.IsCode,1,nil,18036057)
end end
function c12510878.spop(e,tp,eg,ep,ev,re,r,rp,c) function c12510878.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectReleaseGroup(c:GetControler(),Card.IsCode,1,1,nil,18036057) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,c:GetControler(),Card.IsCode,1,1,nil,18036057)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c12510878.condition(e,tp,eg,ep,ev,re,r,rp) function c12510878.condition(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp return ep~=tp
......
...@@ -27,9 +27,9 @@ function c13046291.costfilter(c,tp) ...@@ -27,9 +27,9 @@ function c13046291.costfilter(c,tp)
return c:IsRace(RACE_REPTILE) and (c:IsControler(tp) or c:IsFaceup()) and Duel.GetMZoneCount(tp,c)>0 return c:IsRace(RACE_REPTILE) and (c:IsControler(tp) or c:IsFaceup()) and Duel.GetMZoneCount(tp,c)>0
end end
function c13046291.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c13046291.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c13046291.costfilter,1,nil,tp) if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c13046291.costfilter,1,nil,tp)
and Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end and Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end
local g=Duel.SelectReleaseGroup(tp,c13046291.costfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c13046291.costfilter,1,1,nil,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD) Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
end end
......
...@@ -54,11 +54,11 @@ end ...@@ -54,11 +54,11 @@ end
function c13224603.hspcon(e,c) function c13224603.hspcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
return Duel.CheckReleaseGroup(tp,c13224603.hspfilter,1,nil,tp) return Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c13224603.hspfilter,1,nil,tp)
end end
function c13224603.hspop(e,tp,eg,ep,ev,re,r,rp,c) function c13224603.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectReleaseGroup(tp,c13224603.hspfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c13224603.hspfilter,1,1,nil,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c13224603.sumcon(e,tp,eg,ep,ev,re,r,rp) function c13224603.sumcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetFlagEffect(13224603)>0 return e:GetHandler():GetFlagEffect(13224603)>0
......
...@@ -56,11 +56,11 @@ function c132308.costfilter(c,tp) ...@@ -56,11 +56,11 @@ function c132308.costfilter(c,tp)
and (c:IsRace(RACE_PLANT) or c:IsHasEffect(76869711,tp) and c:IsControler(1-tp)) and (c:IsRace(RACE_PLANT) or c:IsHasEffect(76869711,tp) and c:IsControler(1-tp))
end end
function c132308.discost(e,tp,eg,ep,ev,re,r,rp,chk) function c132308.discost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToDeckAsCost() and Duel.CheckReleaseGroup(tp,c132308.costfilter,1,nil,tp) end if chk==0 then return e:GetHandler():IsAbleToDeckAsCost() and Duel.CheckReleaseGroup(REASON_COST,tp,c132308.costfilter,1,nil,tp) end
Duel.ConfirmCards(1-tp,e:GetHandler()) Duel.ConfirmCards(1-tp,e:GetHandler())
Duel.SendtoDeck(e:GetHandler(),nil,SEQ_DECKSHUFFLE,REASON_COST) Duel.SendtoDeck(e:GetHandler(),nil,SEQ_DECKSHUFFLE,REASON_COST)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectReleaseGroup(tp,c132308.costfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c132308.costfilter,1,1,nil,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c132308.distg(e,tp,eg,ep,ev,re,r,rp,chk) function c132308.distg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -5,7 +5,7 @@ function s.initial_effect(c) ...@@ -5,7 +5,7 @@ function s.initial_effect(c)
--material --material
aux.AddFusionProcFunRep(c,s.mfilter,2,true) aux.AddFusionProcFunRep(c,s.mfilter,2,true)
--spsum condition --spsum condition
aux.AddContactFusionProcedure(c,Card.IsReleasable,LOCATION_MZONE,0,Duel.Release,REASON_COST+REASON_MATERIAL) aux.AddContactFusionProcedure(c,aux.FilterBoolFunction(Card.IsReleasable,REASON_SPSUMMON),LOCATION_MZONE,0,Duel.Release,REASON_SPSUMMON+REASON_MATERIAL)
--splimit --splimit
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
...@@ -18,8 +18,8 @@ function c13361027.cfilter(c,tp) ...@@ -18,8 +18,8 @@ function c13361027.cfilter(c,tp)
and Duel.GetMZoneCount(tp,c)>0 and (c:IsControler(tp) or c:IsFaceup()) and Duel.GetMZoneCount(tp,c)>0 and (c:IsControler(tp) or c:IsFaceup())
end end
function c13361027.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c13361027.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c13361027.cfilter,1,nil,tp) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c13361027.cfilter,1,nil,tp) end
local rg=Duel.SelectReleaseGroup(tp,c13361027.cfilter,1,1,nil,tp) local rg=Duel.SelectReleaseGroup(REASON_COST,tp,c13361027.cfilter,1,1,nil,tp)
Duel.Release(rg,REASON_COST) Duel.Release(rg,REASON_COST)
end end
function c13361027.filter(c,e,sp) function c13361027.filter(c,e,sp)
......
...@@ -25,8 +25,8 @@ function c13452889.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -25,8 +25,8 @@ function c13452889.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local zone={} local zone={}
zone[0]=c:GetLinkedZone(0) zone[0]=c:GetLinkedZone(0)
zone[1]=c:GetLinkedZone(1) zone[1]=c:GetLinkedZone(1)
if chk==0 then return Duel.CheckReleaseGroup(tp,c13452889.cfilter,1,nil,tp,lg,zone) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c13452889.cfilter,1,nil,tp,lg,zone) end
local g=Duel.SelectReleaseGroup(tp,c13452889.cfilter,1,1,nil,tp,lg,zone) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c13452889.cfilter,1,1,nil,tp,lg,zone)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c13452889.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c13452889.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -21,8 +21,8 @@ function c13629812.initial_effect(c) ...@@ -21,8 +21,8 @@ function c13629812.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c13629812.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c13629812.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsSetCard,1,nil,0x2b) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsSetCard,1,nil,0x2b) end
local g=Duel.SelectReleaseGroup(tp,Card.IsSetCard,1,1,nil,0x2b) local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsSetCard,1,1,nil,0x2b)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c13629812.filter(c) function c13629812.filter(c)
......
...@@ -15,8 +15,8 @@ function c13972452.cfilter(c) ...@@ -15,8 +15,8 @@ function c13972452.cfilter(c)
return c:IsRace(RACE_SPELLCASTER) and c:IsAttribute(ATTRIBUTE_WIND) return c:IsRace(RACE_SPELLCASTER) and c:IsAttribute(ATTRIBUTE_WIND)
end end
function c13972452.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c13972452.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c13972452.cfilter,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c13972452.cfilter,1,nil) end
local g=Duel.SelectReleaseGroup(tp,c13972452.cfilter,1,1,nil) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c13972452.cfilter,1,1,nil)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c13972452.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c13972452.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -20,9 +20,9 @@ end ...@@ -20,9 +20,9 @@ end
function c14141448.spcon(e,c) function c14141448.spcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>-1 return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>-1
and Duel.CheckReleaseGroup(c:GetControler(),c14141448.rfilter,1,nil) and Duel.CheckReleaseGroup(REASON_SPSUMMON,c:GetControler(),c14141448.rfilter,1,nil)
end end
function c14141448.spop(e,tp,eg,ep,ev,re,r,rp,c) function c14141448.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectReleaseGroup(c:GetControler(),c14141448.rfilter,1,1,nil) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,c:GetControler(),c14141448.rfilter,1,1,nil)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
...@@ -25,7 +25,7 @@ function c14644902.rfilter2(c,tp) ...@@ -25,7 +25,7 @@ function c14644902.rfilter2(c,tp)
end end
function c14644902.operation(e,tp,eg,ep,ev,re,r,rp) function c14644902.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local rg=Duel.SelectReleaseGroup(tp,c14644902.rfilter,1,1,aux.ExceptThisCard(e),e,tp) local rg=Duel.SelectReleaseGroup(REASON_EFFECT,tp,c14644902.rfilter,1,1,aux.ExceptThisCard(e),e,tp)
if Duel.Release(rg,REASON_EFFECT)>0 then if Duel.Release(rg,REASON_EFFECT)>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=Duel.SelectMatchingCard(tp,c14644902.filter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp) local sg=Duel.SelectMatchingCard(tp,c14644902.filter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp)
...@@ -47,7 +47,7 @@ function c14644902.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,7 +47,7 @@ function c14644902.operation(e,tp,eg,ep,ev,re,r,rp)
end end
end end
if #rg==0 then if #rg==0 then
rg=Duel.SelectReleaseGroup(tp,c14644902.rfilter2,1,1,aux.ExceptThisCard(e),tp) rg=Duel.SelectReleaseGroup(REASON_EFFECT,tp,c14644902.rfilter2,1,1,aux.ExceptThisCard(e),tp)
if #rg>0 then if #rg>0 then
Duel.Release(rg,REASON_EFFECT) Duel.Release(rg,REASON_EFFECT)
end end
......
...@@ -13,8 +13,8 @@ function c14702066.initial_effect(c) ...@@ -13,8 +13,8 @@ function c14702066.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c14702066.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c14702066.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,nil,2,nil) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,nil,2,nil) end
local sg=Duel.SelectReleaseGroup(tp,nil,2,2,nil) local sg=Duel.SelectReleaseGroup(REASON_COST,tp,nil,2,2,nil)
Duel.Release(sg,REASON_COST) Duel.Release(sg,REASON_COST)
end end
function c14702066.target(e,tp,eg,ep,ev,re,r,rp,chk) function c14702066.target(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -14,8 +14,8 @@ function c1474910.cfilter(c) ...@@ -14,8 +14,8 @@ function c1474910.cfilter(c)
return c:IsFaceup() and c:IsRace(RACE_INSECT) and not c:IsCode(1474910) return c:IsFaceup() and c:IsRace(RACE_INSECT) and not c:IsCode(1474910)
end end
function c1474910.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c1474910.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsReleasable() and Duel.CheckReleaseGroup(tp,c1474910.cfilter,1,nil) end if chk==0 then return e:GetHandler():IsReleasable() and Duel.CheckReleaseGroup(REASON_COST,tp,c1474910.cfilter,1,nil) end
local g=Duel.SelectReleaseGroup(tp,c1474910.cfilter,1,1,nil) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c1474910.cfilter,1,1,nil)
g:AddCard(e:GetHandler()) g:AddCard(e:GetHandler())
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
......
...@@ -97,8 +97,8 @@ function c14799437.cfilter(c) ...@@ -97,8 +97,8 @@ function c14799437.cfilter(c)
return not c:IsStatus(STATUS_BATTLE_DESTROYED) return not c:IsStatus(STATUS_BATTLE_DESTROYED)
end end
function c14799437.negcost(e,tp,eg,ep,ev,re,r,rp,chk) function c14799437.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c14799437.cfilter,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c14799437.cfilter,1,nil) end
local g=Duel.SelectReleaseGroup(tp,c14799437.cfilter,1,1,nil) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c14799437.cfilter,1,1,nil)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c14799437.negop(e,tp,eg,ep,ev,re,r,rp) function c14799437.negop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -25,8 +25,8 @@ function c14882493.initial_effect(c) ...@@ -25,8 +25,8 @@ function c14882493.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c14882493.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function c14882493.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsAttribute,1,e:GetHandler(),ATTRIBUTE_DARK) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsAttribute,1,e:GetHandler(),ATTRIBUTE_DARK) end
local g=Duel.SelectReleaseGroup(tp,Card.IsAttribute,1,1,e:GetHandler(),ATTRIBUTE_DARK) local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsAttribute,1,1,e:GetHandler(),ATTRIBUTE_DARK)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c14882493.filter(c) function c14882493.filter(c)
......
...@@ -53,8 +53,8 @@ function c1508649.cfilter(c,g) ...@@ -53,8 +53,8 @@ function c1508649.cfilter(c,g)
end end
function c1508649.discost(e,tp,eg,ep,ev,re,r,rp,chk) function c1508649.discost(e,tp,eg,ep,ev,re,r,rp,chk)
local lg=e:GetHandler():GetLinkedGroup() local lg=e:GetHandler():GetLinkedGroup()
if chk==0 then return Duel.CheckReleaseGroup(tp,c1508649.cfilter,1,nil,lg) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c1508649.cfilter,1,nil,lg) end
local g=Duel.SelectReleaseGroup(tp,c1508649.cfilter,1,1,nil,lg) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c1508649.cfilter,1,1,nil,lg)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c1508649.distg(e,tp,eg,ep,ev,re,r,rp,chk) function c1508649.distg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -58,12 +58,12 @@ function c15180041.spcon(e,c) ...@@ -58,12 +58,12 @@ function c15180041.spcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return ft>-1 and Duel.CheckReleaseGroup(tp,c15180041.spfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c15180041.spfilter,1,nil,ft,tp)
end end
function c15180041.spop(e,tp,eg,ep,ev,re,r,rp,c) function c15180041.spop(e,tp,eg,ep,ev,re,r,rp,c)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local g=Duel.SelectReleaseGroup(tp,c15180041.spfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c15180041.spfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c15180041.atkop(e,tp,eg,ep,ev,re,r,rp) function c15180041.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -54,14 +54,14 @@ function c15187079.cttg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -54,14 +54,14 @@ function c15187079.cttg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then if chk==0 then
if e:GetLabel()==1 then if e:GetLabel()==1 then
e:SetLabel(0) e:SetLabel(0)
return Duel.CheckReleaseGroup(tp,c15187079.costfilter,1,c,tp) return Duel.CheckReleaseGroup(REASON_COST,tp,c15187079.costfilter,1,c,tp)
else else
return Duel.IsExistingTarget(c15187079.filter,tp,0,LOCATION_MZONE,1,nil,false) return Duel.IsExistingTarget(c15187079.filter,tp,0,LOCATION_MZONE,1,nil,false)
end end
end end
if e:GetLabel()==1 then if e:GetLabel()==1 then
e:SetLabel(0) e:SetLabel(0)
local sg=Duel.SelectReleaseGroup(tp,c15187079.costfilter,1,1,c,tp) local sg=Duel.SelectReleaseGroup(REASON_COST,tp,c15187079.costfilter,1,1,c,tp)
Duel.Release(sg,REASON_COST) Duel.Release(sg,REASON_COST)
end end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL)
......
...@@ -44,18 +44,18 @@ function c15291624.chainfilter(re,tp,cid) ...@@ -44,18 +44,18 @@ function c15291624.chainfilter(re,tp,cid)
end end
function c15291624.spfilter(c,fc,tp) function c15291624.spfilter(c,fc,tp)
return c:IsRace(RACE_THUNDER) and c:IsFusionType(TYPE_EFFECT) and not c:IsFusionType(TYPE_FUSION) return c:IsRace(RACE_THUNDER) and c:IsFusionType(TYPE_EFFECT) and not c:IsFusionType(TYPE_FUSION)
and c:IsReleasable() and Duel.GetLocationCountFromEx(tp,tp,c,fc)>0 and c:IsCanBeFusionMaterial(fc,SUMMON_TYPE_SPECIAL) and Duel.GetLocationCountFromEx(tp,tp,c,fc)>0 and c:IsCanBeFusionMaterial(fc,SUMMON_TYPE_SPECIAL)
end end
function c15291624.spcon(e,c) function c15291624.spcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
return (Duel.GetCustomActivityCount(15291624,tp,ACTIVITY_CHAIN)~=0 or Duel.GetCustomActivityCount(15291624,1-tp,ACTIVITY_CHAIN)~=0) return (Duel.GetCustomActivityCount(15291624,tp,ACTIVITY_CHAIN)~=0 or Duel.GetCustomActivityCount(15291624,1-tp,ACTIVITY_CHAIN)~=0)
and Duel.CheckReleaseGroup(tp,c15291624.spfilter,1,nil,c,tp) and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c15291624.spfilter,1,nil,c,tp)
end end
function c15291624.spop(e,tp,eg,ep,ev,re,r,rp,c) function c15291624.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectReleaseGroup(tp,c15291624.spfilter,1,1,nil,c,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c15291624.spfilter,1,1,nil,c,tp)
c:SetMaterial(g) c:SetMaterial(g)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c15291624.repfilter(c) function c15291624.repfilter(c)
return c:IsRace(RACE_THUNDER) and c:IsAbleToRemove() return c:IsRace(RACE_THUNDER) and c:IsAbleToRemove()
......
...@@ -51,8 +51,8 @@ function c15335853.indcon(e) ...@@ -51,8 +51,8 @@ function c15335853.indcon(e)
return Duel.IsExistingMatchingCard(Card.IsType,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil,TYPE_TOKEN) return Duel.IsExistingMatchingCard(Card.IsType,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil,TYPE_TOKEN)
end end
function c15335853.rmcost(e,tp,eg,ep,ev,re,r,rp,chk) function c15335853.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsType,1,nil,TYPE_TOKEN) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsType,1,nil,TYPE_TOKEN) end
local g=Duel.SelectReleaseGroup(tp,Card.IsType,1,1,nil,TYPE_TOKEN) local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsType,1,1,nil,TYPE_TOKEN)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c15335853.rmfilter(c) function c15335853.rmfilter(c)
......
...@@ -29,7 +29,7 @@ function c15717011.mfilter(c,tp) ...@@ -29,7 +29,7 @@ function c15717011.mfilter(c,tp)
return c:IsLocation(LOCATION_MZONE) and c:IsCanBeFusionMaterial() and (c:IsControler(tp) or c:IsFaceup()) return c:IsLocation(LOCATION_MZONE) and c:IsCanBeFusionMaterial() and (c:IsControler(tp) or c:IsFaceup())
end end
function c15717011.fcheck(tp,sg,fc) function c15717011.fcheck(tp,sg,fc)
return Duel.CheckReleaseGroup(tp,aux.IsInGroup,#sg,nil,sg) return Duel.CheckReleaseGroup(REASON_COST,tp,aux.IsInGroup,#sg,nil,sg)
end end
function c15717011.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c15717011.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(1) e:SetLabel(1)
......
...@@ -58,7 +58,7 @@ function c15758127.fselect(g,e,tp) ...@@ -58,7 +58,7 @@ function c15758127.fselect(g,e,tp)
end end
function c15758127.target(e,tp,eg,ep,ev,re,r,rp,chk) 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 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) local b2=g:CheckSubGroup(c15758127.fselect,2,2,e,tp)
if chk==0 then return b1 or b2 end if chk==0 then return b1 or b2 end
local s=0 local s=0
...@@ -89,7 +89,7 @@ function c15758127.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -89,7 +89,7 @@ function c15758127.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
if e:GetLabel()==1 then 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) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local rg=g:SelectSubGroup(tp,c15758127.fselect,false,2,2,e,tp) local rg=g:SelectSubGroup(tp,c15758127.fselect,false,2,2,e,tp)
if rg and rg:GetCount()==2 then if rg and rg:GetCount()==2 then
......
...@@ -62,8 +62,8 @@ function c15844566.cfilter(c,g) ...@@ -62,8 +62,8 @@ function c15844566.cfilter(c,g)
end end
function c15844566.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) function c15844566.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
local lg=e:GetHandler():GetLinkedGroup() local lg=e:GetHandler():GetLinkedGroup()
if chk==0 then return Duel.CheckReleaseGroup(tp,c15844566.cfilter,1,nil,lg) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c15844566.cfilter,1,nil,lg) end
local g=Duel.SelectReleaseGroup(tp,c15844566.cfilter,1,1,nil,lg) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c15844566.cfilter,1,1,nil,lg)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c15844566.atkop(e,tp,eg,ep,ev,re,r,rp) function c15844566.atkop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -39,12 +39,12 @@ function c16024176.hspcon(e,c) ...@@ -39,12 +39,12 @@ function c16024176.hspcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return ft>-1 and Duel.CheckReleaseGroup(tp,c16024176.hspfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c16024176.hspfilter,1,nil,ft,tp)
end end
function c16024176.hspop(e,tp,eg,ep,ev,re,r,rp,c) function c16024176.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local g=Duel.SelectReleaseGroup(tp,c16024176.hspfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c16024176.hspfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c16024176.target(e,tp,eg,ep,ev,re,r,rp,chk) function c16024176.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -97,11 +97,11 @@ end ...@@ -97,11 +97,11 @@ end
function c16306932.hspcon(e,c) function c16306932.hspcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() 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) return g:CheckSubGroupEach(c16306932.spchecks,aux.mzctcheckrel,tp)
end end
function c16306932.hsptg(e,tp,eg,ep,ev,re,r,rp,chk,c) 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) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=g:SelectSubGroupEach(tp,c16306932.spchecks,true,aux.mzctcheckrel,tp) local sg=g:SelectSubGroupEach(tp,c16306932.spchecks,true,aux.mzctcheckrel,tp)
if sg then if sg then
...@@ -112,7 +112,7 @@ function c16306932.hsptg(e,tp,eg,ep,ev,re,r,rp,chk,c) ...@@ -112,7 +112,7 @@ function c16306932.hsptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
end end
function c16306932.hspop(e,tp,eg,ep,ev,re,r,rp,c) function c16306932.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local g=e:GetLabelObject() local g=e:GetLabelObject()
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
g:DeleteGroup() g:DeleteGroup()
end end
function c16306932.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function c16306932.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -55,8 +55,8 @@ function c16313112.cfilter(c) ...@@ -55,8 +55,8 @@ function c16313112.cfilter(c)
return c:IsSetCard(0x119) and c:IsType(TYPE_LINK) return c:IsSetCard(0x119) and c:IsType(TYPE_LINK)
end end
function c16313112.effcost(e,tp,eg,ep,ev,re,r,rp,chk) function c16313112.effcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c16313112.cfilter,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c16313112.cfilter,1,nil) end
local g=Duel.SelectReleaseGroup(tp,c16313112.cfilter,1,1,nil) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c16313112.cfilter,1,1,nil)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c16313112.effop(e,tp,eg,ep,ev,re,r,rp) function c16313112.effop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -51,7 +51,7 @@ function c16719140.relfilter(c) ...@@ -51,7 +51,7 @@ function c16719140.relfilter(c)
end end
function c16719140.sptg1(e,tp,eg,ep,ev,re,r,rp,chk) function c16719140.sptg1(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() 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 chk==0 then
if e:GetLabel()~=100 then return false end if e:GetLabel()~=100 then return false end
e:SetLabel(0) e:SetLabel(0)
...@@ -69,7 +69,7 @@ function c16719140.spop1(e,tp,eg,ep,ev,re,r,rp) ...@@ -69,7 +69,7 @@ function c16719140.spop1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if not c:IsRelateToEffect(e) or not tc:IsRelateToEffect(e) then return end 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 mg:GetCount()==0 then return end
if aux.NecroValleyFilter()(tc) and tc:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_DEFENSE) then if aux.NecroValleyFilter()(tc) and tc:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_DEFENSE) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
......
...@@ -38,12 +38,12 @@ function c16802689.hspcon(e,c) ...@@ -38,12 +38,12 @@ function c16802689.hspcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return ft>-1 and Duel.CheckReleaseGroup(tp,c16802689.hspfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c16802689.hspfilter,1,nil,ft,tp)
end end
function c16802689.hspop(e,tp,eg,ep,ev,re,r,rp,c) function c16802689.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local g=Duel.SelectReleaseGroup(tp,c16802689.hspfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c16802689.hspfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c16802689.target(e,tp,eg,ep,ev,re,r,rp,chk) function c16802689.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -32,7 +32,7 @@ function c16886617.initial_effect(c) ...@@ -32,7 +32,7 @@ function c16886617.initial_effect(c)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function c16886617.rfilter(c) function c16886617.rfilter(c)
return c:IsFaceup() and c:IsAttack(0) and c:IsReleasable() return c:IsFaceup() and c:IsAttack(0) and c:IsReleasable(REASON_SPSUMMON)
end end
function c16886617.spcon(e,c) function c16886617.spcon(e,c)
if c==nil then return true end if c==nil then return true end
...@@ -52,7 +52,7 @@ function c16886617.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c) ...@@ -52,7 +52,7 @@ function c16886617.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
end end
function c16886617.spop(e,tp,eg,ep,ev,re,r,rp,c) function c16886617.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=e:GetLabelObject() local g=e:GetLabelObject()
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
g:DeleteGroup() g:DeleteGroup()
end end
function c16886617.desfilter(c) function c16886617.desfilter(c)
......
...@@ -17,8 +17,8 @@ function c16923472.costfilter(c) ...@@ -17,8 +17,8 @@ function c16923472.costfilter(c)
return c:IsFaceup() and c:IsSetCard(0x58) and not c:IsCode(16923472) return c:IsFaceup() and c:IsSetCard(0x58) and not c:IsCode(16923472)
end end
function c16923472.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c16923472.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c16923472.costfilter,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c16923472.costfilter,1,nil) end
local sg=Duel.SelectReleaseGroup(tp,c16923472.costfilter,1,1,nil) local sg=Duel.SelectReleaseGroup(REASON_COST,tp,c16923472.costfilter,1,1,nil)
Duel.Release(sg,REASON_COST) Duel.Release(sg,REASON_COST)
end end
function c16923472.target(e,tp,eg,ep,ev,re,r,rp,chk) function c16923472.target(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -25,14 +25,14 @@ function c16940215.discost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -25,14 +25,14 @@ function c16940215.discost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
local fe=Duel.IsPlayerAffectedByEffect(tp,29942771) local fe=Duel.IsPlayerAffectedByEffect(tp,29942771)
local b1=fe and Duel.IsPlayerCanDiscardDeckAsCost(tp,2) local b1=fe and Duel.IsPlayerCanDiscardDeckAsCost(tp,2)
local b2=c:IsReleasable() and Duel.CheckReleaseGroup(tp,c16940215.cfilter,1,c) local b2=c:IsReleasable() and Duel.CheckReleaseGroup(REASON_COST,tp,c16940215.cfilter,1,c)
if chk==0 then return b1 or b2 end if chk==0 then return b1 or b2 end
if b1 and (not b2 or Duel.SelectYesNo(tp,fe:GetDescription())) then if b1 and (not b2 or Duel.SelectYesNo(tp,fe:GetDescription())) then
Duel.Hint(HINT_CARD,0,29942771) Duel.Hint(HINT_CARD,0,29942771)
fe:UseCountLimit(tp) fe:UseCountLimit(tp)
Duel.DiscardDeck(tp,2,REASON_COST) Duel.DiscardDeck(tp,2,REASON_COST)
else else
local g=Duel.SelectReleaseGroup(tp,c16940215.cfilter,1,1,c) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c16940215.cfilter,1,1,c)
g:AddCard(c) g:AddCard(c)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
......
...@@ -28,8 +28,8 @@ function c16960351.spfilter(c,e,tp,lv) ...@@ -28,8 +28,8 @@ function c16960351.spfilter(c,e,tp,lv)
end end
function c16960351.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c16960351.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if chk==0 then return ft>-1 and Duel.CheckReleaseGroup(tp,c16960351.rfilter,1,nil,e,tp,ft) end if chk==0 then return ft>-1 and Duel.CheckReleaseGroup(REASON_COST,tp,c16960351.rfilter,1,nil,e,tp,ft) end
local g=Duel.SelectReleaseGroup(tp,c16960351.rfilter,1,1,nil,e,tp,ft) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c16960351.rfilter,1,1,nil,e,tp,ft)
local tc=g:GetFirst() local tc=g:GetFirst()
e:SetLabel(tc:GetOriginalLevel()) e:SetLabel(tc:GetOriginalLevel())
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
......
...@@ -37,11 +37,11 @@ end ...@@ -37,11 +37,11 @@ end
function c17132130.spcon(e,c) function c17132130.spcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() 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) return rg:CheckSubGroup(c17132130.fselect,3,3,tp)
end end
function c17132130.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c) 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) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=rg:SelectSubGroup(tp,c17132130.fselect,true,3,3,tp) local sg=rg:SelectSubGroup(tp,c17132130.fselect,true,3,3,tp)
if sg then if sg then
...@@ -52,7 +52,7 @@ function c17132130.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c) ...@@ -52,7 +52,7 @@ function c17132130.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
end end
function c17132130.spop(e,tp,eg,ep,ev,re,r,rp,c) function c17132130.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=e:GetLabelObject() local g=e:GetLabelObject()
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
g:DeleteGroup() g:DeleteGroup()
end end
function c17132130.lp(e,tp,eg,ep,ev,re,r,rp) function c17132130.lp(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -32,7 +32,7 @@ function c17197110.spfilter(c,e,tp) ...@@ -32,7 +32,7 @@ function c17197110.spfilter(c,e,tp)
return c:IsSetCard(0x2f) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x2f) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c17197110.fselect(g,tp) function c17197110.fselect(g,tp)
return Duel.GetMZoneCount(tp,g)>=g:GetCount() and Duel.CheckReleaseGroup(tp,aux.IsInGroup,#g,nil,g) return Duel.GetMZoneCount(tp,g)>=g:GetCount() and Duel.CheckReleaseGroup(REASON_COST,tp,aux.IsInGroup,#g,nil,g)
end end
function c17197110.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c17197110.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(100) e:SetLabel(100)
......
...@@ -48,12 +48,12 @@ function c17286057.hspcon(e,c) ...@@ -48,12 +48,12 @@ function c17286057.hspcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return ft>-1 and Duel.CheckReleaseGroup(tp,c17286057.hspfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c17286057.hspfilter,1,nil,ft,tp)
end end
function c17286057.hspop(e,tp,eg,ep,ev,re,r,rp,c) function c17286057.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local g=Duel.SelectReleaseGroup(tp,c17286057.hspfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c17286057.hspfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c17286057.filter(c) function c17286057.filter(c)
return c:IsFaceup() and c:IsType(TYPE_MONSTER) return c:IsFaceup() and c:IsType(TYPE_MONSTER)
......
...@@ -26,9 +26,9 @@ function c17427333.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -26,9 +26,9 @@ function c17427333.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then if chk==0 then
if e:GetLabel()~=100 then return false end if e:GetLabel()~=100 then return false end
e:SetLabel(0) e:SetLabel(0)
return Duel.CheckReleaseGroup(tp,c17427333.costfilter,1,nil,tp) return Duel.CheckReleaseGroup(REASON_COST,tp,c17427333.costfilter,1,nil,tp)
end end
local g=Duel.SelectReleaseGroup(tp,c17427333.costfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c17427333.costfilter,1,1,nil,tp)
local atk=g:GetFirst():GetTextAttack() local atk=g:GetFirst():GetTextAttack()
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
local ct=math.floor(atk/1000) local ct=math.floor(atk/1000)
......
...@@ -29,8 +29,8 @@ function c17948378.drcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -29,8 +29,8 @@ function c17948378.drcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetFlagEffect(17948378)~=0 return e:GetHandler():GetFlagEffect(17948378)~=0
end end
function c17948378.drcost(e,tp,eg,ep,ev,re,r,rp,chk) function c17948378.drcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsSetCard,1,nil,0x22) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsSetCard,1,nil,0x22) end
local g=Duel.SelectReleaseGroup(tp,Card.IsSetCard,1,1,nil,0x22) local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsSetCard,1,1,nil,0x22)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c17948378.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function c17948378.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -24,8 +24,8 @@ function c1802450.cfilter(c) ...@@ -24,8 +24,8 @@ function c1802450.cfilter(c)
return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_EARTH) return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_EARTH)
end end
function c1802450.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c1802450.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c1802450.cfilter,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c1802450.cfilter,1,nil) end
local cg=Duel.SelectReleaseGroup(tp,c1802450.cfilter,1,1,nil) local cg=Duel.SelectReleaseGroup(REASON_COST,tp,c1802450.cfilter,1,1,nil)
Duel.Release(cg,REASON_COST) Duel.Release(cg,REASON_COST)
end end
function c1802450.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c1802450.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -33,11 +33,11 @@ function c18378582.rfilter(c,code) ...@@ -33,11 +33,11 @@ function c18378582.rfilter(c,code)
end end
function c18378582.spcon(e,c) function c18378582.spcon(e,c)
if c==nil then return Duel.IsEnvironment(56433456) end if c==nil then return Duel.IsEnvironment(56433456) end
return Duel.CheckReleaseGroup(c:GetControler(),c18378582.rfilter,1,nil,66073051) return Duel.CheckReleaseGroup(REASON_SPSUMMON,c:GetControler(),c18378582.rfilter,1,nil,66073051)
end end
function c18378582.spop(e,tp,eg,ep,ev,re,r,rp,c) function c18378582.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectReleaseGroup(tp,c18378582.rfilter,1,1,nil,66073051) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c18378582.rfilter,1,1,nil,66073051)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c18378582.cfilter(c) function c18378582.cfilter(c)
return c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsDiscardable() and c:IsAbleToGraveAsCost() return c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsDiscardable() and c:IsAbleToGraveAsCost()
......
...@@ -28,11 +28,11 @@ end ...@@ -28,11 +28,11 @@ end
function c18491580.hspcon(e,c) function c18491580.hspcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
return Duel.CheckReleaseGroupEx(tp,c18491580.hspfilter,1,c,tp) return Duel.CheckReleaseGroupEx(REASON_SPSUMMON,tp,c18491580.hspfilter,1,c,tp)
end end
function c18491580.hspop(e,tp,eg,ep,ev,re,r,rp,c) function c18491580.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local sg=Duel.SelectReleaseGroupEx(tp,c18491580.hspfilter,1,1,c,tp) local sg=Duel.SelectReleaseGroupEx(REASON_SPSUMMON,tp,c18491580.hspfilter,1,1,c,tp)
Duel.Release(sg,REASON_COST) Duel.Release(sg,REASON_SPSUMMON)
end end
function c18491580.spcon(e,tp,eg,ep,ev,re,r,rp) function c18491580.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -16,8 +16,8 @@ function c18597560.cfilter(c,e,tp) ...@@ -16,8 +16,8 @@ function c18597560.cfilter(c,e,tp)
end end
function c18597560.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c18597560.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(100) e:SetLabel(100)
if chk==0 then return Duel.CheckReleaseGroup(tp,c18597560.cfilter,1,nil,e,tp) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c18597560.cfilter,1,nil,e,tp) end
local g=Duel.SelectReleaseGroup(tp,c18597560.cfilter,1,1,nil,e,tp) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c18597560.cfilter,1,1,nil,e,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c18597560.filter(c,e,tp,rc) function c18597560.filter(c,e,tp,rc)
......
...@@ -42,8 +42,8 @@ function c1861629.cfilter(c,g) ...@@ -42,8 +42,8 @@ function c1861629.cfilter(c,g)
end end
function c1861629.discost(e,tp,eg,ep,ev,re,r,rp,chk) function c1861629.discost(e,tp,eg,ep,ev,re,r,rp,chk)
local lg=e:GetHandler():GetLinkedGroup() local lg=e:GetHandler():GetLinkedGroup()
if chk==0 then return Duel.CheckReleaseGroup(tp,c1861629.cfilter,1,nil,lg) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c1861629.cfilter,1,nil,lg) end
local g=Duel.SelectReleaseGroup(tp,c1861629.cfilter,1,1,nil,lg) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c1861629.cfilter,1,1,nil,lg)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c1861629.distg(e,tp,eg,ep,ev,re,r,rp,chk) function c1861629.distg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -29,12 +29,12 @@ function c18828179.spcon(e,c) ...@@ -29,12 +29,12 @@ function c18828179.spcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return ft>-1 and Duel.CheckReleaseGroup(tp,c18828179.rfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c18828179.rfilter,1,nil,ft,tp)
end end
function c18828179.spop(e,tp,eg,ep,ev,re,r,rp,c) function c18828179.spop(e,tp,eg,ep,ev,re,r,rp,c)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local g=Duel.SelectReleaseGroup(tp,c18828179.rfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c18828179.rfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c18828179.cfilter(c) function c18828179.cfilter(c)
return c:IsAttribute(ATTRIBUTE_WATER) and c:IsDiscardable() and c:IsAbleToGraveAsCost() return c:IsAttribute(ATTRIBUTE_WATER) and c:IsDiscardable() and c:IsAbleToGraveAsCost()
......
...@@ -28,8 +28,8 @@ function c19221310.cfilter(c,ft,tp) ...@@ -28,8 +28,8 @@ function c19221310.cfilter(c,ft,tp)
end end
function c19221310.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c19221310.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if chk==0 then return Duel.CheckReleaseGroup(tp,c19221310.cfilter,1,nil,ft,tp) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c19221310.cfilter,1,nil,ft,tp) end
local g=Duel.SelectReleaseGroup(tp,c19221310.cfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c19221310.cfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c19221310.filter(c) function c19221310.filter(c)
......
...@@ -22,8 +22,8 @@ function c19307353.thfilter(c,csum) ...@@ -22,8 +22,8 @@ function c19307353.thfilter(c,csum)
return c:IsAttackAbove(0) and c:IsDefenseAbove(0) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() and csum==sum return c:IsAttackAbove(0) and c:IsDefenseAbove(0) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() and csum==sum
end end
function c19307353.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function c19307353.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c19307353.cfilter,1,nil,tp) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c19307353.cfilter,1,nil,tp) end
local g=Duel.SelectReleaseGroup(tp,c19307353.cfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c19307353.cfilter,1,1,nil,tp)
local sum=math.max(g:GetFirst():GetTextAttack(),0)+math.max(g:GetFirst():GetTextDefense(),0) local sum=math.max(g:GetFirst():GetTextAttack(),0)+math.max(g:GetFirst():GetTextDefense(),0)
e:SetLabel(sum) e:SetLabel(sum)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
......
...@@ -14,8 +14,8 @@ function c20154092.initial_effect(c) ...@@ -14,8 +14,8 @@ function c20154092.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c20154092.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c20154092.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsSetCard,1,e:GetHandler(),0x70) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsSetCard,1,e:GetHandler(),0x70) end
local g=Duel.SelectReleaseGroup(tp,Card.IsSetCard,1,1,e:GetHandler(),0x70) local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsSetCard,1,1,e:GetHandler(),0x70)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c20154092.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c20154092.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -76,8 +76,8 @@ function c20368763.spcfilter(c,ft,tp) ...@@ -76,8 +76,8 @@ function c20368763.spcfilter(c,ft,tp)
end end
function c20368763.spcost2(e,tp,eg,ep,ev,re,r,rp,chk) function c20368763.spcost2(e,tp,eg,ep,ev,re,r,rp,chk)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if chk==0 then return ft>-1 and Duel.CheckReleaseGroup(tp,c20368763.spcfilter,1,nil,ft,tp) end if chk==0 then return ft>-1 and Duel.CheckReleaseGroup(REASON_COST,tp,c20368763.spcfilter,1,nil,ft,tp) end
local g=Duel.SelectReleaseGroup(tp,c20368763.spcfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c20368763.spcfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c20368763.spfilter(c,e,tp) function c20368763.spfilter(c,e,tp)
......
...@@ -30,12 +30,12 @@ function c20403123.hspcon(e,c) ...@@ -30,12 +30,12 @@ function c20403123.hspcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return ft>-1 and Duel.CheckReleaseGroup(tp,c20403123.hspfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c20403123.hspfilter,1,nil,ft,tp)
end end
function c20403123.hspop(e,tp,eg,ep,ev,re,r,rp,c) function c20403123.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local g=Duel.SelectReleaseGroup(tp,c20403123.hspfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c20403123.hspfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c20403123.descost(e,tp,eg,ep,ev,re,r,rp,chk) function c20403123.descost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end
......
...@@ -31,9 +31,9 @@ function c20513882.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -31,9 +31,9 @@ function c20513882.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
if e:GetLabel()~=100 then return false end if e:GetLabel()~=100 then return false end
e:SetLabel(0) e:SetLabel(0)
return Duel.CheckReleaseGroup(tp,c20513882.cfilter,1,nil,tp) return Duel.CheckReleaseGroup(REASON_COST,tp,c20513882.cfilter,1,nil,tp)
end end
local g=Duel.SelectReleaseGroup(tp,c20513882.cfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c20513882.cfilter,1,1,nil,tp)
e:SetLabelObject(g:GetFirst()) e:SetLabelObject(g:GetFirst())
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK+LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK+LOCATION_GRAVE)
......
...@@ -28,8 +28,8 @@ function c20663556.cfilter(c,ft,tp) ...@@ -28,8 +28,8 @@ function c20663556.cfilter(c,ft,tp)
end end
function c20663556.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c20663556.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if chk==0 then return ft>-1 and Duel.CheckReleaseGroup(tp,c20663556.cfilter,1,nil,ft,tp) end if chk==0 then return ft>-1 and Duel.CheckReleaseGroup(REASON_COST,tp,c20663556.cfilter,1,nil,ft,tp) end
local g=Duel.SelectReleaseGroup(tp,c20663556.cfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c20663556.cfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c20663556.filter(c,e,tp) function c20663556.filter(c,e,tp)
......
...@@ -52,7 +52,7 @@ function c20951752.sumcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -52,7 +52,7 @@ function c20951752.sumcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetLabel()==1 return e:GetLabel()==1
end end
function c20951752.sumcost(e,tp,eg,ep,ev,re,r,rp,chk) function c20951752.sumcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,nil,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,nil,1,nil) end
local g=Duel.GetReleaseGroup(tp) local g=Duel.GetReleaseGroup(tp)
local ct=g:FilterCount(Card.IsRace,nil,RACE_FAIRY) local ct=g:FilterCount(Card.IsRace,nil,RACE_FAIRY)
aux.UseExtraReleaseCount(g,tp) aux.UseExtraReleaseCount(g,tp)
......
...@@ -49,8 +49,8 @@ function c21200905.cfilter(c,g) ...@@ -49,8 +49,8 @@ function c21200905.cfilter(c,g)
end end
function c21200905.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c21200905.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local lg=e:GetHandler():GetLinkedGroup() local lg=e:GetHandler():GetLinkedGroup()
if chk==0 then return Duel.CheckReleaseGroup(tp,c21200905.cfilter,1,nil,lg) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c21200905.cfilter,1,nil,lg) end
local g=Duel.SelectReleaseGroup(tp,c21200905.cfilter,1,1,nil,lg) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c21200905.cfilter,1,1,nil,lg)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c21200905.spfilter(c,e,tp) function c21200905.spfilter(c,e,tp)
......
...@@ -13,8 +13,8 @@ function c21297224.initial_effect(c) ...@@ -13,8 +13,8 @@ function c21297224.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c21297224.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c21297224.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,nil,2,nil) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,nil,2,nil) end
local g=Duel.SelectReleaseGroup(tp,nil,2,2,nil) local g=Duel.SelectReleaseGroup(REASON_COST,tp,nil,2,2,nil)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c21297224.target(e,tp,eg,ep,ev,re,r,rp,chk) function c21297224.target(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -74,12 +74,12 @@ function c21686473.hspcon(e,c) ...@@ -74,12 +74,12 @@ function c21686473.hspcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return ft>-1 and Duel.CheckReleaseGroup(tp,c21686473.hspfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c21686473.hspfilter,1,nil,ft,tp)
end end
function c21686473.hspop(e,tp,eg,ep,ev,re,r,rp,c) function c21686473.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local g=Duel.SelectReleaseGroup(tp,c21686473.hspfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c21686473.hspfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c21686473.atkcon(e,tp,eg,ep,ev,re,r,rp) function c21686473.atkcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -28,12 +28,12 @@ function c21772453.hspcon(e,c) ...@@ -28,12 +28,12 @@ function c21772453.hspcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return ft>-1 and Duel.CheckReleaseGroup(tp,c21772453.hspfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c21772453.hspfilter,1,nil,ft,tp)
end end
function c21772453.hspop(e,tp,eg,ep,ev,re,r,rp,c) function c21772453.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local g=Duel.SelectReleaseGroup(tp,c21772453.hspfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c21772453.hspfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c21772453.target(e,tp,eg,ep,ev,re,r,rp,chk) function c21772453.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -9,8 +9,8 @@ function c21879581.initial_effect(c) ...@@ -9,8 +9,8 @@ function c21879581.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c21879581.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c21879581.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsType,1,nil,TYPE_SYNCHRO) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsType,1,nil,TYPE_SYNCHRO) end
local g=Duel.SelectReleaseGroup(tp,Card.IsType,1,1,nil,TYPE_SYNCHRO) local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsType,1,1,nil,TYPE_SYNCHRO)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c21879581.activate(e,tp,eg,ep,ev,re,r,rp) function c21879581.activate(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -73,8 +73,8 @@ function c21954587.rfilter(c) ...@@ -73,8 +73,8 @@ function c21954587.rfilter(c)
return c:IsPosition(POS_FACEUP_ATTACK) and c:IsAttribute(ATTRIBUTE_WATER) return c:IsPosition(POS_FACEUP_ATTACK) and c:IsAttribute(ATTRIBUTE_WATER)
end end
function c21954587.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) function c21954587.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c21954587.rfilter,1,e:GetHandler()) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c21954587.rfilter,1,e:GetHandler()) end
local g=Duel.SelectReleaseGroup(tp,c21954587.rfilter,1,1,e:GetHandler()) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c21954587.rfilter,1,1,e:GetHandler())
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c21954587.atktg(e,tp,eg,ep,ev,re,r,rp,chk) function c21954587.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -66,8 +66,8 @@ function c22110647.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,8 +66,8 @@ function c22110647.spop(e,tp,eg,ep,ev,re,r,rp)
end end
function c22110647.descost(e,tp,eg,ep,ev,re,r,rp,chk) function c22110647.descost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():GetAttackAnnouncedCount()==0 if chk==0 then return e:GetHandler():GetAttackAnnouncedCount()==0
and Duel.CheckReleaseGroup(tp,Card.IsSetCard,1,nil,0x101b) end and Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsSetCard,1,nil,0x101b) end
local g=Duel.SelectReleaseGroup(tp,Card.IsSetCard,1,1,nil,0x101b) local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsSetCard,1,1,nil,0x101b)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
...@@ -19,7 +19,7 @@ function c22138839.initial_effect(c) ...@@ -19,7 +19,7 @@ function c22138839.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c22138839.rfilter(c) function c22138839.rfilter(c)
return c:GetCounter(0x1041)>0 and c:IsReleasable() return c:GetCounter(0x1041)>0 and c:IsReleasable(REASON_SPSUMMON)
end end
function c22138839.hspcon(e,c) function c22138839.hspcon(e,c)
if c==nil then return true end if c==nil then return true end
...@@ -30,7 +30,7 @@ end ...@@ -30,7 +30,7 @@ end
function c22138839.hspop(e,tp,eg,ep,ev,re,r,rp,c) function c22138839.hspop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectMatchingCard(tp,c22138839.rfilter,tp,0,LOCATION_MZONE,1,1,nil) local g=Duel.SelectMatchingCard(tp,c22138839.rfilter,tp,0,LOCATION_MZONE,1,1,nil)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c22138839.ccon(e,tp,eg,ep,ev,re,r,rp) function c22138839.ccon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD)
......
...@@ -16,8 +16,8 @@ function c22431243.cfilter(c,tp) ...@@ -16,8 +16,8 @@ function c22431243.cfilter(c,tp)
end end
function c22431243.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c22431243.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(1) e:SetLabel(1)
if chk==0 then return Duel.CheckReleaseGroup(tp,c22431243.cfilter,1,nil,tp) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c22431243.cfilter,1,nil,tp) end
local g=Duel.SelectReleaseGroup(tp,c22431243.cfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c22431243.cfilter,1,1,nil,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c22431243.filter(c,e,tp) function c22431243.filter(c,e,tp)
......
...@@ -16,8 +16,8 @@ function c22493811.costfilter(c,tp) ...@@ -16,8 +16,8 @@ function c22493811.costfilter(c,tp)
end end
function c22493811.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c22493811.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(1) e:SetLabel(1)
if chk==0 then return Duel.CheckReleaseGroup(tp,c22493811.costfilter,1,nil,tp) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c22493811.costfilter,1,nil,tp) end
local g=Duel.SelectReleaseGroup(tp,c22493811.costfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c22493811.costfilter,1,1,nil,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c22493811.target(e,tp,eg,ep,ev,re,r,rp,chk) function c22493811.target(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -60,8 +60,8 @@ function c22586618.costfilter(c,tp) ...@@ -60,8 +60,8 @@ function c22586618.costfilter(c,tp)
return c:IsRace(RACE_WINDBEAST) and c:IsAttribute(ATTRIBUTE_WIND) and (c:IsControler(tp) or c:IsFaceup()) return c:IsRace(RACE_WINDBEAST) and c:IsAttribute(ATTRIBUTE_WIND) and (c:IsControler(tp) or c:IsFaceup())
end end
function c22586618.negcost(e,tp,eg,ep,ev,re,r,rp,chk) function c22586618.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c22586618.costfilter,1,nil,tp) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c22586618.costfilter,1,nil,tp) end
local sg=Duel.SelectReleaseGroup(tp,c22586618.costfilter,1,1,nil,tp) local sg=Duel.SelectReleaseGroup(REASON_COST,tp,c22586618.costfilter,1,1,nil,tp)
Duel.Release(sg,REASON_COST) Duel.Release(sg,REASON_COST)
end end
function c22586618.negtg(e,tp,eg,ep,ev,re,r,rp,chk) function c22586618.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -3,7 +3,7 @@ function c22638495.initial_effect(c) ...@@ -3,7 +3,7 @@ function c22638495.initial_effect(c)
--fusion material --fusion material
c:EnableReviveLimit() c:EnableReviveLimit()
aux.AddFusionProcFun2(c,aux.FilterBoolFunction(Card.IsFusionType,TYPE_PENDULUM),aux.AND(aux.FilterBoolFunction(Card.IsFusionType,TYPE_PENDULUM),aux.FilterBoolFunction(Card.IsFusionSetCard,0xc7)),false) aux.AddFusionProcFun2(c,aux.FilterBoolFunction(Card.IsFusionType,TYPE_PENDULUM),aux.AND(aux.FilterBoolFunction(Card.IsFusionType,TYPE_PENDULUM),aux.FilterBoolFunction(Card.IsFusionSetCard,0xc7)),false)
aux.AddContactFusionProcedure(c,Card.IsReleasable,LOCATION_MZONE,0,Duel.Release,REASON_COST+REASON_MATERIAL) aux.AddContactFusionProcedure(c,aux.FilterBoolFunction(Card.IsReleasable,REASON_SPSUMMON),LOCATION_MZONE,0,Duel.Release,REASON_SPSUMMON+REASON_MATERIAL)
--spsummon condition --spsummon condition
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
...@@ -24,7 +24,7 @@ function c2266498.fselect(g,mc) ...@@ -24,7 +24,7 @@ function c2266498.fselect(g,mc)
return aux.dncheck(g) and g:CheckWithSumEqual(Card.GetRitualLevel,mc:GetLevel(),g:GetCount(),g:GetCount(),mc) return aux.dncheck(g) and g:CheckWithSumEqual(Card.GetRitualLevel,mc:GetLevel(),g:GetCount(),g:GetCount(),mc)
end end
function c2266498.filter(c,e,tp) function c2266498.filter(c,e,tp)
return c:IsFaceup() and c:IsSetCard(0x106) and Duel.IsPlayerCanRelease(tp,c) return c:IsFaceup() and c:IsSetCard(0x106) and Duel.IsPlayerCanRelease(tp,c,REASON_EFFECT)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN_DEFENSE) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN_DEFENSE)
end end
function c2266498.target(e,tp,eg,ep,ev,re,r,rp,chk) function c2266498.target(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -67,8 +67,8 @@ function c22865492.cfilter1(c,tp) ...@@ -67,8 +67,8 @@ function c22865492.cfilter1(c,tp)
return c:IsSetCard(0x8) and Duel.GetMZoneCount(tp,c)>0 and (c:IsFaceup() or c:IsControler(tp)) return c:IsSetCard(0x8) and Duel.GetMZoneCount(tp,c)>0 and (c:IsFaceup() or c:IsControler(tp))
end end
function c22865492.spcost1(e,tp,eg,ep,ev,re,r,rp,chk) function c22865492.spcost1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c22865492.cfilter1,1,nil,tp) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c22865492.cfilter1,1,nil,tp) end
local g=Duel.SelectReleaseGroup(tp,c22865492.cfilter1,1,1,nil,tp) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c22865492.cfilter1,1,1,nil,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c22865492.sptg1(e,tp,eg,ep,ev,re,r,rp,chk) function c22865492.sptg1(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -35,8 +35,8 @@ function c23099524.rfilter(c,tp) ...@@ -35,8 +35,8 @@ function c23099524.rfilter(c,tp)
return Duel.GetMZoneCount(tp,c)>0 return Duel.GetMZoneCount(tp,c)>0
end end
function c23099524.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c23099524.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c23099524.rfilter,1,nil,tp) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c23099524.rfilter,1,nil,tp) end
local g=Duel.SelectReleaseGroup(tp,c23099524.rfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c23099524.rfilter,1,1,nil,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c23099524.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c23099524.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -60,8 +60,8 @@ function c23099524.thcfilter(c,tp) ...@@ -60,8 +60,8 @@ function c23099524.thcfilter(c,tp)
return c:IsRace(RACE_FAIRY+RACE_FIEND+RACE_REPTILE) and (c:IsFaceup() or c:IsControler(tp)) return c:IsRace(RACE_FAIRY+RACE_FIEND+RACE_REPTILE) and (c:IsFaceup() or c:IsControler(tp))
end end
function c23099524.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function c23099524.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c23099524.thcfilter,1,nil,tp) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c23099524.thcfilter,1,nil,tp) end
local g=Duel.SelectReleaseGroup(tp,c23099524.thcfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c23099524.thcfilter,1,1,nil,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c23099524.thfilter(c) function c23099524.thfilter(c)
......
...@@ -39,8 +39,8 @@ function c2311090.cfilter(c) ...@@ -39,8 +39,8 @@ function c2311090.cfilter(c)
return c:IsLevel(2) or c:IsRank(2) or c:IsLink(2) return c:IsLevel(2) or c:IsRank(2) or c:IsLink(2)
end end
function c2311090.discost(e,tp,eg,ep,ev,re,r,rp,chk) function c2311090.discost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c2311090.cfilter,1,e:GetHandler()) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c2311090.cfilter,1,e:GetHandler()) end
local g=Duel.SelectReleaseGroup(tp,c2311090.cfilter,1,1,e:GetHandler()) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c2311090.cfilter,1,1,e:GetHandler())
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
local tc=Duel.GetOperatedGroup():GetFirst() local tc=Duel.GetOperatedGroup():GetFirst()
e:SetLabelObject(tc) e:SetLabelObject(tc)
......
...@@ -84,8 +84,8 @@ function c23116808.tkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -84,8 +84,8 @@ function c23116808.tkop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP_DEFENSE) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c23116808.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) function c23116808.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsAttribute,1,e:GetHandler(),ATTRIBUTE_FIRE) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsAttribute,1,e:GetHandler(),ATTRIBUTE_FIRE) end
local g=Duel.SelectReleaseGroup(tp,Card.IsAttribute,1,1,e:GetHandler(),ATTRIBUTE_FIRE) local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsAttribute,1,1,e:GetHandler(),ATTRIBUTE_FIRE)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c23116808.atkop(e,tp,eg,ep,ev,re,r,rp) function c23116808.atkop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -19,8 +19,8 @@ function c23408872.cfilter(c,ft,tp) ...@@ -19,8 +19,8 @@ function c23408872.cfilter(c,ft,tp)
end end
function c23408872.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c23408872.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if chk==0 then return ft>-1 and Duel.CheckReleaseGroup(tp,c23408872.cfilter,1,nil,ft,tp) end if chk==0 then return ft>-1 and Duel.CheckReleaseGroup(REASON_COST,tp,c23408872.cfilter,1,nil,ft,tp) end
local g=Duel.SelectReleaseGroup(tp,c23408872.cfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c23408872.cfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c23408872.filter(c,e,tp) function c23408872.filter(c,e,tp)
......
...@@ -98,8 +98,8 @@ function c23440231.cfilter(c) ...@@ -98,8 +98,8 @@ function c23440231.cfilter(c)
return not c:IsStatus(STATUS_BATTLE_DESTROYED) return not c:IsStatus(STATUS_BATTLE_DESTROYED)
end end
function c23440231.negcost(e,tp,eg,ep,ev,re,r,rp,chk) function c23440231.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c23440231.cfilter,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c23440231.cfilter,1,nil) end
local g=Duel.SelectReleaseGroup(tp,c23440231.cfilter,1,1,nil) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c23440231.cfilter,1,1,nil)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c23440231.negop(e,tp,eg,ep,ev,re,r,rp) function c23440231.negop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -45,9 +45,9 @@ function c23790299.atkcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,9 +45,9 @@ function c23790299.atkcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c23790299.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) function c23790299.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsAttackAbove,1,c,1) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsAttackAbove,1,c,1) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectReleaseGroup(tp,Card.IsAttackAbove,1,1,c,1) local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsAttackAbove,1,1,c,1)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
e:SetLabel(g:GetFirst():GetPreviousAttackOnField()) e:SetLabel(g:GetFirst():GetPreviousAttackOnField())
end end
......
...@@ -28,8 +28,8 @@ function c23898021.regop(e,tp,eg,ep,ev,re,r,rp) ...@@ -28,8 +28,8 @@ function c23898021.regop(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c23898021.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function c23898021.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsAttribute,1,nil,ATTRIBUTE_DARK) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsAttribute,1,nil,ATTRIBUTE_DARK) end
local g=Duel.SelectReleaseGroup(tp,Card.IsAttribute,1,1,nil,ATTRIBUTE_DARK) local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsAttribute,1,1,nil,ATTRIBUTE_DARK)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c23898021.thfilter(c) function c23898021.thfilter(c)
......
...@@ -39,9 +39,9 @@ function c24361622.thfilter(c) ...@@ -39,9 +39,9 @@ function c24361622.thfilter(c)
return c:IsFaceup() and c:IsAbleToHand() return c:IsFaceup() and c:IsAbleToHand()
end end
function c24361622.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function c24361622.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroupEx(tp,c24361622.thcfilter,1,nil,tp) end if chk==0 then return Duel.CheckReleaseGroupEx(REASON_COST,tp,c24361622.thcfilter,1,nil,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectReleaseGroupEx(tp,c24361622.thcfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroupEx(REASON_COST,tp,c24361622.thcfilter,1,1,nil,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c24361622.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c24361622.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -13,8 +13,8 @@ function c24362891.initial_effect(c) ...@@ -13,8 +13,8 @@ function c24362891.initial_effect(c)
end end
function c24362891.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c24362891.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(1) e:SetLabel(1)
if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsRace,1,nil,RACE_REPTILE) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsRace,1,nil,RACE_REPTILE) end
local g=Duel.SelectReleaseGroup(tp,Card.IsRace,1,1,nil,RACE_REPTILE) local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsRace,1,1,nil,RACE_REPTILE)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c24362891.filter(c,e,tp) function c24362891.filter(c,e,tp)
......
...@@ -40,8 +40,8 @@ function c24487411.cfilter(c,g) ...@@ -40,8 +40,8 @@ function c24487411.cfilter(c,g)
end end
function c24487411.descost2(e,tp,eg,ep,ev,re,r,rp,chk) function c24487411.descost2(e,tp,eg,ep,ev,re,r,rp,chk)
local lg=e:GetHandler():GetLinkedGroup() local lg=e:GetHandler():GetLinkedGroup()
if chk==0 then return Duel.CheckReleaseGroup(tp,c24487411.cfilter,1,nil,lg) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c24487411.cfilter,1,nil,lg) end
local g=Duel.SelectReleaseGroup(tp,c24487411.cfilter,1,1,nil,lg) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c24487411.cfilter,1,1,nil,lg)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c24487411.destg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c24487411.destg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -84,8 +84,8 @@ function c24701066.cfilter(c,tp) ...@@ -84,8 +84,8 @@ function c24701066.cfilter(c,tp)
return c:IsType(TYPE_LINK) and c:IsRace(RACE_MACHINE) and Duel.GetMZoneCount(tp,c)>0 return c:IsType(TYPE_LINK) and c:IsRace(RACE_MACHINE) and Duel.GetMZoneCount(tp,c)>0
end end
function c24701066.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c24701066.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c24701066.cfilter,1,nil,tp) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c24701066.cfilter,1,nil,tp) end
local g=Duel.SelectReleaseGroup(tp,c24701066.cfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c24701066.cfilter,1,1,nil,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c24701066.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c24701066.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -60,8 +60,8 @@ function c24842059.cfilter(c,tp) ...@@ -60,8 +60,8 @@ function c24842059.cfilter(c,tp)
return c:IsSetCard(0x135) and c:IsSummonLocation(LOCATION_EXTRA) and Duel.GetMZoneCount(tp,c)>0 return c:IsSetCard(0x135) and c:IsSummonLocation(LOCATION_EXTRA) and Duel.GetMZoneCount(tp,c)>0
end end
function c24842059.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c24842059.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c24842059.cfilter,1,nil,tp) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c24842059.cfilter,1,nil,tp) end
local g=Duel.SelectReleaseGroup(tp,c24842059.cfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c24842059.cfilter,1,1,nil,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c24842059.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c24842059.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -17,8 +17,8 @@ function c25090294.costfilter(c,tp) ...@@ -17,8 +17,8 @@ function c25090294.costfilter(c,tp)
end end
function c25090294.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c25090294.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(1) e:SetLabel(1)
if chk==0 then return Duel.CheckReleaseGroup(tp,c25090294.costfilter,1,nil,tp) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c25090294.costfilter,1,nil,tp) end
local g=Duel.SelectReleaseGroup(tp,c25090294.costfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c25090294.costfilter,1,1,nil,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c25090294.filter(c,e,tp) function c25090294.filter(c,e,tp)
......
...@@ -11,8 +11,8 @@ function c25109950.initial_effect(c) ...@@ -11,8 +11,8 @@ function c25109950.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c25109950.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) function c25109950.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,nil,1,e:GetHandler()) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,nil,1,e:GetHandler()) end
local g=Duel.SelectReleaseGroup(tp,nil,1,1,e:GetHandler()) local g=Duel.SelectReleaseGroup(REASON_COST,tp,nil,1,1,e:GetHandler())
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c25109950.atkop(e,tp,eg,ep,ev,re,r,rp) function c25109950.atkop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -29,9 +29,9 @@ function c25435080.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -29,9 +29,9 @@ function c25435080.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then if chk==0 then
if e:GetLabel()~=1 then return false end if e:GetLabel()~=1 then return false end
e:SetLabel(0) e:SetLabel(0)
return Duel.CheckReleaseGroup(tp,c25435080.cfilter,1,nil,tp) return Duel.CheckReleaseGroup(REASON_COST,tp,c25435080.cfilter,1,nil,tp)
end end
local rg=Duel.SelectReleaseGroup(tp,c25435080.cfilter,1,1,nil,tp) local rg=Duel.SelectReleaseGroup(REASON_COST,tp,c25435080.cfilter,1,1,nil,tp)
e:SetLabel(rg:GetFirst():GetAttack()) e:SetLabel(rg:GetFirst():GetAttack())
Duel.Release(rg,REASON_COST) Duel.Release(rg,REASON_COST)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
......
...@@ -28,11 +28,11 @@ end ...@@ -28,11 +28,11 @@ end
function c25449584.spcon(e,c) function c25449584.spcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
return Duel.CheckReleaseGroup(tp,c25449584.spfilter,1,nil,tp) return Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c25449584.spfilter,1,nil,tp)
end end
function c25449584.spop(e,tp,eg,ep,ev,re,r,rp,c) function c25449584.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectReleaseGroup(tp,c25449584.spfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c25449584.spfilter,1,1,nil,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
c:RegisterFlagEffect(0,RESET_EVENT+0x4fc0000,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(25449584,1)) c:RegisterFlagEffect(0,RESET_EVENT+0x4fc0000,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(25449584,1))
local atk=g:GetFirst():GetBaseAttack() local atk=g:GetFirst():GetBaseAttack()
if atk<0 then return end if atk<0 then return end
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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