Commit 90f7fbba authored by mercury233's avatar mercury233 Committed by GitHub

update CheckReleaseGroupEx and so on (#2346)

parent 24b09993
...@@ -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)
......
...@@ -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
......
...@@ -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)
......
...@@ -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)
......
...@@ -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)
......
...@@ -29,7 +29,7 @@ function c15717011.mfilter(c,tp) ...@@ -29,7 +29,7 @@ function c15717011.mfilter(c,tp)
return c:IsLocation(LOCATION_MZONE) and c:IsCanBeFusionMaterial() and (c:IsControler(tp) or c:IsFaceup()) return c:IsLocation(LOCATION_MZONE) and c:IsCanBeFusionMaterial() and (c:IsControler(tp) or c:IsFaceup())
end end
function c15717011.fcheck(tp,sg,fc) function c15717011.fcheck(tp,sg,fc)
return Duel.CheckReleaseGroup(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) e:SetLabel(1)
......
...@@ -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)
......
...@@ -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)
......
...@@ -32,7 +32,7 @@ function c17197110.spfilter(c,e,tp) ...@@ -32,7 +32,7 @@ function c17197110.spfilter(c,e,tp)
return c:IsSetCard(0x2f) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x2f) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c17197110.fselect(g,tp) function c17197110.fselect(g,tp)
return Duel.GetMZoneCount(tp,g)>=g:GetCount() and Duel.CheckReleaseGroup(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)
......
...@@ -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)
......
...@@ -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)
......
...@@ -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)
......
...@@ -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)
......
...@@ -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)
......
...@@ -27,8 +27,8 @@ function c2572890.cfilter(c) ...@@ -27,8 +27,8 @@ 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.target1(e,tp,eg,ep,ev,re,r,rp,chk) function c2572890.target1(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -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)
......
...@@ -55,7 +55,7 @@ function c25857246.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -55,7 +55,7 @@ function c25857246.atkop(e,tp,eg,ep,ev,re,r,rp)
end end
function c25857246.target(e,tp,eg,ep,ev,re,r,rp,chk) function c25857246.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) if chk==0 then return Duel.IsPlayerCanDraw(tp,1)
and Duel.CheckReleaseGroupEx(REASON_EFFECT,tp,nil,1,nil) end and Duel.CheckReleaseGroupEx(tp,nil,1,REASON_EFFECT,true,nil) end
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
end end
function c25857246.operation(e,tp,eg,ep,ev,re,r,rp) function c25857246.operation(e,tp,eg,ep,ev,re,r,rp)
...@@ -63,7 +63,7 @@ function c25857246.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -63,7 +63,7 @@ function c25857246.operation(e,tp,eg,ep,ev,re,r,rp)
local ct=Duel.GetFieldGroupCount(tp,LOCATION_DECK,0) local ct=Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)
if ct==0 then ct=1 end if ct==0 then ct=1 end
if ct>2 then ct=2 end if ct>2 then ct=2 end
local g=Duel.SelectReleaseGroupEx(REASON_EFFECT,tp,nil,1,ct,nil) local g=Duel.SelectReleaseGroupEx(tp,nil,1,ct,REASON_EFFECT,true,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.HintSelection(g) Duel.HintSelection(g)
local rct=Duel.Release(g,REASON_EFFECT) local rct=Duel.Release(g,REASON_EFFECT)
......
...@@ -103,8 +103,8 @@ function c26034577.rmcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -103,8 +103,8 @@ function c26034577.rmcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp return Duel.GetTurnPlayer()~=tp
end end
function c26034577.rmcost(e,tp,eg,ep,ev,re,r,rp,chk) function c26034577.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,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 c26034577.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c26034577.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -41,10 +41,10 @@ function c26949946.hdcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -41,10 +41,10 @@ function c26949946.hdcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO) return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c26949946.hdcost(e,tp,eg,ep,ev,re,r,rp,chk) function c26949946.hdcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsCode,1,nil,31533705) if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsCode,1,nil,31533705)
and Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)>0 end and Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)>0 end
local ct=Duel.GetFieldGroupCount(tp,0,LOCATION_HAND) local ct=Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)
local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsCode,1,ct,nil,31533705) local g=Duel.SelectReleaseGroup(tp,Card.IsCode,1,ct,nil,31533705)
e:SetLabel(g:GetCount()) e:SetLabel(g:GetCount())
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
......
...@@ -22,8 +22,8 @@ function c27331568.filter(c) ...@@ -22,8 +22,8 @@ function c27331568.filter(c)
return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsRace(RACE_FAIRY) return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsRace(RACE_FAIRY)
end end
function c27331568.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c27331568.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroupEx(REASON_COST,tp,c27331568.cfilter,1,nil,tp) end if chk==0 then return Duel.CheckReleaseGroupEx(tp,c27331568.cfilter,1,REASON_COST,true,nil,tp) end
local g=Duel.SelectReleaseGroupEx(REASON_COST,tp,c27331568.cfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroupEx(tp,c27331568.cfilter,1,1,REASON_COST,true,nil,tp)
e:SetLabel(g:GetFirst():GetLevel()) e:SetLabel(g:GetFirst():GetLevel())
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
......
...@@ -16,8 +16,8 @@ function c27869883.cfilter(c) ...@@ -16,8 +16,8 @@ function c27869883.cfilter(c)
return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_DARK) return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_DARK)
end end
function c27869883.damcost(e,tp,eg,ep,ev,re,r,rp,chk) function c27869883.damcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c27869883.cfilter,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(tp,c27869883.cfilter,1,nil) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c27869883.cfilter,1,1,nil) local g=Duel.SelectReleaseGroup(tp,c27869883.cfilter,1,1,nil)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c27869883.damtg(e,tp,eg,ep,ev,re,r,rp,chk) function c27869883.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -84,12 +84,12 @@ function c27993919.spfilter(c,e,tp,sc) ...@@ -84,12 +84,12 @@ function c27993919.spfilter(c,e,tp,sc)
and math.abs(c:GetCurrentScale()-sc)==2 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and math.abs(c:GetCurrentScale()-sc)==2 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c27993919.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c27993919.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(REASON_EFFECT,tp,c27993919.cfilter,1,nil,e,tp) end if chk==0 then return Duel.CheckReleaseGroupEx(tp,c27993919.cfilter,1,REASON_EFFECT,false,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end end
function c27993919.spop(e,tp,eg,ep,ev,re,r,rp) function c27993919.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectReleaseGroup(REASON_EFFECT,tp,c27993919.cfilter,1,1,nil,e,tp) local g=Duel.SelectReleaseGroupEx(tp,c27993919.cfilter,1,1,REASON_EFFECT,false,nil,e,tp)
if Duel.Release(g,REASON_EFFECT)>0 then if Duel.Release(g,REASON_EFFECT)>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=Duel.SelectMatchingCard(tp,c27993919.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp,g:GetFirst():GetCurrentScale()) local sg=Duel.SelectMatchingCard(tp,c27993919.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp,g:GetFirst():GetCurrentScale())
......
...@@ -11,8 +11,8 @@ function c28062325.initial_effect(c) ...@@ -11,8 +11,8 @@ function c28062325.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c28062325.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c28062325.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsRace,1,nil,RACE_PLANT) end if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsRace,1,nil,RACE_PLANT) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsRace,1,1,nil,RACE_PLANT) local g=Duel.SelectReleaseGroup(tp,Card.IsRace,1,1,nil,RACE_PLANT)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c28062325.target(e,tp,eg,ep,ev,re,r,rp,chk) function c28062325.target(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -45,8 +45,8 @@ function c28388927.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,8 +45,8 @@ function c28388927.thop(e,tp,eg,ep,ev,re,r,rp)
end end
function c28388927.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c28388927.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsRace,1,c,RACE_INSECT) end if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsRace,1,c,RACE_INSECT) end
local rg=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsRace,1,1,c,RACE_INSECT) local rg=Duel.SelectReleaseGroup(tp,Card.IsRace,1,1,c,RACE_INSECT)
Duel.Release(rg,REASON_COST) Duel.Release(rg,REASON_COST)
end end
function c28388927.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c28388927.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -33,8 +33,8 @@ function c28529976.filter(c,lv,e,tp) ...@@ -33,8 +33,8 @@ function c28529976.filter(c,lv,e,tp)
end end
function c28529976.target(e,tp,eg,ep,ev,re,r,rp,chk) function c28529976.target(e,tp,eg,ep,ev,re,r,rp,chk)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if chk==0 then return ft>-1 and Duel.CheckReleaseGroup(REASON_COST,tp,c28529976.cfilter,1,nil,e,tp,ft) end if chk==0 then return ft>-1 and Duel.CheckReleaseGroup(tp,c28529976.cfilter,1,nil,e,tp,ft) end
local rg=Duel.SelectReleaseGroup(REASON_COST,tp,c28529976.cfilter,1,1,nil,e,tp,ft) local rg=Duel.SelectReleaseGroup(tp,c28529976.cfilter,1,1,nil,e,tp,ft)
e:SetLabel(rg:GetFirst():GetLevel()+3) e:SetLabel(rg:GetFirst():GetLevel()+3)
Duel.Release(rg,REASON_COST) Duel.Release(rg,REASON_COST)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK)
......
...@@ -28,9 +28,9 @@ end ...@@ -28,9 +28,9 @@ end
function c28553439.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c28553439.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c28553439.rfilter(chkc,e,tp,ft) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and c28553439.rfilter(chkc,e,tp,ft) end
if chk==0 then return ft>-1 and Duel.CheckReleaseGroup(REASON_EFFECT,tp,c28553439.rfilter,1,nil,e,tp,ft) if chk==0 then return ft>-1 and Duel.CheckReleaseGroupEx(tp,c28553439.rfilter,1,REASON_EFFECT,false,nil,e,tp,ft)
and Duel.IsExistingMatchingCard(c28553439.filter,tp,LOCATION_HAND,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c28553439.filter,tp,LOCATION_HAND,0,1,nil,e,tp) end
local g=Duel.SelectReleaseGroup(REASON_EFFECT,tp,c28553439.rfilter,1,1,nil,e,tp,ft) local g=Duel.SelectReleaseGroupEx(tp,c28553439.rfilter,1,1,REASON_EFFECT,false,nil,e,tp,ft)
Duel.SetTargetCard(g) Duel.SetTargetCard(g)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND)
end end
......
...@@ -17,8 +17,8 @@ function c28565527.cfilter(c) ...@@ -17,8 +17,8 @@ function c28565527.cfilter(c)
return Duel.IsExistingTarget(Card.IsAbleToHand,0,LOCATION_MZONE,LOCATION_MZONE,1,c) return Duel.IsExistingTarget(Card.IsAbleToHand,0,LOCATION_MZONE,LOCATION_MZONE,1,c)
end end
function c28565527.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c28565527.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c28565527.cfilter,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(tp,c28565527.cfilter,1,nil) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c28565527.cfilter,1,1,nil) local g=Duel.SelectReleaseGroup(tp,c28565527.cfilter,1,1,nil)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c28565527.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c28565527.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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