Commit b55a8dc5 authored by Chen Bill's avatar Chen Bill

update sp summon proc with Duel.CheckReleaseGroup

parent 7caf49a7
...@@ -31,11 +31,11 @@ function c10485110.initial_effect(c) ...@@ -31,11 +31,11 @@ function c10485110.initial_effect(c)
end end
function c10485110.spcon(e,c) function c10485110.spcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.CheckReleaseGroup(REASON_COST,c:GetControler(),Card.IsCode,1,nil,37721209) return Duel.CheckReleaseGroup(REASON_SPSUMMON,c:GetControler(),Card.IsCode,1,nil,37721209)
end end
function c10485110.spop(e,tp,eg,ep,ev,re,r,rp,c) function c10485110.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsCode,1,1,nil,37721209) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,Card.IsCode,1,1,nil,37721209)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c10485110.cfilter(c) function c10485110.cfilter(c)
return c:IsFaceup() and c:IsCode(22702055) and c:IsAbleToGraveAsCost() return c:IsFaceup() and c:IsCode(22702055) and c:IsAbleToGraveAsCost()
......
...@@ -59,13 +59,13 @@ end ...@@ -59,13 +59,13 @@ end
function c11443677.sprcon(e,c) function c11443677.sprcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
return Duel.CheckReleaseGroup(REASON_COST,tp,c11443677.sprfilter,1,nil,tp,c) return Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c11443677.sprfilter,1,nil,tp,c)
end end
function c11443677.sprop(e,tp,eg,ep,ev,re,r,rp,c) function c11443677.sprop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c11443677.sprfilter,1,1,nil,tp,c) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c11443677.sprfilter,1,1,nil,tp,c)
c:SetMaterial(g) c:SetMaterial(g)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c11443677.efilter(e,te) function c11443677.efilter(e,te)
return te:IsActiveType(TYPE_TRAP) return te:IsActiveType(TYPE_TRAP)
......
...@@ -40,11 +40,11 @@ function c12510878.initial_effect(c) ...@@ -40,11 +40,11 @@ function c12510878.initial_effect(c)
end end
function c12510878.spcon(e,c) function c12510878.spcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.CheckReleaseGroup(REASON_COST,c:GetControler(),Card.IsCode,1,nil,18036057) return Duel.CheckReleaseGroup(REASON_SPSUMMON,c:GetControler(),Card.IsCode,1,nil,18036057)
end end
function c12510878.spop(e,tp,eg,ep,ev,re,r,rp,c) function c12510878.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectReleaseGroup(REASON_COST,c:GetControler(),Card.IsCode,1,1,nil,18036057) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,c:GetControler(),Card.IsCode,1,1,nil,18036057)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c12510878.condition(e,tp,eg,ep,ev,re,r,rp) function c12510878.condition(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp return ep~=tp
......
...@@ -54,11 +54,11 @@ end ...@@ -54,11 +54,11 @@ end
function c13224603.hspcon(e,c) function c13224603.hspcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
return Duel.CheckReleaseGroup(REASON_COST,tp,c13224603.hspfilter,1,nil,tp) return Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c13224603.hspfilter,1,nil,tp)
end end
function c13224603.hspop(e,tp,eg,ep,ev,re,r,rp,c) function c13224603.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c13224603.hspfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c13224603.hspfilter,1,1,nil,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c13224603.sumcon(e,tp,eg,ep,ev,re,r,rp) function c13224603.sumcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetFlagEffect(13224603)>0 return e:GetHandler():GetFlagEffect(13224603)>0
......
...@@ -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_COST,c:GetControler(),c14141448.rfilter,1,nil) and Duel.CheckReleaseGroup(REASON_SPSUMMON,c:GetControler(),c14141448.rfilter,1,nil)
end end
function c14141448.spop(e,tp,eg,ep,ev,re,r,rp,c) function c14141448.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectReleaseGroup(REASON_COST,c:GetControler(),c14141448.rfilter,1,1,nil) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,c:GetControler(),c14141448.rfilter,1,1,nil)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
...@@ -58,12 +58,12 @@ function c15180041.spcon(e,c) ...@@ -58,12 +58,12 @@ function c15180041.spcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return ft>-1 and Duel.CheckReleaseGroup(REASON_COST,tp,c15180041.spfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c15180041.spfilter,1,nil,ft,tp)
end end
function c15180041.spop(e,tp,eg,ep,ev,re,r,rp,c) function c15180041.spop(e,tp,eg,ep,ev,re,r,rp,c)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c15180041.spfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c15180041.spfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c15180041.atkop(e,tp,eg,ep,ev,re,r,rp) function c15180041.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -50,12 +50,12 @@ function c15291624.spcon(e,c) ...@@ -50,12 +50,12 @@ 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_COST,tp,c15291624.spfilter,1,nil,c,tp) and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c15291624.spfilter,1,nil,c,tp)
end end
function c15291624.spop(e,tp,eg,ep,ev,re,r,rp,c) function c15291624.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c15291624.spfilter,1,1,nil,c,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c15291624.spfilter,1,1,nil,c,tp)
c:SetMaterial(g) c:SetMaterial(g)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c15291624.repfilter(c) function c15291624.repfilter(c)
return c:IsRace(RACE_THUNDER) and c:IsAbleToRemove() return c:IsRace(RACE_THUNDER) and c:IsAbleToRemove()
......
...@@ -39,12 +39,12 @@ function c16024176.hspcon(e,c) ...@@ -39,12 +39,12 @@ function c16024176.hspcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return ft>-1 and Duel.CheckReleaseGroup(REASON_COST,tp,c16024176.hspfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c16024176.hspfilter,1,nil,ft,tp)
end end
function c16024176.hspop(e,tp,eg,ep,ev,re,r,rp,c) function c16024176.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c16024176.hspfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c16024176.hspfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c16024176.target(e,tp,eg,ep,ev,re,r,rp,chk) function c16024176.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -38,12 +38,12 @@ function c16802689.hspcon(e,c) ...@@ -38,12 +38,12 @@ function c16802689.hspcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return ft>-1 and Duel.CheckReleaseGroup(REASON_COST,tp,c16802689.hspfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c16802689.hspfilter,1,nil,ft,tp)
end end
function c16802689.hspop(e,tp,eg,ep,ev,re,r,rp,c) function c16802689.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c16802689.hspfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c16802689.hspfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c16802689.target(e,tp,eg,ep,ev,re,r,rp,chk) function c16802689.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -48,12 +48,12 @@ function c17286057.hspcon(e,c) ...@@ -48,12 +48,12 @@ function c17286057.hspcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return ft>-1 and Duel.CheckReleaseGroup(REASON_COST,tp,c17286057.hspfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c17286057.hspfilter,1,nil,ft,tp)
end end
function c17286057.hspop(e,tp,eg,ep,ev,re,r,rp,c) function c17286057.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c17286057.hspfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c17286057.hspfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c17286057.filter(c) function c17286057.filter(c)
return c:IsFaceup() and c:IsType(TYPE_MONSTER) return c:IsFaceup() and c:IsType(TYPE_MONSTER)
......
...@@ -33,11 +33,11 @@ function c18378582.rfilter(c,code) ...@@ -33,11 +33,11 @@ function c18378582.rfilter(c,code)
end end
function c18378582.spcon(e,c) function c18378582.spcon(e,c)
if c==nil then return Duel.IsEnvironment(56433456) end if c==nil then return Duel.IsEnvironment(56433456) end
return Duel.CheckReleaseGroup(REASON_COST,c:GetControler(),c18378582.rfilter,1,nil,66073051) return Duel.CheckReleaseGroup(REASON_SPSUMMON,c:GetControler(),c18378582.rfilter,1,nil,66073051)
end end
function c18378582.spop(e,tp,eg,ep,ev,re,r,rp,c) function c18378582.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c18378582.rfilter,1,1,nil,66073051) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c18378582.rfilter,1,1,nil,66073051)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c18378582.cfilter(c) function c18378582.cfilter(c)
return c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsDiscardable() and c:IsAbleToGraveAsCost() return c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsDiscardable() and c:IsAbleToGraveAsCost()
......
...@@ -29,12 +29,12 @@ function c18828179.spcon(e,c) ...@@ -29,12 +29,12 @@ function c18828179.spcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return ft>-1 and Duel.CheckReleaseGroup(REASON_COST,tp,c18828179.rfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c18828179.rfilter,1,nil,ft,tp)
end end
function c18828179.spop(e,tp,eg,ep,ev,re,r,rp,c) function c18828179.spop(e,tp,eg,ep,ev,re,r,rp,c)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c18828179.rfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c18828179.rfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c18828179.cfilter(c) function c18828179.cfilter(c)
return c:IsAttribute(ATTRIBUTE_WATER) and c:IsDiscardable() and c:IsAbleToGraveAsCost() return c:IsAttribute(ATTRIBUTE_WATER) and c:IsDiscardable() and c:IsAbleToGraveAsCost()
......
...@@ -30,12 +30,12 @@ function c20403123.hspcon(e,c) ...@@ -30,12 +30,12 @@ function c20403123.hspcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return ft>-1 and Duel.CheckReleaseGroup(REASON_COST,tp,c20403123.hspfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c20403123.hspfilter,1,nil,ft,tp)
end end
function c20403123.hspop(e,tp,eg,ep,ev,re,r,rp,c) function c20403123.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c20403123.hspfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c20403123.hspfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c20403123.descost(e,tp,eg,ep,ev,re,r,rp,chk) function c20403123.descost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end
......
...@@ -74,12 +74,12 @@ function c21686473.hspcon(e,c) ...@@ -74,12 +74,12 @@ function c21686473.hspcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return ft>-1 and Duel.CheckReleaseGroup(REASON_COST,tp,c21686473.hspfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c21686473.hspfilter,1,nil,ft,tp)
end end
function c21686473.hspop(e,tp,eg,ep,ev,re,r,rp,c) function c21686473.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c21686473.hspfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c21686473.hspfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c21686473.atkcon(e,tp,eg,ep,ev,re,r,rp) function c21686473.atkcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -28,12 +28,12 @@ function c21772453.hspcon(e,c) ...@@ -28,12 +28,12 @@ function c21772453.hspcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return ft>-1 and Duel.CheckReleaseGroup(REASON_COST,tp,c21772453.hspfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c21772453.hspfilter,1,nil,ft,tp)
end end
function c21772453.hspop(e,tp,eg,ep,ev,re,r,rp,c) function c21772453.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c21772453.hspfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c21772453.hspfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c21772453.target(e,tp,eg,ep,ev,re,r,rp,chk) function c21772453.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -28,11 +28,11 @@ end ...@@ -28,11 +28,11 @@ end
function c25449584.spcon(e,c) function c25449584.spcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
return Duel.CheckReleaseGroup(REASON_COST,tp,c25449584.spfilter,1,nil,tp) return Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c25449584.spfilter,1,nil,tp)
end end
function c25449584.spop(e,tp,eg,ep,ev,re,r,rp,c) function c25449584.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c25449584.spfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c25449584.spfilter,1,1,nil,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
c:RegisterFlagEffect(0,RESET_EVENT+0x4fc0000,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(25449584,1)) c:RegisterFlagEffect(0,RESET_EVENT+0x4fc0000,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(25449584,1))
local atk=g:GetFirst():GetBaseAttack() local atk=g:GetFirst():GetBaseAttack()
if atk<0 then return end if atk<0 then return end
......
...@@ -43,12 +43,12 @@ function c29436665.spcon(e,c) ...@@ -43,12 +43,12 @@ function c29436665.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_COST,tp,c29436665.rfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c29436665.rfilter,1,nil,ft,tp)
end end
function c29436665.spop(e,tp,eg,ep,ev,re,r,rp,c) function c29436665.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_COST,tp,c29436665.rfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c29436665.rfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c29436665.dmgcon(e,tp,eg,ep,ev,re,r,rp) function c29436665.dmgcon(e,tp,eg,ep,ev,re,r,rp)
return re:GetActiveType()==TYPE_SPELL and re:IsHasType(EFFECT_TYPE_ACTIVATE) and e:GetHandler():GetFlagEffect(FLAG_ID_CHAINING)>0 return re:GetActiveType()==TYPE_SPELL and re:IsHasType(EFFECT_TYPE_ACTIVATE) and e:GetHandler():GetFlagEffect(FLAG_ID_CHAINING)>0
......
...@@ -44,12 +44,12 @@ function c2948263.spcon(e,c) ...@@ -44,12 +44,12 @@ function c2948263.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_COST,tp,c2948263.spfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c2948263.spfilter,1,nil,ft,tp)
end end
function c2948263.spop(e,tp,eg,ep,ev,re,r,rp,c) function c2948263.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_COST,tp,c2948263.spfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c2948263.spfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
local atk=g:GetFirst():GetBaseAttack() local atk=g:GetFirst():GetBaseAttack()
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
...@@ -40,11 +40,11 @@ end ...@@ -40,11 +40,11 @@ end
function c29719112.hspcon(e,c) function c29719112.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_COST,tp,c29719112.spfilter,1,nil,tp) return Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c29719112.spfilter,1,nil,tp)
end end
function c29719112.hspop(e,tp,eg,ep,ev,re,r,rp,c) function c29719112.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c29719112.spfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c29719112.spfilter,1,1,nil,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c29719112.spfilter1(c,e) function c29719112.spfilter1(c,e)
return not c:IsImmuneToEffect(e) return not c:IsImmuneToEffect(e)
......
...@@ -39,12 +39,12 @@ function c31516413.hspcon(e,c) ...@@ -39,12 +39,12 @@ function c31516413.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_COST,tp,c31516413.hspfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c31516413.hspfilter,1,nil,ft,tp)
end end
function c31516413.hspop(e,tp,eg,ep,ev,re,r,rp,c) function c31516413.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_COST,tp,c31516413.hspfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c31516413.hspfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
c:RegisterFlagEffect(0,RESET_EVENT+0x4fc0000,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(31516413,2)) c:RegisterFlagEffect(0,RESET_EVENT+0x4fc0000,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(31516413,2))
end end
function c31516413.descost(e,tp,eg,ep,ev,re,r,rp,chk) function c31516413.descost(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -44,12 +44,12 @@ end ...@@ -44,12 +44,12 @@ end
function s.spcon(e,c) function s.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_COST,tp,s.cfilter,1,nil,tp) return Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,s.cfilter,1,nil,tp)
end end
function s.spop(e,tp,eg,ep,ev,re,r,rp,c) function s.spop(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_COST,tp,s.cfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,s.cfilter,1,1,nil,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -39,12 +39,12 @@ function c3300267.hspcon(e,c) ...@@ -39,12 +39,12 @@ function c3300267.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_COST,tp,c3300267.hspfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c3300267.hspfilter,1,nil,ft,tp)
end end
function c3300267.hspop(e,tp,eg,ep,ev,re,r,rp,c) function c3300267.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_COST,tp,c3300267.hspfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c3300267.hspfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
c:RegisterFlagEffect(0,RESET_EVENT+0x4fc0000,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(3300267,2)) c:RegisterFlagEffect(0,RESET_EVENT+0x4fc0000,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(3300267,2))
end end
function c3300267.descost(e,tp,eg,ep,ev,re,r,rp,chk) function c3300267.descost(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -47,12 +47,12 @@ function c37440988.hspfilter(c,tp,sc) ...@@ -47,12 +47,12 @@ function c37440988.hspfilter(c,tp,sc)
end end
function c37440988.hspcon(e,c) function c37440988.hspcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.CheckReleaseGroup(REASON_COST,c:GetControler(),c37440988.hspfilter,1,nil,c:GetControler(),c) return Duel.CheckReleaseGroup(REASON_SPSUMMON,c:GetControler(),c37440988.hspfilter,1,nil,c:GetControler(),c)
end end
function c37440988.hspop(e,tp,eg,ep,ev,re,r,rp,c) function c37440988.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c37440988.hspfilter,1,1,nil,tp,c) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c37440988.hspfilter,1,1,nil,tp,c)
c:SetMaterial(g) c:SetMaterial(g)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c37440988.cfilter(c) function c37440988.cfilter(c)
return c:IsSetCard(0x1034) and c:GetAttack()>0 and c:IsAbleToRemoveAsCost() return c:IsSetCard(0x1034) and c:GetAttack()>0 and c:IsAbleToRemoveAsCost()
......
...@@ -53,12 +53,12 @@ function c37542782.hspfilter(c,tp,sc) ...@@ -53,12 +53,12 @@ function c37542782.hspfilter(c,tp,sc)
end end
function c37542782.hspcon(e,c) function c37542782.hspcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.CheckReleaseGroup(REASON_COST,c:GetControler(),c37542782.hspfilter,1,nil,c:GetControler(),c) return Duel.CheckReleaseGroup(REASON_SPSUMMON,c:GetControler(),c37542782.hspfilter,1,nil,c:GetControler(),c)
end end
function c37542782.hspop(e,tp,eg,ep,ev,re,r,rp,c) function c37542782.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c37542782.hspfilter,1,1,nil,tp,c) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c37542782.hspfilter,1,1,nil,tp,c)
c:SetMaterial(g) c:SetMaterial(g)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c37542782.efilter(e,re) function c37542782.efilter(e,re)
return e:GetHandlerPlayer()~=re:GetOwnerPlayer() and re:IsActivated() return e:GetHandlerPlayer()~=re:GetOwnerPlayer() and re:IsActivated()
......
...@@ -57,12 +57,12 @@ function c41175645.spcon(e,c) ...@@ -57,12 +57,12 @@ function c41175645.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_COST,tp,c41175645.spfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c41175645.spfilter,1,nil,ft,tp)
end end
function c41175645.spop(e,tp,eg,ep,ev,re,r,rp,c) function c41175645.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_COST,tp,c41175645.spfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c41175645.spfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c41175645.value(e,c) function c41175645.value(e,c)
return Duel.GetFieldGroupCount(c:GetControler(),LOCATION_HAND,0)*500 return Duel.GetFieldGroupCount(c:GetControler(),LOCATION_HAND,0)*500
......
...@@ -94,12 +94,12 @@ function c42166000.hspfilter(c,tp,sc) ...@@ -94,12 +94,12 @@ function c42166000.hspfilter(c,tp,sc)
end end
function c42166000.hspcon(e,c) function c42166000.hspcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.CheckReleaseGroup(REASON_COST,c:GetControler(),c42166000.hspfilter,1,nil,c:GetControler(),c) return Duel.CheckReleaseGroup(REASON_SPSUMMON,c:GetControler(),c42166000.hspfilter,1,nil,c:GetControler(),c)
end end
function c42166000.hspop(e,tp,eg,ep,ev,re,r,rp,c) function c42166000.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c42166000.hspfilter,1,1,nil,tp,c) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c42166000.hspfilter,1,1,nil,tp,c)
c:SetMaterial(g) c:SetMaterial(g)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c42166000.ttfilter(c,tp) function c42166000.ttfilter(c,tp)
return c:IsHasEffect(42166000) and c:IsReleasable() and Duel.GetMZoneCount(tp,c)>0 return c:IsHasEffect(42166000) and c:IsReleasable() and Duel.GetMZoneCount(tp,c)>0
......
...@@ -27,7 +27,7 @@ function c42600274.hspcon(e,c) ...@@ -27,7 +27,7 @@ function c42600274.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 ct=0 local ct=0
if Duel.CheckReleaseGroup(REASON_COST,tp,c42600274.hspfilter,1,nil,tp) then ct=ct-1 end if Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c42600274.hspfilter,1,nil,tp) then ct=ct-1 end
return Duel.GetLocationCount(tp,LOCATION_MZONE)>ct return Duel.GetLocationCount(tp,LOCATION_MZONE)>ct
and Duel.CheckReleaseGroupEx(tp,Card.IsRace,1,e:GetHandler(),RACE_WARRIOR+RACE_FAIRY) and Duel.CheckReleaseGroupEx(tp,Card.IsRace,1,e:GetHandler(),RACE_WARRIOR+RACE_FAIRY)
end end
...@@ -37,9 +37,9 @@ function c42600274.hspop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -37,9 +37,9 @@ function c42600274.hspop(e,tp,eg,ep,ev,re,r,rp,c)
if ft>0 then if ft>0 then
g=Duel.SelectReleaseGroupEx(tp,Card.IsRace,1,1,e:GetHandler(),RACE_WARRIOR+RACE_FAIRY) g=Duel.SelectReleaseGroupEx(tp,Card.IsRace,1,1,e:GetHandler(),RACE_WARRIOR+RACE_FAIRY)
else else
g=Duel.SelectReleaseGroup(REASON_COST,tp,c42600274.hspfilter,1,1,nil,tp) g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c42600274.hspfilter,1,1,nil,tp)
end end
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
c:RegisterFlagEffect(0,RESET_EVENT+0x4fc0000,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(42600274,0)) c:RegisterFlagEffect(0,RESET_EVENT+0x4fc0000,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(42600274,0))
end end
function c42600274.thcon(e,tp,eg,ep,ev,re,r,rp) function c42600274.thcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -38,12 +38,12 @@ function c43413875.hspcon(e,c) ...@@ -38,12 +38,12 @@ function c43413875.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_COST,tp,c43413875.hspfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c43413875.hspfilter,1,nil,ft,tp)
end end
function c43413875.hspop(e,tp,eg,ep,ev,re,r,rp,c) function c43413875.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_COST,tp,c43413875.hspfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c43413875.hspfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c43413875.target(e,tp,eg,ep,ev,re,r,rp,chk) function c43413875.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -54,11 +54,11 @@ function c44968687.initial_effect(c) ...@@ -54,11 +54,11 @@ function c44968687.initial_effect(c)
end end
function c44968687.spcon(e,c) function c44968687.spcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.CheckReleaseGroup(REASON_COST,c:GetControler(),Card.IsCode,1,nil,3643300) return Duel.CheckReleaseGroup(REASON_SPSUMMON,c:GetControler(),Card.IsCode,1,nil,3643300)
end end
function c44968687.spop(e,tp,eg,ep,ev,re,r,rp,c) function c44968687.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsCode,1,1,nil,3643300) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,Card.IsCode,1,1,nil,3643300)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c44968687.rmtg(e,tp,eg,ep,ev,re,r,rp,chk) function c44968687.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_MZONE,1,nil) end
......
...@@ -22,10 +22,10 @@ function c48579379.spcon(e,c) ...@@ -22,10 +22,10 @@ function c48579379.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_COST,tp,c48579379.rfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c48579379.rfilter,1,nil,ft,tp)
end end
function c48579379.spop(e,tp,eg,ep,ev,re,r,rp,c) function c48579379.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_COST,tp,c48579379.rfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c48579379.rfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
...@@ -31,10 +31,10 @@ function c49814180.spcon(e,c) ...@@ -31,10 +31,10 @@ function c49814180.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_COST,tp,c49814180.spfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c49814180.spfilter,1,nil,ft,tp)
end end
function c49814180.spop(e,tp,eg,ep,ev,re,r,rp,c) function c49814180.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_COST,tp,c49814180.spfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c49814180.spfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
...@@ -18,10 +18,10 @@ function c50705071.spcon(e,c) ...@@ -18,10 +18,10 @@ function c50705071.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.GetLocationCount(tp,LOCATION_MZONE)>-1 return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1
and Duel.CheckReleaseGroup(REASON_COST,tp,c50705071.spfilter,1,nil) and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c50705071.spfilter,1,nil)
end end
function c50705071.spop(e,tp,eg,ep,ev,re,r,rp,c) function c50705071.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c50705071.spfilter,1,1,nil) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c50705071.spfilter,1,1,nil)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
end end
...@@ -40,11 +40,11 @@ function c53347303.initial_effect(c) ...@@ -40,11 +40,11 @@ function c53347303.initial_effect(c)
end end
function c53347303.spcon(e,c) function c53347303.spcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.CheckReleaseGroup(REASON_COST,c:GetControler(),Card.IsCode,1,nil,23995346) return Duel.CheckReleaseGroup(REASON_SPSUMMON,c:GetControler(),Card.IsCode,1,nil,23995346)
end end
function c53347303.spop(e,tp,eg,ep,ev,re,r,rp,c) function c53347303.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectReleaseGroup(REASON_COST,c:GetControler(),Card.IsCode,1,1,nil,23995346) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,c:GetControler(),Card.IsCode,1,1,nil,23995346)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c53347303.val(e,c) function c53347303.val(e,c)
return Duel.GetMatchingGroupCount(Card.IsRace,c:GetControler(),LOCATION_GRAVE,0,nil,RACE_DRAGON)*300 return Duel.GetMatchingGroupCount(Card.IsRace,c:GetControler(),LOCATION_GRAVE,0,nil,RACE_DRAGON)*300
......
...@@ -37,12 +37,12 @@ function c55204071.spcon(e,c) ...@@ -37,12 +37,12 @@ function c55204071.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_COST,tp,c55204071.cfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c55204071.cfilter,1,nil,ft,tp)
end end
function c55204071.spop(e,tp,eg,ep,ev,re,r,rp,c) function c55204071.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_COST,tp,c55204071.cfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c55204071.cfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c55204071.spcon2(e,tp,eg,ep,ev,re,r,rp) function c55204071.spcon2(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+SUMMON_VALUE_SELF return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+SUMMON_VALUE_SELF
......
...@@ -37,12 +37,12 @@ function c55737443.spcon(e,c) ...@@ -37,12 +37,12 @@ function c55737443.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_COST,tp,c55737443.spfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c55737443.spfilter,1,nil,ft,tp)
end end
function c55737443.spop(e,tp,eg,ep,ev,re,r,rp,c) function c55737443.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_COST,tp,c55737443.spfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c55737443.spfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c55737443.damcon(e,tp,eg,ep,ev,re,r,rp) function c55737443.damcon(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=eg:GetFirst()
......
...@@ -42,12 +42,12 @@ function c57261568.hspcon(e,c) ...@@ -42,12 +42,12 @@ function c57261568.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_COST,tp,c57261568.hspfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c57261568.hspfilter,1,nil,ft,tp)
end end
function c57261568.hspop(e,tp,eg,ep,ev,re,r,rp,c) function c57261568.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_COST,tp,c57261568.hspfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c57261568.hspfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c57261568.target(e,tp,eg,ep,ev,re,r,rp,chk) function c57261568.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -69,12 +69,12 @@ function c58604027.spcon(e,c) ...@@ -69,12 +69,12 @@ function c58604027.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_COST,tp,c58604027.spfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c58604027.spfilter,1,nil,ft,tp)
end end
function c58604027.spop(e,tp,eg,ep,ev,re,r,rp,c) function c58604027.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_COST,tp,c58604027.spfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c58604027.spfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c58604027.efilter(e,te) function c58604027.efilter(e,te)
return te:GetOwner()~=e:GetOwner() return te:GetOwner()~=e:GetOwner()
......
...@@ -38,12 +38,12 @@ function c59464593.spcon(e,c) ...@@ -38,12 +38,12 @@ function c59464593.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_COST,tp,c59464593.spfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c59464593.spfilter,1,nil,ft,tp)
end end
function c59464593.spop(e,tp,eg,ep,ev,re,r,rp,c) function c59464593.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_COST,tp,c59464593.spfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c59464593.spfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c59464593.dfilter(c) function c59464593.dfilter(c)
return c:IsFaceup() return c:IsFaceup()
......
...@@ -31,11 +31,11 @@ function c6133894.rfilter(c,code) ...@@ -31,11 +31,11 @@ function c6133894.rfilter(c,code)
end end
function c6133894.spcon(e,c) function c6133894.spcon(e,c)
if c==nil then return Duel.IsEnvironment(94585852) end if c==nil then return Duel.IsEnvironment(94585852) end
return Duel.CheckReleaseGroup(REASON_COST,c:GetControler(),c6133894.rfilter,1,nil,66073051) return Duel.CheckReleaseGroup(REASON_SPSUMMON,c:GetControler(),c6133894.rfilter,1,nil,66073051)
end end
function c6133894.spop(e,tp,eg,ep,ev,re,r,rp,c) function c6133894.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c6133894.rfilter,1,1,nil,66073051) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c6133894.rfilter,1,1,nil,66073051)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c6133894.hdtg(e,tp,eg,ep,ev,re,r,rp,chk) function c6133894.hdtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -78,12 +78,12 @@ function c6218704.hspfilter(c,tp,sc) ...@@ -78,12 +78,12 @@ function c6218704.hspfilter(c,tp,sc)
end end
function c6218704.hspcon(e,c) function c6218704.hspcon(e,c)
if c==nil then return true end if c==nil then return true end
return c:IsFacedown() and Duel.CheckReleaseGroup(REASON_COST,c:GetControler(),c6218704.hspfilter,1,nil,c:GetControler(),c) return c:IsFacedown() and Duel.CheckReleaseGroup(REASON_SPSUMMON,c:GetControler(),c6218704.hspfilter,1,nil,c:GetControler(),c)
end end
function c6218704.hspop(e,tp,eg,ep,ev,re,r,rp,c) function c6218704.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c6218704.hspfilter,1,1,nil,tp,c) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c6218704.hspfilter,1,1,nil,tp,c)
c:SetMaterial(g) c:SetMaterial(g)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c6218704.pcon(e,tp,eg,ep,ev,re,r,rp) function c6218704.pcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,LOCATION_PZONE,0)>=2 return Duel.GetFieldGroupCount(tp,LOCATION_PZONE,0)>=2
......
...@@ -54,7 +54,7 @@ end ...@@ -54,7 +54,7 @@ end
function c63014935.spop(e,tp,eg,ep,ev,re,r,rp,c) function c63014935.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectMatchingCard(tp,c63014935.spfilter,tp,0,LOCATION_MZONE,1,1,nil,tp) local g=Duel.SelectMatchingCard(tp,c63014935.spfilter,tp,0,LOCATION_MZONE,1,1,nil,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c63014935.damcost(e,tp,eg,ep,ev,re,r,rp,chk) function c63014935.damcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToGraveAsCost,tp,LOCATION_ONFIELD,0,1,e:GetHandler()) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToGraveAsCost,tp,LOCATION_ONFIELD,0,1,e:GetHandler()) end
...@@ -76,8 +76,8 @@ function c63014935.phcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -76,8 +76,8 @@ function c63014935.phcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp return Duel.GetTurnPlayer()==tp
end end
function c63014935.phop(e,tp,eg,ep,ev,re,r,rp) function c63014935.phop(e,tp,eg,ep,ev,re,r,rp)
if Duel.CheckReleaseGroup(REASON_COST,tp,aux.TRUE,1,e:GetHandler()) and Duel.SelectYesNo(tp,aux.Stringid(63014935,2)) then if Duel.CheckReleaseGroup(REASON_EFFECT,tp,aux.TRUE,1,e:GetHandler()) and Duel.SelectYesNo(tp,aux.Stringid(63014935,2)) then
Duel.Release(Duel.SelectReleaseGroup(REASON_COST,tp,aux.TRUE,1,1,e:GetHandler()),REASON_EFFECT) Duel.Release(Duel.SelectReleaseGroup(REASON_EFFECT,tp,aux.TRUE,1,1,e:GetHandler()),REASON_EFFECT)
else Duel.Damage(tp,1000,REASON_EFFECT) end else Duel.Damage(tp,1000,REASON_EFFECT) end
end end
function c63014935.spcost(e,c,tp) function c63014935.spcost(e,c,tp)
......
...@@ -18,10 +18,10 @@ function c64335804.spcon(e,c) ...@@ -18,10 +18,10 @@ function c64335804.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.GetLocationCount(tp,LOCATION_MZONE)>-1 return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1
and Duel.CheckReleaseGroup(REASON_COST,tp,c64335804.spfilter,1,nil) and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c64335804.spfilter,1,nil)
end end
function c64335804.spop(e,tp,eg,ep,ev,re,r,rp,c) function c64335804.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c64335804.spfilter,1,1,nil) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c64335804.spfilter,1,1,nil)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
end end
...@@ -47,10 +47,10 @@ function c64382839.hspcon(e,c) ...@@ -47,10 +47,10 @@ function c64382839.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_COST,tp,c64382839.spfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c64382839.spfilter,1,nil,ft,tp)
end end
function c64382839.hspop(e,tp,eg,ep,ev,re,r,rp,c) function c64382839.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_COST,tp,c64382839.spfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c64382839.spfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
...@@ -54,12 +54,12 @@ function c67547370.spcon(e,c) ...@@ -54,12 +54,12 @@ function c67547370.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_COST,tp,c67547370.cfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c67547370.cfilter,1,nil,ft,tp)
end end
function c67547370.spop(e,tp,eg,ep,ev,re,r,rp,c) function c67547370.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_COST,tp,c67547370.cfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c67547370.cfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c67547370.countcost(e,tp,eg,ep,ev,re,r,rp,chk) function c67547370.countcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not e:GetHandler():IsPublic() end if chk==0 then return not e:GetHandler():IsPublic() end
......
...@@ -27,12 +27,12 @@ function c70456282.spcon(e,c) ...@@ -27,12 +27,12 @@ function c70456282.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_COST,tp,c70456282.spfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c70456282.spfilter,1,nil,ft,tp)
end end
function c70456282.spop(e,tp,eg,ep,ev,re,r,rp,c) function c70456282.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_COST,tp,c70456282.spfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c70456282.spfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_ADD_TYPE) e1:SetCode(EFFECT_ADD_TYPE)
......
...@@ -18,10 +18,10 @@ function c71923655.spcon(e,c) ...@@ -18,10 +18,10 @@ function c71923655.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_COST,tp,c71923655.spfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c71923655.spfilter,1,nil,ft,tp)
end end
function c71923655.spop(e,tp,eg,ep,ev,re,r,rp,c) function c71923655.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_COST,tp,c71923655.spfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c71923655.spfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
...@@ -54,12 +54,12 @@ function c76075139.hspfilter(c,tp,sc) ...@@ -54,12 +54,12 @@ function c76075139.hspfilter(c,tp,sc)
end end
function c76075139.hspcon(e,c) function c76075139.hspcon(e,c)
if c==nil then return true end if c==nil then return true end
return c:IsFacedown() and Duel.CheckReleaseGroup(REASON_COST,c:GetControler(),c76075139.hspfilter,1,nil,c:GetControler(),c) return c:IsFacedown() and Duel.CheckReleaseGroup(REASON_SPSUMMON,c:GetControler(),c76075139.hspfilter,1,nil,c:GetControler(),c)
end end
function c76075139.hspop(e,tp,eg,ep,ev,re,r,rp,c) function c76075139.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c76075139.hspfilter,1,1,nil,tp,c) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c76075139.hspfilter,1,1,nil,tp,c)
c:SetMaterial(g) c:SetMaterial(g)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c76075139.pfilter(c) function c76075139.pfilter(c)
local seq=c:GetSequence() local seq=c:GetSequence()
......
...@@ -41,12 +41,12 @@ function c80887952.hspcon(e,c) ...@@ -41,12 +41,12 @@ function c80887952.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_COST,tp,c80887952.hspfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c80887952.hspfilter,1,nil,ft,tp)
end end
function c80887952.hspop(e,tp,eg,ep,ev,re,r,rp,c) function c80887952.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_COST,tp,c80887952.hspfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c80887952.hspfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c80887952.filter(c) function c80887952.filter(c)
return c:IsFaceup() and c:IsType(TYPE_MONSTER) return c:IsFaceup() and c:IsType(TYPE_MONSTER)
......
...@@ -32,10 +32,10 @@ function c81434470.spcon(e,c) ...@@ -32,10 +32,10 @@ function c81434470.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_COST,tp,c81434470.spfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c81434470.spfilter,1,nil,ft,tp)
end end
function c81434470.spop(e,tp,eg,ep,ev,re,r,rp,c) function c81434470.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_COST,tp,c81434470.spfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c81434470.spfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
...@@ -22,10 +22,10 @@ function c87756343.spcon(e,c) ...@@ -22,10 +22,10 @@ function c87756343.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_COST,tp,c87756343.rfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c87756343.rfilter,1,nil,ft,tp)
end end
function c87756343.spop(e,tp,eg,ep,ev,re,r,rp,c) function c87756343.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_COST,tp,c87756343.rfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c87756343.rfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
...@@ -56,12 +56,12 @@ end ...@@ -56,12 +56,12 @@ end
function s.hspcon(e,c) function s.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_COST,tp,s.hspfilter,1,nil,tp,c) return Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,s.hspfilter,1,nil,tp,c)
end end
function s.hspop(e,tp,eg,ep,ev,re,r,rp,c) function s.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectReleaseGroup(REASON_COST,tp,s.hspfilter,1,1,nil,tp,c) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,s.hspfilter,1,1,nil,tp,c)
c:SetMaterial(g) c:SetMaterial(g)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function s.descon(e,tp,eg,ep,ev,re,r,rp) function s.descon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE return Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE
......
...@@ -18,12 +18,12 @@ function c88559132.spcon(e,c) ...@@ -18,12 +18,12 @@ function c88559132.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_COST,tp,c88559132.spfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c88559132.spfilter,1,nil,ft,tp)
end end
function c88559132.spop(e,tp,eg,ep,ev,re,r,rp,c) function c88559132.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_COST,tp,c88559132.spfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c88559132.spfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
local atk=g:GetFirst():GetBaseAttack() local atk=g:GetFirst():GetBaseAttack()
if atk<0 then return end if atk<0 then return end
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
...@@ -42,12 +42,12 @@ function c89818984.hspcon(e,c) ...@@ -42,12 +42,12 @@ function c89818984.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_COST,tp,c89818984.hspfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c89818984.hspfilter,1,nil,ft,tp)
end end
function c89818984.hspop(e,tp,eg,ep,ev,re,r,rp,c) function c89818984.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_COST,tp,c89818984.hspfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c89818984.hspfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c89818984.target(e,tp,eg,ep,ev,re,r,rp,chk) function c89818984.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -62,12 +62,12 @@ function c90960358.spcon(e,c) ...@@ -62,12 +62,12 @@ function c90960358.spcon(e,c)
local tp=c:GetControler() local tp=c:GetControler()
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return Duel.IsExistingMatchingCard(c90960358.cfilter,tp,LOCATION_ONFIELD,0,1,nil) return Duel.IsExistingMatchingCard(c90960358.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
and ft>-1 and Duel.CheckReleaseGroup(REASON_COST,tp,c90960358.spcfilter,1,nil,ft,tp) and ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c90960358.spcfilter,1,nil,ft,tp)
end end
function c90960358.spop(e,tp,eg,ep,ev,re,r,rp,c) function c90960358.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_COST,tp,c90960358.spcfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c90960358.spcfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c90960358.sfilter(c) function c90960358.sfilter(c)
return c:IsReason(REASON_DESTROY) and c:IsPreviousPosition(POS_FACEUP) and c:GetPreviousCodeOnField()==15259703 and c:IsPreviousLocation(LOCATION_ONFIELD) return c:IsReason(REASON_DESTROY) and c:IsPreviousPosition(POS_FACEUP) and c:GetPreviousCodeOnField()==15259703 and c:IsPreviousLocation(LOCATION_ONFIELD)
......
...@@ -61,12 +61,12 @@ function c91842653.spcon(e,c) ...@@ -61,12 +61,12 @@ function c91842653.spcon(e,c)
local tp=c:GetControler() local tp=c:GetControler()
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return Duel.IsExistingMatchingCard(c91842653.cfilter,tp,LOCATION_ONFIELD,0,1,nil) return Duel.IsExistingMatchingCard(c91842653.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
and ft>-1 and Duel.CheckReleaseGroup(REASON_COST,tp,c91842653.spcfilter,1,nil,ft,tp) and ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c91842653.spcfilter,1,nil,ft,tp)
end end
function c91842653.spop(e,tp,eg,ep,ev,re,r,rp,c) function c91842653.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_COST,tp,c91842653.spcfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c91842653.spcfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c91842653.sfilter(c) function c91842653.sfilter(c)
return c:IsReason(REASON_DESTROY) and c:IsPreviousPosition(POS_FACEUP) and c:GetPreviousCodeOnField()==15259703 and c:IsPreviousLocation(LOCATION_ONFIELD) return c:IsReason(REASON_DESTROY) and c:IsPreviousPosition(POS_FACEUP) and c:GetPreviousCodeOnField()==15259703 and c:IsPreviousLocation(LOCATION_ONFIELD)
......
...@@ -28,12 +28,12 @@ function c94388754.hspcon(e,c) ...@@ -28,12 +28,12 @@ function c94388754.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_COST,tp,c94388754.hspfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c94388754.hspfilter,1,nil,ft,tp)
end end
function c94388754.hspop(e,tp,eg,ep,ev,re,r,rp,c) function c94388754.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_COST,tp,c94388754.hspfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c94388754.hspfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
function c94388754.target(e,tp,eg,ep,ev,re,r,rp,chk) function c94388754.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -36,10 +36,10 @@ function c96561011.spcon(e,c) ...@@ -36,10 +36,10 @@ function c96561011.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_COST,tp,c96561011.rfilter,1,nil,ft,tp) return ft>-1 and Duel.CheckReleaseGroup(REASON_SPSUMMON,tp,c96561011.rfilter,1,nil,ft,tp)
end end
function c96561011.spop(e,tp,eg,ep,ev,re,r,rp,c) function c96561011.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_COST,tp,c96561011.rfilter,1,1,nil,ft,tp) local g=Duel.SelectReleaseGroup(REASON_SPSUMMON,tp,c96561011.rfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_SPSUMMON)
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment