Commit 3e7fb21a authored by wind2009's avatar wind2009

Recommit reverted commits

This reverts commit 11c22b85
This reverts commit 86d9be5f
This reverts commit 9eb821d0
parent 0bbfa7bd
...@@ -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(REASON_COST,tp,nil,2,nil) end if chk==0 then return e:GetHandler():GetAttackAnnouncedCount()==0 and Duel.CheckReleaseGroup(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(REASON_COST,tp,nil,2,2,nil) local g=Duel.SelectReleaseGroup(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)
......
...@@ -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(REASON_COST,tp,c10026986.cfilter,1,nil,tp) end if chk==0 then return Duel.CheckReleaseGroup(tp,c10026986.cfilter,1,nil,tp) end
local sg=Duel.SelectReleaseGroup(REASON_COST,tp,c10026986.cfilter,1,1,nil,tp) local sg=Duel.SelectReleaseGroup(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(REASON_COST,tp,c1003840.cfilter,1,nil,e,tp,ft) end if chk==0 then return ft>-1 and Duel.CheckReleaseGroup(tp,c1003840.cfilter,1,nil,e,tp,ft) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c1003840.cfilter,1,1,nil,e,tp,ft) local g=Duel.SelectReleaseGroup(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
......
...@@ -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(REASON_COST,tp,c1041278.rfilter1,1,nil,tp) local b1=Duel.CheckReleaseGroup(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(REASON_COST,tp,c1041278.rfilter2,1,nil,tp) local b2=Duel.CheckReleaseGroup(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(REASON_COST,tp,rfilter,1,1,nil,tp) local rg=Duel.SelectReleaseGroup(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,10 +31,10 @@ function c10485110.initial_effect(c) ...@@ -31,10 +31,10 @@ 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(REASON_SPSUMMON,c:GetControler(),Card.IsCode,1,nil,37721209) return Duel.CheckReleaseGroupEx(c:GetControler(),Card.IsCode,1,REASON_SPSUMMON,false,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(REASON_SPSUMMON,tp,Card.IsCode,1,1,nil,37721209) local g=Duel.SelectReleaseGroupEx(tp,Card.IsCode,1,1,REASON_SPSUMMON,false,nil,37721209)
Duel.Release(g,REASON_SPSUMMON) Duel.Release(g,REASON_SPSUMMON)
end end
function c10485110.cfilter(c) function c10485110.cfilter(c)
......
...@@ -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(REASON_COST,tp,Card.IsCode,1,nil,32679370) end if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsCode,1,nil,32679370) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsCode,1,1,nil,32679370) local g=Duel.SelectReleaseGroup(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)
......
--A★スペキュレーション --A★スペキュレーション
--Lua by Gim J.Blocks
function c10796448.initial_effect(c) function c10796448.initial_effect(c)
c:SetSPSummonOnce(10796448) c:SetSPSummonOnce(10796448)
--fusion material --fusion material
......
...@@ -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(REASON_COST,tp,c11167052.filter1,1,nil,e,tp) return Duel.CheckReleaseGroup(tp,c11167052.filter1,1,nil,e,tp)
end end
local rg=Duel.SelectReleaseGroup(REASON_COST,tp,c11167052.filter1,1,1,nil,e,tp) local rg=Duel.SelectReleaseGroup(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(REASON_COST,tp,nil,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(tp,nil,1,nil) end
local sg=Duel.SelectReleaseGroup(REASON_COST,tp,nil,1,1,nil) local sg=Duel.SelectReleaseGroup(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,11 +59,11 @@ end ...@@ -59,11 +59,11 @@ 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(REASON_SPSUMMON,tp,c11443677.sprfilter,1,nil,tp,c) return Duel.CheckReleaseGroupEx(tp,c11443677.sprfilter,1,REASON_SPSUMMON,false,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(REASON_SPSUMMON,tp,c11443677.sprfilter,1,1,nil,tp,c) local g=Duel.SelectReleaseGroupEx(tp,c11443677.sprfilter,1,1,REASON_SPSUMMON,false,nil,tp,c)
c:SetMaterial(g) c:SetMaterial(g)
Duel.Release(g,REASON_SPSUMMON) Duel.Release(g,REASON_SPSUMMON)
end end
......
...@@ -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(REASON_COST,tp,c11516241.rfilter,1,nil,tp) end if chk==0 then return Duel.CheckReleaseGroup(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(REASON_COST,tp,c11516241.rfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(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
......
...@@ -21,7 +21,7 @@ function c11593137.filter(c) ...@@ -21,7 +21,7 @@ function c11593137.filter(c)
return c:IsAttribute(0x30) and c:IsAbleToRemove() return c:IsAttribute(0x30) and c:IsAbleToRemove()
end end
function c11593137.condition(e,tp,eg,ep,ev,re,r,rp) function c11593137.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentChain()==0 and eg:IsExists(c11593137.filter,1,nil) return aux.NegateSummonCondition() and eg:IsExists(c11593137.filter,1,nil)
end end
function c11593137.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c11593137.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLPCost(tp,2000) end if chk==0 then return Duel.CheckLPCost(tp,2000) 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(REASON_COST,tp,c11819616.costfilter,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(tp,c11819616.costfilter,1,nil) end
local sg=Duel.SelectReleaseGroup(REASON_COST,tp,c11819616.costfilter,1,1,nil) local sg=Duel.SelectReleaseGroup(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)
......
...@@ -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(REASON_COST,tp,Card.IsSetCard,1,nil,0x69) end if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsSetCard,1,nil,0x69) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsSetCard,1,1,nil,0x69) local g=Duel.SelectReleaseGroup(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(REASON_COST,tp,Card.IsSetCard,1,nil,0x9f) end if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsSetCard,1,nil,0x9f) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsSetCard,1,1,nil,0x9f) local g=Duel.SelectReleaseGroup(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)
......
...@@ -84,7 +84,7 @@ function s.FShaddollSpgcheck(g,fc,ec,chkf) ...@@ -84,7 +84,7 @@ function s.FShaddollSpgcheck(g,fc,ec,chkf)
sg:AddCard(ec) sg:AddCard(ec)
local c=g:Filter(s.Blue_Eyes_Ultimate_Dragon,nil):GetFirst() local c=g:Filter(s.Blue_Eyes_Ultimate_Dragon,nil):GetFirst()
if aux.FCheckAdditional and not aux.FCheckAdditional(tp,sg,fc) if aux.FCheckAdditional and not aux.FCheckAdditional(tp,sg,fc)
or aux.FGoalCheckAdditional and not aux.FGoalCheckAdditional(tp,sg,fc) then return false end or aux.FGoalCheckAdditional and not aux.FGoalCheckAdditional(tp,sg,fc) then return false end
return ((g:FilterCount(s.Blue_Eyes_Ultimate_Dragon,nil)==1 return ((g:FilterCount(s.Blue_Eyes_Ultimate_Dragon,nil)==1
and g:FilterCount(Card.IsFusionSetCard,Group.FromCards(c,ec),0xdd)==0 and g:FilterCount(Card.IsFusionSetCard,Group.FromCards(c,ec),0xdd)==0
or g:FilterCount(Card.IsFusionSetCard,ec,0xdd)==3) or g:FilterCount(Card.IsFusionSetCard,ec,0xdd)==3)
...@@ -99,7 +99,7 @@ function s.Necessarily_FShaddollSpgcheck(g,gc,fc,ec,chkf) ...@@ -99,7 +99,7 @@ function s.Necessarily_FShaddollSpgcheck(g,gc,fc,ec,chkf)
local sg=g:Clone() local sg=g:Clone()
sg:AddCard(ec) sg:AddCard(ec)
if aux.FCheckAdditional and not aux.FCheckAdditional(tp,sg,fc) if aux.FCheckAdditional and not aux.FCheckAdditional(tp,sg,fc)
or aux.FGoalCheckAdditional and not aux.FGoalCheckAdditional(tp,sg,fc) then return false end or aux.FGoalCheckAdditional and not aux.FGoalCheckAdditional(tp,sg,fc) then return false end
return (((g:FilterCount(s.Blue_Eyes_Ultimate_Dragon,nil)==1 return (((g:FilterCount(s.Blue_Eyes_Ultimate_Dragon,nil)==1
and g:FilterCount(Card.IsFusionSetCard,c,0xdd)==0 and g:FilterCount(Card.IsFusionSetCard,c,0xdd)==0
or g:FilterCount(Card.IsFusionSetCard,nil,0xdd)==3) and g:FilterCount(s.Necessarily_FShaddollFilter,nil,gc)==1) or g:FilterCount(Card.IsFusionSetCard,nil,0xdd)==3) and g:FilterCount(s.Necessarily_FShaddollFilter,nil,gc)==1)
...@@ -107,7 +107,7 @@ function s.Necessarily_FShaddollSpgcheck(g,gc,fc,ec,chkf) ...@@ -107,7 +107,7 @@ function s.Necessarily_FShaddollSpgcheck(g,gc,fc,ec,chkf)
and g:FilterCount(s.Unnecessary_Chaos_FShaddollFilter,nil)==0 and g:FilterCount(s.Unnecessary_Chaos_FShaddollFilter,nil)==0
end end
function s.FShaddollCondition() function s.FShaddollCondition()
return function(e,g,gc,chkf) return function(e,g,gc,chkf)
if g==nil then return aux.MustMaterialCheck(nil,e:GetHandlerPlayer(),EFFECT_MUST_BE_FMATERIAL) end if g==nil then return aux.MustMaterialCheck(nil,e:GetHandlerPlayer(),EFFECT_MUST_BE_FMATERIAL) end
local fc=e:GetHandler() local fc=e:GetHandler()
local tp=e:GetHandlerPlayer() local tp=e:GetHandlerPlayer()
...@@ -119,7 +119,7 @@ function s.FShaddollCondition() ...@@ -119,7 +119,7 @@ function s.FShaddollCondition()
end end
end end
function s.FShaddollOperation() function s.FShaddollOperation()
return function(e,tp,eg,ep,ev,re,r,rp,gc,chkf) return function(e,tp,eg,ep,ev,re,r,rp,gc,chkf)
local fc=e:GetHandler() local fc=e:GetHandler()
local tp=e:GetHandlerPlayer() local tp=e:GetHandlerPlayer()
local mg=nil local mg=nil
......
...@@ -40,10 +40,10 @@ function c12510878.initial_effect(c) ...@@ -40,10 +40,10 @@ 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(REASON_SPSUMMON,c:GetControler(),Card.IsCode,1,nil,18036057) return Duel.CheckReleaseGroupEx(c:GetControler(),Card.IsCode,1,REASON_SPSUMMON,false,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(REASON_SPSUMMON,c:GetControler(),Card.IsCode,1,1,nil,18036057) local g=Duel.SelectReleaseGroupEx(c:GetControler(),Card.IsCode,1,1,REASON_SPSUMMON,false,nil,18036057)
Duel.Release(g,REASON_SPSUMMON) 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)
......
--重铠装-霍普鳍条枪兵 --FA-ホープ・レイ・ランサー
function c1269512.initial_effect(c) function c1269512.initial_effect(c)
aux.AddXyzProcedure(c,nil,4,3,c1269512.ovfilter,aux.Stringid(1269512,0),3,c1269512.xyzop) aux.AddXyzProcedure(c,nil,4,3,c1269512.ovfilter,aux.Stringid(1269512,0),3,c1269512.xyzop)
c:EnableReviveLimit() c:EnableReviveLimit()
......
...@@ -34,11 +34,8 @@ end ...@@ -34,11 +34,8 @@ end
function c12766474.relfilter(c,g) function c12766474.relfilter(c,g)
return g:IsContains(c) return g:IsContains(c)
end end
function c12766474.rfilter(c)
return c:IsReleasable() and c:IsAttribute(ATTRIBUTE_DARK)
end
function c12766474.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c12766474.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local rg=Duel.GetReleaseGroup(tp):Filter(c12766474.rfilter,nil) local rg=Duel.GetReleaseGroup(tp):Filter(Card.IsAttribute,nil,ATTRIBUTE_DARK)
if chk==0 then return Duel.GetCustomActivityCount(12766474,tp,ACTIVITY_SPSUMMON)==0 if chk==0 then return Duel.GetCustomActivityCount(12766474,tp,ACTIVITY_SPSUMMON)==0
and rg:CheckSubGroup(aux.mzctcheckrel,1,#rg,tp) end and rg:CheckSubGroup(aux.mzctcheckrel,1,#rg,tp) end
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
......
...@@ -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(REASON_COST,tp,c13046291.costfilter,1,nil,tp) if chk==0 then return Duel.CheckReleaseGroup(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(REASON_COST,tp,c13046291.costfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(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,10 +54,10 @@ end ...@@ -54,10 +54,10 @@ 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(REASON_SPSUMMON,tp,c13224603.hspfilter,1,nil,tp) return Duel.CheckReleaseGroupEx(tp,c13224603.hspfilter,1,REASON_SPSUMMON,false,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(REASON_SPSUMMON,tp,c13224603.hspfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroupEx(tp,c13224603.hspfilter,1,1,REASON_SPSUMMON,false,nil,tp)
Duel.Release(g,REASON_SPSUMMON) 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)
......
...@@ -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(REASON_COST,tp,c132308.costfilter,1,nil,tp) end if chk==0 then return e:GetHandler():IsAbleToDeckAsCost() and Duel.CheckReleaseGroup(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(REASON_COST,tp,c132308.costfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(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)
......
...@@ -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(REASON_COST,tp,c13361027.cfilter,1,nil,tp) end if chk==0 then return Duel.CheckReleaseGroup(tp,c13361027.cfilter,1,nil,tp) end
local rg=Duel.SelectReleaseGroup(REASON_COST,tp,c13361027.cfilter,1,1,nil,tp) local rg=Duel.SelectReleaseGroup(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(REASON_COST,tp,c13452889.cfilter,1,nil,tp,lg,zone) end if chk==0 then return Duel.CheckReleaseGroup(tp,c13452889.cfilter,1,nil,tp,lg,zone) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c13452889.cfilter,1,1,nil,tp,lg,zone) local g=Duel.SelectReleaseGroup(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(REASON_COST,tp,Card.IsSetCard,1,nil,0x2b) end if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsSetCard,1,nil,0x2b) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsSetCard,1,1,nil,0x2b) local g=Duel.SelectReleaseGroup(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(REASON_COST,tp,c13972452.cfilter,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(tp,c13972452.cfilter,1,nil) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c13972452.cfilter,1,1,nil) local g=Duel.SelectReleaseGroup(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(REASON_SPSUMMON,c:GetControler(),c14141448.rfilter,1,nil) and Duel.CheckReleaseGroupEx(c:GetControler(),c14141448.rfilter,1,REASON_SPSUMMON,false,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(REASON_SPSUMMON,c:GetControler(),c14141448.rfilter,1,1,nil) local g=Duel.SelectReleaseGroupEx(c:GetControler(),c14141448.rfilter,1,1,REASON_SPSUMMON,false,nil)
Duel.Release(g,REASON_SPSUMMON) 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(REASON_EFFECT,tp,c14644902.rfilter,1,1,aux.ExceptThisCard(e),e,tp) local rg=Duel.SelectReleaseGroupEx(tp,c14644902.rfilter,1,1,REASON_EFFECT,false,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(REASON_EFFECT,tp,c14644902.rfilter2,1,1,aux.ExceptThisCard(e),tp) rg=Duel.SelectReleaseGroupEx(tp,c14644902.rfilter2,1,1,REASON_EFFECT,false,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(REASON_COST,tp,nil,2,nil) end if chk==0 then return Duel.CheckReleaseGroup(tp,nil,2,nil) end
local sg=Duel.SelectReleaseGroup(REASON_COST,tp,nil,2,2,nil) local sg=Duel.SelectReleaseGroup(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(REASON_COST,tp,c1474910.cfilter,1,nil) end if chk==0 then return e:GetHandler():IsReleasable() and Duel.CheckReleaseGroup(tp,c1474910.cfilter,1,nil) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c1474910.cfilter,1,1,nil) local g=Duel.SelectReleaseGroup(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(REASON_COST,tp,c14799437.cfilter,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(tp,c14799437.cfilter,1,nil) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c14799437.cfilter,1,1,nil) local g=Duel.SelectReleaseGroup(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(REASON_COST,tp,Card.IsAttribute,1,e:GetHandler(),ATTRIBUTE_DARK) end if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsAttribute,1,e:GetHandler(),ATTRIBUTE_DARK) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsAttribute,1,1,e:GetHandler(),ATTRIBUTE_DARK) local g=Duel.SelectReleaseGroup(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(REASON_COST,tp,c1508649.cfilter,1,nil,lg) end if chk==0 then return Duel.CheckReleaseGroup(tp,c1508649.cfilter,1,nil,lg) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c1508649.cfilter,1,1,nil,lg) local g=Duel.SelectReleaseGroup(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,11 +58,11 @@ function c15180041.spcon(e,c) ...@@ -58,11 +58,11 @@ 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(REASON_SPSUMMON,tp,c15180041.spfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroupEx(tp,c15180041.spfilter,1,REASON_SPSUMMON,false,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(REASON_SPSUMMON,tp,c15180041.spfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroupEx(tp,c15180041.spfilter,1,1,REASON_SPSUMMON,false,nil,ft,tp)
Duel.Release(g,REASON_SPSUMMON) 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)
......
...@@ -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(REASON_COST,tp,c15187079.costfilter,1,c,tp) return Duel.CheckReleaseGroup(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(REASON_COST,tp,c15187079.costfilter,1,1,c,tp) local sg=Duel.SelectReleaseGroup(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)
......
...@@ -50,10 +50,10 @@ function c15291624.spcon(e,c) ...@@ -50,10 +50,10 @@ 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(REASON_SPSUMMON,tp,c15291624.spfilter,1,nil,c,tp) and Duel.CheckReleaseGroupEx(tp,c15291624.spfilter,1,REASON_SPSUMMON,false,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(REASON_SPSUMMON,tp,c15291624.spfilter,1,1,nil,c,tp) local g=Duel.SelectReleaseGroupEx(tp,c15291624.spfilter,1,1,REASON_SPSUMMON,false,nil,c,tp)
c:SetMaterial(g) c:SetMaterial(g)
Duel.Release(g,REASON_SPSUMMON) Duel.Release(g,REASON_SPSUMMON)
end end
......
...@@ -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(REASON_COST,tp,Card.IsType,1,nil,TYPE_TOKEN) end if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsType,1,nil,TYPE_TOKEN) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsType,1,1,nil,TYPE_TOKEN) local g=Duel.SelectReleaseGroup(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)
......
...@@ -6,6 +6,7 @@ function c15717011.initial_effect(c) ...@@ -6,6 +6,7 @@ function c15717011.initial_effect(c)
e1:SetDescription(aux.Stringid(15717011,0)) e1:SetDescription(aux.Stringid(15717011,0))
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetLabel(0)
e1:SetCost(c15717011.cost) e1:SetCost(c15717011.cost)
e1:SetTarget(c15717011.target) e1:SetTarget(c15717011.target)
e1:SetOperation(c15717011.operation) e1:SetOperation(c15717011.operation)
...@@ -25,16 +26,22 @@ function c15717011.filter(c,e,tp,m,gc,chkf) ...@@ -25,16 +26,22 @@ function c15717011.filter(c,e,tp,m,gc,chkf)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:CheckFusionMaterial(m,gc,chkf) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:CheckFusionMaterial(m,gc,chkf)
end end
function c15717011.mfilter(c,tp) function c15717011.mfilter(c,tp)
return c:IsReleasable() and 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(REASON_COST,tp,aux.IsInGroup,#sg,nil,sg) return Duel.CheckReleaseGroup(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)
return true
end
function c15717011.target(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
local mg=Duel.GetReleaseGroup(tp):Filter(c15717011.mfilter,nil,tp)
local chkf=tp+0x100 local chkf=tp+0x100
if chk==0 then if chk==0 then
if e:GetLabel()~=1 then return false end
e:SetLabel(0)
local mg=Duel.GetReleaseGroup(tp):Filter(c15717011.mfilter,nil,tp)
aux.FCheckAdditional=c15717011.fcheck aux.FCheckAdditional=c15717011.fcheck
if c59160188 then c59160188.re_activated=true end if c59160188 then c59160188.re_activated=true end
local res=Duel.IsExistingMatchingCard(c15717011.filter,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg,c,chkf) local res=Duel.IsExistingMatchingCard(c15717011.filter,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg,c,chkf)
...@@ -42,6 +49,7 @@ function c15717011.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -42,6 +49,7 @@ function c15717011.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if c59160188 then c59160188.re_activated=false end if c59160188 then c59160188.re_activated=false end
return res return res
end end
local mg=Duel.GetReleaseGroup(tp):Filter(c15717011.mfilter,nil,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
aux.FCheckAdditional=c15717011.fcheck aux.FCheckAdditional=c15717011.fcheck
if c59160188 then c59160188.re_activated=true end if c59160188 then c59160188.re_activated=true end
...@@ -52,9 +60,6 @@ function c15717011.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -52,9 +60,6 @@ function c15717011.cost(e,tp,eg,ep,ev,re,r,rp,chk)
aux.UseExtraReleaseCount(mat,tp) aux.UseExtraReleaseCount(mat,tp)
Duel.Release(mat,REASON_COST) Duel.Release(mat,REASON_COST)
e:SetLabel(g:GetFirst():GetCode()) e:SetLabel(g:GetFirst():GetCode())
end
function c15717011.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:IsCostChecked() end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
end end
function c15717011.filter2(c,e,tp,code) function c15717011.filter2(c,e,tp,code)
......
...@@ -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(REASON_COST,tp,c15844566.cfilter,1,nil,lg) end if chk==0 then return Duel.CheckReleaseGroup(tp,c15844566.cfilter,1,nil,lg) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c15844566.cfilter,1,1,nil,lg) local g=Duel.SelectReleaseGroup(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,11 +39,11 @@ function c16024176.hspcon(e,c) ...@@ -39,11 +39,11 @@ 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(REASON_SPSUMMON,tp,c16024176.hspfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroupEx(tp,c16024176.hspfilter,1,REASON_SPSUMMON,false,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(REASON_SPSUMMON,tp,c16024176.hspfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroupEx(tp,c16024176.hspfilter,1,1,REASON_SPSUMMON,false,nil,ft,tp)
Duel.Release(g,REASON_SPSUMMON) 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)
......
...@@ -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(REASON_COST,tp,c16313112.cfilter,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(tp,c16313112.cfilter,1,nil) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c16313112.cfilter,1,1,nil) local g=Duel.SelectReleaseGroup(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)
......
...@@ -11,7 +11,7 @@ function c1637760.initial_effect(c) ...@@ -11,7 +11,7 @@ function c1637760.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c1637760.condition(e,tp,eg,ep,ev,re,r,rp) function c1637760.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentChain()==0 and Duel.GetTurnPlayer()~=tp and rp==1-tp return aux.NegateSummonCondition() and Duel.GetTurnPlayer()~=tp and rp==1-tp
and (Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2) and (Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2)
end end
function c1637760.target(e,tp,eg,ep,ev,re,r,rp,chk) function c1637760.target(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -38,11 +38,11 @@ function c16802689.hspcon(e,c) ...@@ -38,11 +38,11 @@ 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(REASON_SPSUMMON,tp,c16802689.hspfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroupEx(tp,c16802689.hspfilter,1,REASON_SPSUMMON,false,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(REASON_SPSUMMON,tp,c16802689.hspfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroupEx(tp,c16802689.hspfilter,1,1,REASON_SPSUMMON,false,nil,ft,tp)
Duel.Release(g,REASON_SPSUMMON) 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)
......
...@@ -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(REASON_COST,tp,c16923472.costfilter,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(tp,c16923472.costfilter,1,nil) end
local sg=Duel.SelectReleaseGroup(REASON_COST,tp,c16923472.costfilter,1,1,nil) local sg=Duel.SelectReleaseGroup(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(REASON_COST,tp,c16940215.cfilter,1,c) local b2=c:IsReleasable() and Duel.CheckReleaseGroup(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(REASON_COST,tp,c16940215.cfilter,1,1,c) local g=Duel.SelectReleaseGroup(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(REASON_COST,tp,c16960351.rfilter,1,nil,e,tp,ft) end if chk==0 then return ft>-1 and Duel.CheckReleaseGroup(tp,c16960351.rfilter,1,nil,e,tp,ft) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c16960351.rfilter,1,1,nil,e,tp,ft) local g=Duel.SelectReleaseGroup(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)
......
...@@ -26,13 +26,13 @@ function c17197110.initial_effect(c) ...@@ -26,13 +26,13 @@ function c17197110.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c17197110.rfilter(c,tp) function c17197110.rfilter(c,tp)
return c:IsReleasable() and c:IsSetCard(0x2f) and c:IsType(TYPE_MONSTER) and (c:IsControler(tp) or c:IsFaceup()) return c:IsSetCard(0x2f) and c:IsType(TYPE_MONSTER) and (c:IsControler(tp) or c:IsFaceup())
end end
function c17197110.spfilter(c,e,tp) 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(REASON_COST,tp,aux.IsInGroup,#g,nil,g) return Duel.GetMZoneCount(tp,g)>=g:GetCount() and Duel.CheckReleaseGroup(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)
......
...@@ -62,7 +62,9 @@ function s.neop(e,tp,eg,ep,ev,re,r,rp) ...@@ -62,7 +62,9 @@ function s.neop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.descon(e,tp,eg,ep,ev,re,r,rp) function s.descon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetAttacker()==e:GetHandler() and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_GRAVE,0,1,nil,26077387) and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_GRAVE,0,1,nil,37351133) return Duel.GetAttacker()==e:GetHandler()
and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_GRAVE,0,1,nil,26077387)
and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_GRAVE,0,1,nil,37351133)
end end
function s.destg(e,tp,eg,ep,ev,re,r,rp,chk) function s.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_MZONE,1,nil) end
...@@ -72,4 +74,4 @@ end ...@@ -72,4 +74,4 @@ end
function s.desop(e,tp,eg,ep,ev,re,r,rp) function s.desop(e,tp,eg,ep,ev,re,r,rp)
local sg=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_MZONE,nil) local sg=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_MZONE,nil)
Duel.Destroy(sg,REASON_EFFECT) Duel.Destroy(sg,REASON_EFFECT)
end end
\ No newline at end of file
...@@ -48,11 +48,11 @@ function c17286057.hspcon(e,c) ...@@ -48,11 +48,11 @@ 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(REASON_SPSUMMON,tp,c17286057.hspfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroupEx(tp,c17286057.hspfilter,1,REASON_SPSUMMON,false,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(REASON_SPSUMMON,tp,c17286057.hspfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroupEx(tp,c17286057.hspfilter,1,1,REASON_SPSUMMON,false,nil,ft,tp)
Duel.Release(g,REASON_SPSUMMON) Duel.Release(g,REASON_SPSUMMON)
end end
function c17286057.filter(c) function c17286057.filter(c)
......
...@@ -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(REASON_COST,tp,c17427333.costfilter,1,nil,tp) return Duel.CheckReleaseGroup(tp,c17427333.costfilter,1,nil,tp)
end end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c17427333.costfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(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(REASON_COST,tp,Card.IsSetCard,1,nil,0x22) end if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsSetCard,1,nil,0x22) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsSetCard,1,1,nil,0x22) local g=Duel.SelectReleaseGroup(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(REASON_COST,tp,c1802450.cfilter,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(tp,c1802450.cfilter,1,nil) end
local cg=Duel.SelectReleaseGroup(REASON_COST,tp,c1802450.cfilter,1,1,nil) local cg=Duel.SelectReleaseGroup(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,10 +33,10 @@ function c18378582.rfilter(c,code) ...@@ -33,10 +33,10 @@ 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(REASON_SPSUMMON,c:GetControler(),c18378582.rfilter,1,nil,66073051) return Duel.CheckReleaseGroupEx(c:GetControler(),c18378582.rfilter,1,REASON_SPSUMMON,false,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(REASON_SPSUMMON,tp,c18378582.rfilter,1,1,nil,66073051) local g=Duel.SelectReleaseGroupEx(tp,c18378582.rfilter,1,1,REASON_SPSUMMON,false,nil,66073051)
Duel.Release(g,REASON_SPSUMMON) Duel.Release(g,REASON_SPSUMMON)
end end
function c18378582.cfilter(c) function c18378582.cfilter(c)
......
...@@ -28,10 +28,10 @@ end ...@@ -28,10 +28,10 @@ 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(REASON_SPSUMMON,tp,c18491580.hspfilter,1,c,tp) return Duel.CheckReleaseGroupEx(tp,c18491580.hspfilter,1,REASON_SPSUMMON,true,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(REASON_SPSUMMON,tp,c18491580.hspfilter,1,1,c,tp) local sg=Duel.SelectReleaseGroupEx(tp,c18491580.hspfilter,1,1,REASON_SPSUMMON,true,c,tp)
Duel.Release(sg,REASON_SPSUMMON) 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)
......
...@@ -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(REASON_COST,tp,c18597560.cfilter,1,nil,e,tp) end if chk==0 then return Duel.CheckReleaseGroup(tp,c18597560.cfilter,1,nil,e,tp) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c18597560.cfilter,1,1,nil,e,tp) local g=Duel.SelectReleaseGroup(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(REASON_COST,tp,c1861629.cfilter,1,nil,lg) end if chk==0 then return Duel.CheckReleaseGroup(tp,c1861629.cfilter,1,nil,lg) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c1861629.cfilter,1,1,nil,lg) local g=Duel.SelectReleaseGroup(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,11 +29,11 @@ function c18828179.spcon(e,c) ...@@ -29,11 +29,11 @@ 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(REASON_SPSUMMON,tp,c18828179.rfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroupEx(tp,c18828179.rfilter,1,REASON_SPSUMMON,false,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(REASON_SPSUMMON,tp,c18828179.rfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroupEx(tp,c18828179.rfilter,1,1,REASON_SPSUMMON,false,nil,ft,tp)
Duel.Release(g,REASON_SPSUMMON) Duel.Release(g,REASON_SPSUMMON)
end end
function c18828179.cfilter(c) function c18828179.cfilter(c)
......
...@@ -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(REASON_COST,tp,c19221310.cfilter,1,nil,ft,tp) end if chk==0 then return Duel.CheckReleaseGroup(tp,c19221310.cfilter,1,nil,ft,tp) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c19221310.cfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(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(REASON_COST,tp,c19307353.cfilter,1,nil,tp) end if chk==0 then return Duel.CheckReleaseGroup(tp,c19307353.cfilter,1,nil,tp) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c19307353.cfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(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)
......
--累々 --累々
function c19974890.initial_effect(c) function c19974890.initial_effect(c)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_POSITION) e1:SetCategory(CATEGORY_POSITION)
......
...@@ -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(REASON_COST,tp,Card.IsSetCard,1,e:GetHandler(),0x70) end if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsSetCard,1,e:GetHandler(),0x70) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsSetCard,1,1,e:GetHandler(),0x70) local g=Duel.SelectReleaseGroup(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(REASON_COST,tp,c20368763.spcfilter,1,nil,ft,tp) end if chk==0 then return ft>-1 and Duel.CheckReleaseGroup(tp,c20368763.spcfilter,1,nil,ft,tp) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c20368763.spcfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(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,11 +30,11 @@ function c20403123.hspcon(e,c) ...@@ -30,11 +30,11 @@ 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(REASON_SPSUMMON,tp,c20403123.hspfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroupEx(tp,c20403123.hspfilter,1,REASON_SPSUMMON,false,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(REASON_SPSUMMON,tp,c20403123.hspfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroupEx(tp,c20403123.hspfilter,1,1,REASON_SPSUMMON,false,nil,ft,tp)
Duel.Release(g,REASON_SPSUMMON) 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)
......
...@@ -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(REASON_COST,tp,c20513882.cfilter,1,nil,tp) return Duel.CheckReleaseGroup(tp,c20513882.cfilter,1,nil,tp)
end end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c20513882.cfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(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(REASON_COST,tp,c20663556.cfilter,1,nil,ft,tp) end if chk==0 then return ft>-1 and Duel.CheckReleaseGroup(tp,c20663556.cfilter,1,nil,ft,tp) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c20663556.cfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(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(REASON_COST,tp,nil,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(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(REASON_COST,tp,c21200905.cfilter,1,nil,lg) end if chk==0 then return Duel.CheckReleaseGroup(tp,c21200905.cfilter,1,nil,lg) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c21200905.cfilter,1,1,nil,lg) local g=Duel.SelectReleaseGroup(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(REASON_COST,tp,nil,2,nil) end if chk==0 then return Duel.CheckReleaseGroup(tp,nil,2,nil) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,nil,2,2,nil) local g=Duel.SelectReleaseGroup(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,11 +74,11 @@ function c21686473.hspcon(e,c) ...@@ -74,11 +74,11 @@ 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(REASON_SPSUMMON,tp,c21686473.hspfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroupEx(tp,c21686473.hspfilter,1,REASON_SPSUMMON,false,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(REASON_SPSUMMON,tp,c21686473.hspfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroupEx(tp,c21686473.hspfilter,1,1,REASON_SPSUMMON,false,nil,ft,tp)
Duel.Release(g,REASON_SPSUMMON) 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)
......
...@@ -28,11 +28,11 @@ function c21772453.hspcon(e,c) ...@@ -28,11 +28,11 @@ 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(REASON_SPSUMMON,tp,c21772453.hspfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroupEx(tp,c21772453.hspfilter,1,REASON_SPSUMMON,false,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(REASON_SPSUMMON,tp,c21772453.hspfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroupEx(tp,c21772453.hspfilter,1,1,REASON_SPSUMMON,false,nil,ft,tp)
Duel.Release(g,REASON_SPSUMMON) 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)
......
...@@ -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(REASON_COST,tp,Card.IsType,1,nil,TYPE_SYNCHRO) end if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsType,1,nil,TYPE_SYNCHRO) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsType,1,1,nil,TYPE_SYNCHRO) local g=Duel.SelectReleaseGroup(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(REASON_COST,tp,c21954587.rfilter,1,e:GetHandler()) end if chk==0 then return Duel.CheckReleaseGroup(tp,c21954587.rfilter,1,e:GetHandler()) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c21954587.rfilter,1,1,e:GetHandler()) local g=Duel.SelectReleaseGroup(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(REASON_COST,tp,Card.IsSetCard,1,nil,0x101b) end and Duel.CheckReleaseGroup(tp,Card.IsSetCard,1,nil,0x101b) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsSetCard,1,1,nil,0x101b) local g=Duel.SelectReleaseGroup(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)
......
...@@ -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(REASON_COST,tp,c22431243.cfilter,1,nil,tp) end if chk==0 then return Duel.CheckReleaseGroup(tp,c22431243.cfilter,1,nil,tp) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c22431243.cfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(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(REASON_COST,tp,c22493811.costfilter,1,nil,tp) end if chk==0 then return Duel.CheckReleaseGroup(tp,c22493811.costfilter,1,nil,tp) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c22493811.costfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(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(REASON_COST,tp,c22586618.costfilter,1,nil,tp) end if chk==0 then return Duel.CheckReleaseGroup(tp,c22586618.costfilter,1,nil,tp) end
local sg=Duel.SelectReleaseGroup(REASON_COST,tp,c22586618.costfilter,1,1,nil,tp) local sg=Duel.SelectReleaseGroup(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)
......
...@@ -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(REASON_COST,tp,c22865492.cfilter1,1,nil,tp) end if chk==0 then return Duel.CheckReleaseGroup(tp,c22865492.cfilter1,1,nil,tp) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c22865492.cfilter1,1,1,nil,tp) local g=Duel.SelectReleaseGroup(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(REASON_COST,tp,c23099524.rfilter,1,nil,tp) end if chk==0 then return Duel.CheckReleaseGroup(tp,c23099524.rfilter,1,nil,tp) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c23099524.rfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(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(REASON_COST,tp,c23099524.thcfilter,1,nil,tp) end if chk==0 then return Duel.CheckReleaseGroup(tp,c23099524.thcfilter,1,nil,tp) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c23099524.thcfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(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(REASON_COST,tp,c2311090.cfilter,1,e:GetHandler()) end if chk==0 then return Duel.CheckReleaseGroup(tp,c2311090.cfilter,1,e:GetHandler()) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c2311090.cfilter,1,1,e:GetHandler()) local g=Duel.SelectReleaseGroup(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(REASON_COST,tp,Card.IsAttribute,1,e:GetHandler(),ATTRIBUTE_FIRE) end if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsAttribute,1,e:GetHandler(),ATTRIBUTE_FIRE) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsAttribute,1,1,e:GetHandler(),ATTRIBUTE_FIRE) local g=Duel.SelectReleaseGroup(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(REASON_COST,tp,c23408872.cfilter,1,nil,ft,tp) end if chk==0 then return ft>-1 and Duel.CheckReleaseGroup(tp,c23408872.cfilter,1,nil,ft,tp) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c23408872.cfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(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(REASON_COST,tp,c23440231.cfilter,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(tp,c23440231.cfilter,1,nil) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c23440231.cfilter,1,1,nil) local g=Duel.SelectReleaseGroup(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)
......
...@@ -62,6 +62,6 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) ...@@ -62,6 +62,6 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local sg=g:Select(tp,1,1,nil) local sg=g:Select(tp,1,1,nil)
Duel.BreakEffect() Duel.BreakEffect()
Duel.Destroy(sg,nil,REASON_EFFECT) Duel.Destroy(sg,REASON_EFFECT)
end end
end end
\ No newline at end of file
...@@ -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(REASON_COST,tp,Card.IsAttackAbove,1,c,1) end if chk==0 then return Duel.CheckReleaseGroup(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(REASON_COST,tp,Card.IsAttackAbove,1,1,c,1) local g=Duel.SelectReleaseGroup(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(REASON_COST,tp,Card.IsAttribute,1,nil,ATTRIBUTE_DARK) end if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsAttribute,1,nil,ATTRIBUTE_DARK) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsAttribute,1,1,nil,ATTRIBUTE_DARK) local g=Duel.SelectReleaseGroup(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)
......
...@@ -13,7 +13,7 @@ function s.initial_effect(c) ...@@ -13,7 +13,7 @@ function s.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function s.costfilter(c,tp) function s.costfilter(c,tp)
return c:IsReleasable() and (c:IsControler(tp) or c:IsFaceup()) return c:IsControler(tp) or c:IsFaceup()
end end
function s.gcheck(g,e,tp) function s.gcheck(g,e,tp)
return g:IsExists(Card.IsRace,1,nil,RACE_DINOSAUR) return g:IsExists(Card.IsRace,1,nil,RACE_DINOSAUR)
......
...@@ -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(REASON_COST,tp,c24361622.thcfilter,1,nil,tp) end if chk==0 then return Duel.CheckReleaseGroupEx(tp,c24361622.thcfilter,1,REASON_COST,true,nil,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectReleaseGroupEx(REASON_COST,tp,c24361622.thcfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroupEx(tp,c24361622.thcfilter,1,1,REASON_COST,true,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(REASON_COST,tp,Card.IsRace,1,nil,RACE_REPTILE) end if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsRace,1,nil,RACE_REPTILE) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsRace,1,1,nil,RACE_REPTILE) local g=Duel.SelectReleaseGroup(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(REASON_COST,tp,c24487411.cfilter,1,nil,lg) end if chk==0 then return Duel.CheckReleaseGroup(tp,c24487411.cfilter,1,nil,lg) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c24487411.cfilter,1,1,nil,lg) local g=Duel.SelectReleaseGroup(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(REASON_COST,tp,c24701066.cfilter,1,nil,tp) end if chk==0 then return Duel.CheckReleaseGroup(tp,c24701066.cfilter,1,nil,tp) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c24701066.cfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(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(REASON_COST,tp,c24842059.cfilter,1,nil,tp) end if chk==0 then return Duel.CheckReleaseGroup(tp,c24842059.cfilter,1,nil,tp) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c24842059.cfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(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)
......
...@@ -51,11 +51,12 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,11 +51,12 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoGrave(g,REASON_EFFECT) Duel.SendtoGrave(g,REASON_EFFECT)
end end
end end
function s.cfilter(c,tp,re) function s.cfilter(c,tp)
return re and re:IsActivated() and re:IsActiveType(TYPE_MONSTER) and c:IsSummonPlayer(1-tp) local typ,se,sp=c:GetSpecialSummonInfo(SUMMON_INFO_TYPE,SUMMON_INFO_REASON_EFFECT,SUMMON_INFO_REASON_PLAYER)
return se and typ&TYPE_MONSTER~=0 and se:IsActivated() and sp==1-tp
end end
function s.spcon(e,tp,eg,ep,ev,re,r,rp) function s.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(s.cfilter,1,nil,tp,re) return eg:IsExists(s.cfilter,1,nil,tp)
end end
function s.spfilter(c,e,tp,exc) function s.spfilter(c,e,tp,exc)
local b1=c:IsSetCard(0x145) and c:IsLocation(LOCATION_DECK) local b1=c:IsSetCard(0x145) and c:IsLocation(LOCATION_DECK)
......
...@@ -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(REASON_COST,tp,c25090294.costfilter,1,nil,tp) end if chk==0 then return Duel.CheckReleaseGroup(tp,c25090294.costfilter,1,nil,tp) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c25090294.costfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(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(REASON_COST,tp,nil,1,e:GetHandler()) end if chk==0 then return Duel.CheckReleaseGroup(tp,nil,1,e:GetHandler()) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,nil,1,1,e:GetHandler()) local g=Duel.SelectReleaseGroup(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(REASON_COST,tp,c25435080.cfilter,1,nil,tp) return Duel.CheckReleaseGroup(tp,c25435080.cfilter,1,nil,tp)
end end
local rg=Duel.SelectReleaseGroup(REASON_COST,tp,c25435080.cfilter,1,1,nil,tp) local rg=Duel.SelectReleaseGroup(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,10 +28,10 @@ end ...@@ -28,10 +28,10 @@ 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(REASON_SPSUMMON,tp,c25449584.spfilter,1,nil,tp) return Duel.CheckReleaseGroupEx(tp,c25449584.spfilter,1,REASON_SPSUMMON,false,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(REASON_SPSUMMON,tp,c25449584.spfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroupEx(tp,c25449584.spfilter,1,1,REASON_SPSUMMON,false,nil,tp)
Duel.Release(g,REASON_SPSUMMON) 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()
......
...@@ -38,8 +38,8 @@ function c25629622.initial_effect(c) ...@@ -38,8 +38,8 @@ function c25629622.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
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(tp,Card.IsSetCard,1,nil,0x10ec) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsSetCard,1,1,nil,0x10ec) local g=Duel.SelectReleaseGroup(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)
......
...@@ -15,8 +15,8 @@ function c25643346.initial_effect(c) ...@@ -15,8 +15,8 @@ function c25643346.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
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(tp,aux.TRUE,2,nil) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,aux.TRUE,2,2,nil) local g=Duel.SelectReleaseGroup(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)
......
...@@ -5,7 +5,7 @@ function c2572890.initial_effect(c) ...@@ -5,7 +5,7 @@ function c2572890.initial_effect(c)
e1:SetCategory(CATEGORY_DISABLE_SUMMON+CATEGORY_DESTROY) e1:SetCategory(CATEGORY_DISABLE_SUMMON+CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_SPSUMMON) e1:SetCode(EVENT_SPSUMMON)
e1:SetCondition(c2572890.condition1) e1:SetCondition(aux.NegateSummonCondition)
e1:SetCost(c2572890.cost) e1:SetCost(c2572890.cost)
e1:SetTarget(c2572890.target1) e1:SetTarget(c2572890.target1)
e1:SetOperation(c2572890.activate1) e1:SetOperation(c2572890.activate1)
...@@ -27,13 +27,10 @@ function c2572890.cfilter(c) ...@@ -27,13 +27,10 @@ function c2572890.cfilter(c)
and not c:IsStatus(STATUS_BATTLE_DESTROYED) and not c:IsStatus(STATUS_BATTLE_DESTROYED)
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(tp,c2572890.cfilter,1,nil) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c2572890.cfilter,1,1,nil) local g=Duel.SelectReleaseGroup(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)
return Duel.GetCurrentChain()==0
end
function c2572890.target1(e,tp,eg,ep,ev,re,r,rp,chk) function c2572890.target1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_DISABLE_SUMMON,eg,eg:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_DISABLE_SUMMON,eg,eg:GetCount(),0,0)
......
...@@ -91,8 +91,8 @@ function c25811989.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -91,8 +91,8 @@ function c25811989.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoGrave(sg,REASON_EFFECT) Duel.SendtoGrave(sg,REASON_EFFECT)
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,nil,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(tp,nil,1,nil) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,nil,1,1,nil) local g=Duel.SelectReleaseGroup(tp,nil,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)
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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