Commit b68197cc authored by 聖園ミカ's avatar 聖園ミカ 🐟

byd

parent 5841280e
No preview for this file type
...@@ -26,8 +26,8 @@ function cm.cfilter(c,tp) ...@@ -26,8 +26,8 @@ function cm.cfilter(c,tp)
end end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(0) e:SetLabel(0)
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,cm.cfilter,1,nil,tp) end if chk==0 then return Duel.CheckReleaseGroup(tp,cm.cfilter,1,nil,tp) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,cm.cfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(tp,cm.cfilter,1,1,nil,tp)
if g:GetFirst():IsSetCard(0xa82) then e:SetLabel(1) end if g:GetFirst():IsSetCard(0xa82) then e:SetLabel(1) end
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
......
...@@ -46,7 +46,7 @@ function s.thfilter(c) ...@@ -46,7 +46,7 @@ function s.thfilter(c)
end end
function s.tg(e,tp,eg,ep,ev,re,r,rp,chk) function s.tg(e,tp,eg,ep,ev,re,r,rp,chk)
local b1=Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 local b1=Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) and Duel.GetLocationCount(tp,LOCATION_SZONE)>0
local b2=Duel.GetFlagEffect(tp,47320100)>=5 local b2=Duel.GetFlagEffect(tp,47320100)>=5 and Duel.GetFlagEffect(tp,id)==0
if chk==0 then return b1 or b2 end if chk==0 then return b1 or b2 end
local off=1 local off=1
local ops,opval={},{} local ops,opval={},{}
...@@ -97,6 +97,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -97,6 +97,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp)
e2:SetCondition(s.spcon) e2:SetCondition(s.spcon)
e2:SetOperation(s.spop) e2:SetOperation(s.spop)
Duel.RegisterEffect(e2,tp) Duel.RegisterEffect(e2,tp)
Duel.RegisterFlagEffect(tp,id,0,0,0)
end end
end end
function s.spfilter(c,tp) function s.spfilter(c,tp)
......
...@@ -43,7 +43,7 @@ function s.thfilter(c) ...@@ -43,7 +43,7 @@ function s.thfilter(c)
end end
function s.tg(e,tp,eg,ep,ev,re,r,rp,chk) function s.tg(e,tp,eg,ep,ev,re,r,rp,chk)
local b1=Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 local b1=Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) and Duel.GetLocationCount(tp,LOCATION_SZONE)>0
local b2=Duel.GetFlagEffect(tp,47320100)>=5 local b2=Duel.GetFlagEffect(tp,47320100)>=5 and Duel.GetFlagEffect(tp,id)==0
if chk==0 then return b1 or b2 end if chk==0 then return b1 or b2 end
local off=1 local off=1
local ops,opval={},{} local ops,opval={},{}
...@@ -95,6 +95,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -95,6 +95,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp)
e1:SetTarget(s.reftg) e1:SetTarget(s.reftg)
e1:SetValue(1) e1:SetValue(1)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
Duel.RegisterFlagEffect(tp,id,0,0,0)
end end
end end
function s.reftg(e,c) function s.reftg(e,c)
......
...@@ -46,7 +46,7 @@ function s.thfilter(c) ...@@ -46,7 +46,7 @@ function s.thfilter(c)
end end
function s.tg(e,tp,eg,ep,ev,re,r,rp,chk) function s.tg(e,tp,eg,ep,ev,re,r,rp,chk)
local b1=Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil) and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 local b1=Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil) and Duel.GetLocationCount(tp,LOCATION_SZONE)>0
local b2=Duel.GetFlagEffect(tp,47320100)>=10 local b2=Duel.GetFlagEffect(tp,47320100)>=10 and Duel.GetFlagEffect(tp,id)==0
if chk==0 then return b1 or b2 end if chk==0 then return b1 or b2 end
local off=1 local off=1
local ops,opval={},{} local ops,opval={},{}
...@@ -97,6 +97,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -97,6 +97,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp)
e1:SetCondition(s.discon) e1:SetCondition(s.discon)
e1:SetOperation(s.disop) e1:SetOperation(s.disop)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
Duel.RegisterFlagEffect(tp,id,0,0,0)
end end
end end
function s.disfilter(c) function s.disfilter(c)
......
...@@ -67,6 +67,7 @@ function c50224525.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -67,6 +67,7 @@ function c50224525.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,0x32) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,0x32)
end end
function c50224525.spop(e,tp,eg,ep,ev,re,r,rp) function c50224525.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c50224525.spfilter),tp,0x32,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c50224525.spfilter),tp,0x32,0,1,1,nil,e,tp)
if #g>0 then if #g>0 then
......
...@@ -74,6 +74,7 @@ function c50224530.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -74,6 +74,7 @@ function c50224530.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,0x32) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,0x32)
end end
function c50224530.spop(e,tp,eg,ep,ev,re,r,rp) function c50224530.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c50224530.spfilter),tp,0x32,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c50224530.spfilter),tp,0x32,0,1,1,nil,e,tp)
if #g>0 then if #g>0 then
......
...@@ -77,6 +77,7 @@ function c50224535.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -77,6 +77,7 @@ function c50224535.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,0x32) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,0x32)
end end
function c50224535.spop(e,tp,eg,ep,ev,re,r,rp) function c50224535.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c50224535.spfilter),tp,0x32,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c50224535.spfilter),tp,0x32,0,1,1,nil,e,tp)
if #g>0 then if #g>0 then
......
...@@ -85,6 +85,7 @@ function c50224540.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -85,6 +85,7 @@ function c50224540.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,0x32) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,0x32)
end end
function c50224540.spop(e,tp,eg,ep,ev,re,r,rp) function c50224540.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c50224540.spfilter),tp,0x32,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c50224540.spfilter),tp,0x32,0,1,1,nil,e,tp)
if #g>0 then if #g>0 then
......
...@@ -44,6 +44,7 @@ function c50224545.spgtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -44,6 +44,7 @@ function c50224545.spgtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,1-tp,LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,1-tp,LOCATION_GRAVE)
end end
function c50224545.spgop(e,tp,eg,ep,ev,re,r,rp) function c50224545.spgop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,Card.IsCanBeSpecialSummoned,tp,0,LOCATION_GRAVE,1,1,nil,e,0,tp,false,false) local g=Duel.SelectMatchingCard(tp,Card.IsCanBeSpecialSummoned,tp,0,LOCATION_GRAVE,1,1,nil,e,0,tp,false,false)
if #g>0 then if #g>0 then
...@@ -79,6 +80,7 @@ function c50224545.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -79,6 +80,7 @@ function c50224545.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,0x32) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,0x32)
end end
function c50224545.spop(e,tp,eg,ep,ev,re,r,rp) function c50224545.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c50224545.spfilter),tp,0x32,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c50224545.spfilter),tp,0x32,0,1,1,nil,e,tp)
if #g>0 then if #g>0 then
......
...@@ -90,6 +90,7 @@ function c50224550.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -90,6 +90,7 @@ function c50224550.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,0x32) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,0x32)
end end
function c50224550.spop(e,tp,eg,ep,ev,re,r,rp) function c50224550.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c50224550.spfilter),tp,0x32,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c50224550.spfilter),tp,0x32,0,1,1,nil,e,tp)
if #g>0 then if #g>0 then
......
...@@ -64,9 +64,8 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -64,9 +64,8 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.eftg(e,c) function s.eftg(e,c)
local ct1=aux.GetColumn(e:GetHandler()) local seq=c:GetSequence()
local ct2=aux.GetColumn(c) return math.abs(e:GetHandler():GetSequence()-seq)<=1
return math.abs(ct1-ct2)<=1
end end
function s.spcon1(e,tp,eg,ep,ev,re,r,rp) function s.spcon1(e,tp,eg,ep,ev,re,r,rp)
......
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