Commit 501f310d authored by Chen Bill's avatar Chen Bill

replace Duel.SelectReleaseGroup

parent a43abf9a
...@@ -95,7 +95,7 @@ function c10000000.descost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -95,7 +95,7 @@ function c10000000.descost(e,tp,eg,ep,ev,re,r,rp,chk)
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)
......
...@@ -39,7 +39,7 @@ function c10026986.otop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -39,7 +39,7 @@ function c10026986.otop(e,tp,eg,ep,ev,re,r,rp,c)
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(REASON_COST,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)
......
...@@ -41,7 +41,7 @@ end ...@@ -41,7 +41,7 @@ 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(REASON_COST,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
......
...@@ -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)
......
...@@ -34,7 +34,7 @@ function c10485110.spcon(e,c) ...@@ -34,7 +34,7 @@ function c10485110.spcon(e,c)
return Duel.CheckReleaseGroup(REASON_COST,c:GetControler(),Card.IsCode,1,nil,37721209) return Duel.CheckReleaseGroup(REASON_COST,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_COST,tp,Card.IsCode,1,1,nil,37721209)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c10485110.cfilter(c) function c10485110.cfilter(c)
......
...@@ -16,7 +16,7 @@ function c10759529.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -16,7 +16,7 @@ function c10759529.condition(e,tp,eg,ep,ev,re,r,rp)
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(REASON_COST,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)
......
...@@ -66,7 +66,7 @@ function c11167052.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -66,7 +66,7 @@ function c11167052.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(0) e:SetLabel(0)
return Duel.CheckReleaseGroup(REASON_COST,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)
......
...@@ -14,7 +14,7 @@ function c11384280.initial_effect(c) ...@@ -14,7 +14,7 @@ function c11384280.initial_effect(c)
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(REASON_COST,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)
......
...@@ -63,7 +63,7 @@ function c11443677.sprcon(e,c) ...@@ -63,7 +63,7 @@ function c11443677.sprcon(e,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_COST,tp,c11443677.sprfilter,1,1,nil,tp,c)
c:SetMaterial(g) c:SetMaterial(g)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
......
...@@ -52,7 +52,7 @@ end ...@@ -52,7 +52,7 @@ 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(REASON_COST,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
......
...@@ -25,7 +25,7 @@ function c11819616.costfilter(c) ...@@ -25,7 +25,7 @@ function c11819616.costfilter(c)
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(REASON_COST,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)
......
...@@ -14,7 +14,7 @@ function c11975962.initial_effect(c) ...@@ -14,7 +14,7 @@ function c11975962.initial_effect(c)
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(REASON_COST,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)
......
...@@ -36,7 +36,7 @@ function c12255007.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -36,7 +36,7 @@ function c12255007.condition(e,tp,eg,ep,ev,re,r,rp)
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(REASON_COST,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)
......
...@@ -43,7 +43,7 @@ function c12510878.spcon(e,c) ...@@ -43,7 +43,7 @@ function c12510878.spcon(e,c)
return Duel.CheckReleaseGroup(REASON_COST,c:GetControler(),Card.IsCode,1,nil,18036057) return Duel.CheckReleaseGroup(REASON_COST,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_COST,c:GetControler(),Card.IsCode,1,1,nil,18036057)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c12510878.condition(e,tp,eg,ep,ev,re,r,rp) function c12510878.condition(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -29,7 +29,7 @@ end ...@@ -29,7 +29,7 @@ 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(REASON_COST,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
......
...@@ -57,7 +57,7 @@ function c13224603.hspcon(e,c) ...@@ -57,7 +57,7 @@ function c13224603.hspcon(e,c)
return Duel.CheckReleaseGroup(REASON_COST,tp,c13224603.hspfilter,1,nil,tp) return Duel.CheckReleaseGroup(REASON_COST,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_COST,tp,c13224603.hspfilter,1,1,nil,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c13224603.sumcon(e,tp,eg,ep,ev,re,r,rp) function c13224603.sumcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -60,7 +60,7 @@ function c132308.discost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -60,7 +60,7 @@ function c132308.discost(e,tp,eg,ep,ev,re,r,rp,chk)
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)
......
...@@ -19,7 +19,7 @@ function c13361027.cfilter(c,tp) ...@@ -19,7 +19,7 @@ function c13361027.cfilter(c,tp)
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(REASON_COST,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)
......
...@@ -26,7 +26,7 @@ function c13452889.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -26,7 +26,7 @@ function c13452889.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
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(REASON_COST,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)
......
...@@ -22,7 +22,7 @@ function c13629812.initial_effect(c) ...@@ -22,7 +22,7 @@ function c13629812.initial_effect(c)
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(REASON_COST,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)
......
...@@ -16,7 +16,7 @@ function c13972452.cfilter(c) ...@@ -16,7 +16,7 @@ function c13972452.cfilter(c)
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(REASON_COST,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)
......
...@@ -23,6 +23,6 @@ function c14141448.spcon(e,c) ...@@ -23,6 +23,6 @@ function c14141448.spcon(e,c)
and Duel.CheckReleaseGroup(REASON_COST,c:GetControler(),c14141448.rfilter,1,nil) and Duel.CheckReleaseGroup(REASON_COST,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_COST,c:GetControler(),c14141448.rfilter,1,1,nil)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
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_COST,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_COST,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
......
...@@ -14,7 +14,7 @@ function c14702066.initial_effect(c) ...@@ -14,7 +14,7 @@ function c14702066.initial_effect(c)
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(REASON_COST,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)
......
...@@ -15,7 +15,7 @@ function c1474910.cfilter(c) ...@@ -15,7 +15,7 @@ function c1474910.cfilter(c)
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(REASON_COST,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
......
...@@ -98,7 +98,7 @@ function c14799437.cfilter(c) ...@@ -98,7 +98,7 @@ function c14799437.cfilter(c)
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(REASON_COST,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)
......
...@@ -26,7 +26,7 @@ function c14882493.initial_effect(c) ...@@ -26,7 +26,7 @@ function c14882493.initial_effect(c)
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(REASON_COST,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)
......
...@@ -54,7 +54,7 @@ end ...@@ -54,7 +54,7 @@ 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(REASON_COST,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)
......
...@@ -62,7 +62,7 @@ function c15180041.spcon(e,c) ...@@ -62,7 +62,7 @@ function c15180041.spcon(e,c)
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_COST,tp,c15180041.spfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c15180041.atkop(e,tp,eg,ep,ev,re,r,rp) function c15180041.atkop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -61,7 +61,7 @@ function c15187079.cttg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -61,7 +61,7 @@ function c15187079.cttg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
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)
......
...@@ -53,7 +53,7 @@ function c15291624.spcon(e,c) ...@@ -53,7 +53,7 @@ function c15291624.spcon(e,c)
and Duel.CheckReleaseGroup(REASON_COST,tp,c15291624.spfilter,1,nil,c,tp) and Duel.CheckReleaseGroup(REASON_COST,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_COST,tp,c15291624.spfilter,1,1,nil,c,tp)
c:SetMaterial(g) c:SetMaterial(g)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
......
...@@ -52,7 +52,7 @@ function c15335853.indcon(e) ...@@ -52,7 +52,7 @@ function c15335853.indcon(e)
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(REASON_COST,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)
......
...@@ -63,7 +63,7 @@ end ...@@ -63,7 +63,7 @@ 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(REASON_COST,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)
......
...@@ -43,7 +43,7 @@ function c16024176.hspcon(e,c) ...@@ -43,7 +43,7 @@ function c16024176.hspcon(e,c)
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_COST,tp,c16024176.hspfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
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)
......
...@@ -56,7 +56,7 @@ function c16313112.cfilter(c) ...@@ -56,7 +56,7 @@ function c16313112.cfilter(c)
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(REASON_COST,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)
......
...@@ -42,7 +42,7 @@ function c16802689.hspcon(e,c) ...@@ -42,7 +42,7 @@ function c16802689.hspcon(e,c)
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_COST,tp,c16802689.hspfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
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)
......
...@@ -18,7 +18,7 @@ function c16923472.costfilter(c) ...@@ -18,7 +18,7 @@ function c16923472.costfilter(c)
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(REASON_COST,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)
......
...@@ -32,7 +32,7 @@ function c16940215.discost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -32,7 +32,7 @@ function c16940215.discost(e,tp,eg,ep,ev,re,r,rp,chk)
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
......
...@@ -29,7 +29,7 @@ end ...@@ -29,7 +29,7 @@ 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(REASON_COST,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)
......
...@@ -52,7 +52,7 @@ function c17286057.hspcon(e,c) ...@@ -52,7 +52,7 @@ function c17286057.hspcon(e,c)
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_COST,tp,c17286057.hspfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c17286057.filter(c) function c17286057.filter(c)
......
...@@ -28,7 +28,7 @@ function c17427333.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -28,7 +28,7 @@ function c17427333.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
e:SetLabel(0) e:SetLabel(0)
return Duel.CheckReleaseGroup(REASON_COST,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)
......
...@@ -30,7 +30,7 @@ function c17948378.drcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -30,7 +30,7 @@ function c17948378.drcon(e,tp,eg,ep,ev,re,r,rp)
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(REASON_COST,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)
......
...@@ -25,7 +25,7 @@ function c1802450.cfilter(c) ...@@ -25,7 +25,7 @@ function c1802450.cfilter(c)
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(REASON_COST,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)
......
...@@ -36,7 +36,7 @@ function c18378582.spcon(e,c) ...@@ -36,7 +36,7 @@ function c18378582.spcon(e,c)
return Duel.CheckReleaseGroup(REASON_COST,c:GetControler(),c18378582.rfilter,1,nil,66073051) return Duel.CheckReleaseGroup(REASON_COST,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_COST,tp,c18378582.rfilter,1,1,nil,66073051)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c18378582.cfilter(c) function c18378582.cfilter(c)
......
...@@ -17,7 +17,7 @@ end ...@@ -17,7 +17,7 @@ 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(REASON_COST,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)
......
...@@ -43,7 +43,7 @@ end ...@@ -43,7 +43,7 @@ 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(REASON_COST,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)
......
...@@ -33,7 +33,7 @@ function c18828179.spcon(e,c) ...@@ -33,7 +33,7 @@ function c18828179.spcon(e,c)
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_COST,tp,c18828179.rfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c18828179.cfilter(c) function c18828179.cfilter(c)
......
...@@ -29,7 +29,7 @@ end ...@@ -29,7 +29,7 @@ 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(REASON_COST,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)
......
...@@ -23,7 +23,7 @@ function c19307353.thfilter(c,csum) ...@@ -23,7 +23,7 @@ function c19307353.thfilter(c,csum)
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(REASON_COST,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)
......
...@@ -15,7 +15,7 @@ function c20154092.initial_effect(c) ...@@ -15,7 +15,7 @@ function c20154092.initial_effect(c)
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(REASON_COST,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)
......
...@@ -77,7 +77,7 @@ end ...@@ -77,7 +77,7 @@ 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(REASON_COST,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)
......
...@@ -34,7 +34,7 @@ function c20403123.hspcon(e,c) ...@@ -34,7 +34,7 @@ function c20403123.hspcon(e,c)
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_COST,tp,c20403123.hspfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
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)
......
...@@ -33,7 +33,7 @@ function c20513882.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -33,7 +33,7 @@ function c20513882.target(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(0) e:SetLabel(0)
return Duel.CheckReleaseGroup(REASON_COST,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)
......
...@@ -29,7 +29,7 @@ end ...@@ -29,7 +29,7 @@ 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(REASON_COST,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)
......
...@@ -50,7 +50,7 @@ end ...@@ -50,7 +50,7 @@ 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(REASON_COST,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)
......
...@@ -14,7 +14,7 @@ function c21297224.initial_effect(c) ...@@ -14,7 +14,7 @@ function c21297224.initial_effect(c)
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(REASON_COST,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)
......
...@@ -78,7 +78,7 @@ function c21686473.hspcon(e,c) ...@@ -78,7 +78,7 @@ function c21686473.hspcon(e,c)
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_COST,tp,c21686473.hspfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c21686473.atkcon(e,tp,eg,ep,ev,re,r,rp) function c21686473.atkcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -32,7 +32,7 @@ function c21772453.hspcon(e,c) ...@@ -32,7 +32,7 @@ function c21772453.hspcon(e,c)
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_COST,tp,c21772453.hspfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
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)
......
...@@ -10,7 +10,7 @@ function c21879581.initial_effect(c) ...@@ -10,7 +10,7 @@ function c21879581.initial_effect(c)
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(REASON_COST,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)
......
...@@ -74,7 +74,7 @@ function c21954587.rfilter(c) ...@@ -74,7 +74,7 @@ function c21954587.rfilter(c)
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(REASON_COST,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)
......
...@@ -67,7 +67,7 @@ end ...@@ -67,7 +67,7 @@ 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(REASON_COST,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)
......
...@@ -17,7 +17,7 @@ end ...@@ -17,7 +17,7 @@ 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(REASON_COST,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)
......
...@@ -17,7 +17,7 @@ end ...@@ -17,7 +17,7 @@ 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(REASON_COST,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)
......
...@@ -61,7 +61,7 @@ function c22586618.costfilter(c,tp) ...@@ -61,7 +61,7 @@ function c22586618.costfilter(c,tp)
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(REASON_COST,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)
......
...@@ -68,7 +68,7 @@ function c22865492.cfilter1(c,tp) ...@@ -68,7 +68,7 @@ function c22865492.cfilter1(c,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(REASON_COST,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)
......
...@@ -36,7 +36,7 @@ function c23099524.rfilter(c,tp) ...@@ -36,7 +36,7 @@ function c23099524.rfilter(c,tp)
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(REASON_COST,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)
...@@ -61,7 +61,7 @@ function c23099524.thcfilter(c,tp) ...@@ -61,7 +61,7 @@ function c23099524.thcfilter(c,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(REASON_COST,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)
......
...@@ -40,7 +40,7 @@ function c2311090.cfilter(c) ...@@ -40,7 +40,7 @@ function c2311090.cfilter(c)
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(REASON_COST,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)
......
...@@ -85,7 +85,7 @@ function c23116808.tkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -85,7 +85,7 @@ function c23116808.tkop(e,tp,eg,ep,ev,re,r,rp)
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(REASON_COST,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)
......
...@@ -20,7 +20,7 @@ end ...@@ -20,7 +20,7 @@ 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(REASON_COST,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)
......
...@@ -99,7 +99,7 @@ function c23440231.cfilter(c) ...@@ -99,7 +99,7 @@ function c23440231.cfilter(c)
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(REASON_COST,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)
......
...@@ -47,7 +47,7 @@ function c23790299.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -47,7 +47,7 @@ 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(REASON_COST,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
......
...@@ -29,7 +29,7 @@ function c23898021.regop(e,tp,eg,ep,ev,re,r,rp) ...@@ -29,7 +29,7 @@ function c23898021.regop(e,tp,eg,ep,ev,re,r,rp)
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(REASON_COST,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)
......
...@@ -14,7 +14,7 @@ end ...@@ -14,7 +14,7 @@ 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(REASON_COST,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)
......
...@@ -41,7 +41,7 @@ end ...@@ -41,7 +41,7 @@ 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(REASON_COST,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)
......
...@@ -85,7 +85,7 @@ function c24701066.cfilter(c,tp) ...@@ -85,7 +85,7 @@ function c24701066.cfilter(c,tp)
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(REASON_COST,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)
......
...@@ -61,7 +61,7 @@ function c24842059.cfilter(c,tp) ...@@ -61,7 +61,7 @@ function c24842059.cfilter(c,tp)
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(REASON_COST,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)
......
...@@ -18,7 +18,7 @@ end ...@@ -18,7 +18,7 @@ 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(REASON_COST,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)
......
...@@ -12,7 +12,7 @@ function c25109950.initial_effect(c) ...@@ -12,7 +12,7 @@ function c25109950.initial_effect(c)
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(REASON_COST,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)
......
...@@ -31,7 +31,7 @@ function c25435080.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -31,7 +31,7 @@ function c25435080.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
e:SetLabel(0) e:SetLabel(0)
return Duel.CheckReleaseGroup(REASON_COST,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)
......
...@@ -31,7 +31,7 @@ function c25449584.spcon(e,c) ...@@ -31,7 +31,7 @@ function c25449584.spcon(e,c)
return Duel.CheckReleaseGroup(REASON_COST,tp,c25449584.spfilter,1,nil,tp) return Duel.CheckReleaseGroup(REASON_COST,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_COST,tp,c25449584.spfilter,1,1,nil,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
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()
......
...@@ -39,7 +39,7 @@ function c25629622.initial_effect(c) ...@@ -39,7 +39,7 @@ function c25629622.initial_effect(c)
end end
function c25629622.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function c25629622.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsSetCard,1,nil,0x10ec) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsSetCard,1,nil,0x10ec) end
local g=Duel.SelectReleaseGroup(tp,Card.IsSetCard,1,1,nil,0x10ec) local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsSetCard,1,1,nil,0x10ec)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c25629622.thfilter(c) function c25629622.thfilter(c)
......
...@@ -16,7 +16,7 @@ function c25643346.initial_effect(c) ...@@ -16,7 +16,7 @@ function c25643346.initial_effect(c)
end end
function c25643346.stcost(e,tp,eg,ep,ev,re,r,rp,chk) function c25643346.stcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,aux.TRUE,2,nil) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,aux.TRUE,2,nil) end
local g=Duel.SelectReleaseGroup(tp,aux.TRUE,2,2,nil) local g=Duel.SelectReleaseGroup(REASON_COST,tp,aux.TRUE,2,2,nil)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c25643346.stfilter(c) function c25643346.stfilter(c)
......
...@@ -28,7 +28,7 @@ function c2572890.cfilter(c) ...@@ -28,7 +28,7 @@ function c2572890.cfilter(c)
end end
function c2572890.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c2572890.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c2572890.cfilter,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c2572890.cfilter,1,nil) end
local g=Duel.SelectReleaseGroup(tp,c2572890.cfilter,1,1,nil) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c2572890.cfilter,1,1,nil)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c2572890.condition1(e,tp,eg,ep,ev,re,r,rp) function c2572890.condition1(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -92,7 +92,7 @@ function c25811989.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -92,7 +92,7 @@ function c25811989.thop(e,tp,eg,ep,ev,re,r,rp)
end end
function c25811989.rmcost(e,tp,eg,ep,ev,re,r,rp,chk) function c25811989.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsReleasable,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsReleasable,1,nil) end
local g=Duel.SelectReleaseGroup(tp,Card.IsReleasable,1,1,nil) local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsReleasable,1,1,nil)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c25811989.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c25811989.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -104,7 +104,7 @@ function c26034577.rmcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -104,7 +104,7 @@ function c26034577.rmcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c26034577.rmcost(e,tp,eg,ep,ev,re,r,rp,chk) function c26034577.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsReleasable,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsReleasable,1,nil) end
local g=Duel.SelectReleaseGroup(tp,Card.IsReleasable,1,1,nil) local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsReleasable,1,1,nil)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c26034577.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c26034577.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -44,7 +44,7 @@ function c26949946.hdcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -44,7 +44,7 @@ function c26949946.hdcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsCode,1,nil,31533705) if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsCode,1,nil,31533705)
and Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)>0 end and Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)>0 end
local ct=Duel.GetFieldGroupCount(tp,0,LOCATION_HAND) local ct=Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)
local g=Duel.SelectReleaseGroup(tp,Card.IsCode,1,ct,nil,31533705) local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsCode,1,ct,nil,31533705)
e:SetLabel(g:GetCount()) e:SetLabel(g:GetCount())
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
......
...@@ -17,7 +17,7 @@ function c27869883.cfilter(c) ...@@ -17,7 +17,7 @@ function c27869883.cfilter(c)
end end
function c27869883.damcost(e,tp,eg,ep,ev,re,r,rp,chk) function c27869883.damcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c27869883.cfilter,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c27869883.cfilter,1,nil) end
local g=Duel.SelectReleaseGroup(tp,c27869883.cfilter,1,1,nil) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c27869883.cfilter,1,1,nil)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c27869883.damtg(e,tp,eg,ep,ev,re,r,rp,chk) function c27869883.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -89,7 +89,7 @@ function c27993919.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -89,7 +89,7 @@ function c27993919.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c27993919.spop(e,tp,eg,ep,ev,re,r,rp) function c27993919.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectReleaseGroup(tp,c27993919.cfilter,1,1,nil,e,tp) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c27993919.cfilter,1,1,nil,e,tp)
if Duel.Release(g,REASON_EFFECT)>0 then if Duel.Release(g,REASON_EFFECT)>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=Duel.SelectMatchingCard(tp,c27993919.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp,g:GetFirst():GetCurrentScale()) local sg=Duel.SelectMatchingCard(tp,c27993919.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp,g:GetFirst():GetCurrentScale())
......
...@@ -12,7 +12,7 @@ function c28062325.initial_effect(c) ...@@ -12,7 +12,7 @@ function c28062325.initial_effect(c)
end end
function c28062325.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c28062325.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsRace,1,nil,RACE_PLANT) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsRace,1,nil,RACE_PLANT) end
local g=Duel.SelectReleaseGroup(tp,Card.IsRace,1,1,nil,RACE_PLANT) local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsRace,1,1,nil,RACE_PLANT)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c28062325.target(e,tp,eg,ep,ev,re,r,rp,chk) function c28062325.target(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -46,7 +46,7 @@ end ...@@ -46,7 +46,7 @@ end
function c28388927.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c28388927.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsRace,1,c,RACE_INSECT) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsRace,1,c,RACE_INSECT) end
local rg=Duel.SelectReleaseGroup(tp,Card.IsRace,1,1,c,RACE_INSECT) local rg=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsRace,1,1,c,RACE_INSECT)
Duel.Release(rg,REASON_COST) Duel.Release(rg,REASON_COST)
end end
function c28388927.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c28388927.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -34,7 +34,7 @@ end ...@@ -34,7 +34,7 @@ end
function c28529976.target(e,tp,eg,ep,ev,re,r,rp,chk) function c28529976.target(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(REASON_COST,tp,c28529976.cfilter,1,nil,e,tp,ft) end if chk==0 then return ft>-1 and Duel.CheckReleaseGroup(REASON_COST,tp,c28529976.cfilter,1,nil,e,tp,ft) end
local rg=Duel.SelectReleaseGroup(tp,c28529976.cfilter,1,1,nil,e,tp,ft) local rg=Duel.SelectReleaseGroup(REASON_COST,tp,c28529976.cfilter,1,1,nil,e,tp,ft)
e:SetLabel(rg:GetFirst():GetLevel()+3) e:SetLabel(rg:GetFirst():GetLevel()+3)
Duel.Release(rg,REASON_COST) Duel.Release(rg,REASON_COST)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK)
......
...@@ -30,7 +30,7 @@ function c28553439.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -30,7 +30,7 @@ function c28553439.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c28553439.rfilter(chkc,e,tp,ft) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and c28553439.rfilter(chkc,e,tp,ft) end
if chk==0 then return ft>-1 and Duel.CheckReleaseGroup(REASON_COST,tp,c28553439.rfilter,1,nil,e,tp,ft) if chk==0 then return ft>-1 and Duel.CheckReleaseGroup(REASON_COST,tp,c28553439.rfilter,1,nil,e,tp,ft)
and Duel.IsExistingMatchingCard(c28553439.filter,tp,LOCATION_HAND,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c28553439.filter,tp,LOCATION_HAND,0,1,nil,e,tp) end
local g=Duel.SelectReleaseGroup(tp,c28553439.rfilter,1,1,nil,e,tp,ft) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c28553439.rfilter,1,1,nil,e,tp,ft)
Duel.SetTargetCard(g) Duel.SetTargetCard(g)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND)
end end
......
...@@ -18,7 +18,7 @@ function c28565527.cfilter(c) ...@@ -18,7 +18,7 @@ function c28565527.cfilter(c)
end end
function c28565527.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c28565527.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c28565527.cfilter,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c28565527.cfilter,1,nil) end
local g=Duel.SelectReleaseGroup(tp,c28565527.cfilter,1,1,nil) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c28565527.cfilter,1,1,nil)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c28565527.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c28565527.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -53,7 +53,7 @@ end ...@@ -53,7 +53,7 @@ end
function c286392.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c286392.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(REASON_COST,tp,c286392.cfilter,1,nil,ft,tp) end if chk==0 then return ft>-1 and Duel.CheckReleaseGroup(REASON_COST,tp,c286392.cfilter,1,nil,ft,tp) end
local g=Duel.SelectReleaseGroup(tp,c286392.cfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c286392.cfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c286392.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c286392.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -106,7 +106,7 @@ end ...@@ -106,7 +106,7 @@ end
function c28651380.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function c28651380.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,aux.TRUE,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,aux.TRUE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectReleaseGroup(tp,aux.TRUE,1,1,nil) local g=Duel.SelectReleaseGroup(REASON_COST,tp,aux.TRUE,1,1,nil)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c28651380.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c28651380.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -15,7 +15,7 @@ function c28754338.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -15,7 +15,7 @@ function c28754338.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsReleasable() and Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsRace,1,c,RACE_SEASERPENT) end if chk==0 then return c:IsReleasable() and Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsRace,1,c,RACE_SEASERPENT) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local rg=Duel.SelectReleaseGroup(tp,Card.IsRace,1,1,c,RACE_SEASERPENT) local rg=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsRace,1,1,c,RACE_SEASERPENT)
rg:AddCard(c) rg:AddCard(c)
Duel.Release(rg,REASON_COST) Duel.Release(rg,REASON_COST)
end end
......
...@@ -13,7 +13,7 @@ function c29013526.initial_effect(c) ...@@ -13,7 +13,7 @@ function c29013526.initial_effect(c)
end end
function c29013526.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c29013526.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsAttribute,1,e:GetHandler(),ATTRIBUTE_WIND) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsAttribute,1,e:GetHandler(),ATTRIBUTE_WIND) end
local g=Duel.SelectReleaseGroup(tp,Card.IsAttribute,1,1,e:GetHandler(),ATTRIBUTE_WIND) local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsAttribute,1,1,e:GetHandler(),ATTRIBUTE_WIND)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c29013526.filter(c,e,tp) function c29013526.filter(c,e,tp)
......
...@@ -16,7 +16,7 @@ end ...@@ -16,7 +16,7 @@ end
function c2903036.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c2903036.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(1) e:SetLabel(1)
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c2903036.cfilter,1,nil,tp) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c2903036.cfilter,1,nil,tp) end
local g=Duel.SelectReleaseGroup(tp,c2903036.cfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(REASON_COST,tp,c2903036.cfilter,1,1,nil,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c2903036.filter(c,e,tp) function c2903036.filter(c,e,tp)
......
...@@ -13,7 +13,7 @@ function c29139104.initial_effect(c) ...@@ -13,7 +13,7 @@ function c29139104.initial_effect(c)
end end
function c29139104.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c29139104.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsAttribute,1,e:GetHandler(),ATTRIBUTE_EARTH) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsAttribute,1,e:GetHandler(),ATTRIBUTE_EARTH) end
local g=Duel.SelectReleaseGroup(tp,Card.IsAttribute,1,1,e:GetHandler(),ATTRIBUTE_EARTH) local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsAttribute,1,1,e:GetHandler(),ATTRIBUTE_EARTH)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c29139104.filter(c,e,tp) function c29139104.filter(c,e,tp)
......
...@@ -31,7 +31,7 @@ function c29348048.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -31,7 +31,7 @@ function c29348048.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(REASON_COST,tp,Card.IsRace,1,c,RACE_ZOMBIE) end if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsRace,1,c,RACE_ZOMBIE) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectReleaseGroup(tp,Card.IsRace,1,1,c,RACE_ZOMBIE) local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsRace,1,1,c,RACE_ZOMBIE)
local tc=g:GetFirst() local tc=g:GetFirst()
e:SetLabelObject(tc) e:SetLabelObject(tc)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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