Commit 7cb2b5f4 authored by Tachibana's avatar Tachibana

ndyd

parent 2fba20d4
Pipeline #5355 failed with stages
in 34 minutes and 9 seconds
No preview for this file type
...@@ -28,11 +28,11 @@ function cm.initial_effect(c) ...@@ -28,11 +28,11 @@ function cm.initial_effect(c)
e3:SetValue(cm.eqlimit) e3:SetValue(cm.eqlimit)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function cm.filter(c) function cm.unfilter(c)
return c:IsFaceup() and c:IsCode(m) return c:IsFaceup() and c:IsCode(m)
end end
function cm.uqfilter(c) function cm.uqfilter(c)
return Duel.GetMatchingGroupCount(cm.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil) and c:IsCode(m) and c:GetFlagEffect(m)==0 return Duel.IsExistingMatchingCard(cm.unfilter,0,LOCATION_ONFIELD,LOCATION_ONFIELD,2,c) and c:IsCode(m)
end end
function cm.eqlimit(e,c) function cm.eqlimit(e,c)
return rk.check(c,"DAIOU") return rk.check(c,"DAIOU")
...@@ -95,4 +95,4 @@ end ...@@ -95,4 +95,4 @@ end
function cm.aclimit(e,re,tp) function cm.aclimit(e,re,tp)
local rc=re:GetHandler() local rc=re:GetHandler()
return rc:GetOriginalCode()==e:GetLabel() return rc:GetOriginalCode()==e:GetLabel()
end end
\ No newline at end of file \ No newline at end of file
...@@ -28,11 +28,11 @@ function cm.initial_effect(c) ...@@ -28,11 +28,11 @@ function cm.initial_effect(c)
e3:SetValue(cm.eqlimit) e3:SetValue(cm.eqlimit)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function cm.filter(c) function cm.unfilter(c)
return c:IsFaceup() and c:IsCode(m) return c:IsFaceup() and c:IsCode(m)
end end
function cm.uqfilter(c) function cm.uqfilter(c)
return Duel.GetMatchingGroupCount(cm.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil) and c:IsCode(m) and c:GetFlagEffect(m)==0 return Duel.IsExistingMatchingCard(cm.unfilter,0,LOCATION_ONFIELD,LOCATION_ONFIELD,2,c) and c:IsCode(m)
end end
function cm.eqlimit(e,c) function cm.eqlimit(e,c)
return rk.check(c,"DAIOU") return rk.check(c,"DAIOU")
...@@ -114,5 +114,5 @@ end ...@@ -114,5 +114,5 @@ end
function cm.aclimit(e,re,tp) function cm.aclimit(e,re,tp)
local rc=re:GetHandler() local rc=re:GetHandler()
return rc:GetOriginalCode()==e:GetLabel() return rc:GetOriginalCode()==e:GetLabel()
end end
\ No newline at end of file
...@@ -28,11 +28,11 @@ function cm.initial_effect(c) ...@@ -28,11 +28,11 @@ function cm.initial_effect(c)
e3:SetValue(cm.eqlimit) e3:SetValue(cm.eqlimit)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function cm.filter(c) function cm.unfilter(c)
return c:IsFaceup() and c:IsCode(m) return c:IsFaceup() and c:IsCode(m)
end end
function cm.uqfilter(c) function cm.uqfilter(c)
return Duel.GetMatchingGroupCount(cm.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil) and c:IsCode(m) and c:GetFlagEffect(m)==0 return Duel.IsExistingMatchingCard(cm.unfilter,0,LOCATION_ONFIELD,LOCATION_ONFIELD,2,c) and c:IsCode(m)
end end
function cm.eqlimit(e,c) function cm.eqlimit(e,c)
return rk.check(c,"DAIOU") return rk.check(c,"DAIOU")
...@@ -87,5 +87,5 @@ end ...@@ -87,5 +87,5 @@ end
function cm.aclimit(e,re,tp) function cm.aclimit(e,re,tp)
local rc=re:GetHandler() local rc=re:GetHandler()
return rc:GetOriginalCode()==e:GetLabel() return rc:GetOriginalCode()==e:GetLabel()
end end
\ No newline at end of file
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
local m=16161000 local m=16161000
local cm=_G["c"..m] local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
aux.EnablePendulumAttribute(c,true)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0)) e1:SetDescription(aux.Stringid(m,0))
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_IGNITION)
......
...@@ -29,7 +29,7 @@ function cm.initial_effect(c) ...@@ -29,7 +29,7 @@ function cm.initial_effect(c)
e3:SetProperty(EFFECT_FLAG_DELAY) e3:SetProperty(EFFECT_FLAG_DELAY)
e3:SetCountLimit(1) e3:SetCountLimit(1)
e3:SetCost(cm.cost) e3:SetCost(cm.cost)
e3:SetCondition(cm.condtion2) e3:SetCondition(cm.condition2)
e3:SetTarget(cm.thtarget2) e3:SetTarget(cm.thtarget2)
e3:SetOperation(cm.thoperation2) e3:SetOperation(cm.thoperation2)
c:RegisterEffect(e3) c:RegisterEffect(e3)
...@@ -82,7 +82,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -82,7 +82,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(g,REASON_COST+REASON_DISCARD) Duel.SendtoGrave(g,REASON_COST+REASON_DISCARD)
end end
function cm.gfilter(c,tp) function cm.gfilter(c,tp)
return c:IsSummonPlayer(tp) and (c:IsType(TYPE_TOKEN) or aux.IsCodeListed(m-1)) return c:IsSummonPlayer(tp) and (c:IsType(TYPE_TOKEN) or aux.IsCodeListed(c,m-1))
end end
function cm.condition2(e,tp,eg) function cm.condition2(e,tp,eg)
return eg:IsExists(cm.gfilter,1,nil,tp) return eg:IsExists(cm.gfilter,1,nil,tp)
......
...@@ -6,7 +6,6 @@ function c19500039.initial_effect(c) ...@@ -6,7 +6,6 @@ function c19500039.initial_effect(c)
e1:SetCode(EFFECT_SPSUMMON_PROC) e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE) e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_DECK) e1:SetRange(LOCATION_DECK)
e1:SetCountLimit(1,19500039)
e1:SetCondition(c19500039.spcon) e1:SetCondition(c19500039.spcon)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--fusion summon --fusion summon
...@@ -35,7 +34,7 @@ function c19500039.initial_effect(c) ...@@ -35,7 +34,7 @@ function c19500039.initial_effect(c)
end end
end end
function c19500039.cfilter(c) function c19500039.cfilter(c)
return c:IsSetCard(0x3990) and c:IsPreviousLocation(LOCATION_HAND+LOCATION_ONFIELD) return c:IsSetCard(0x3190) and c:IsPreviousLocation(LOCATION_HAND+LOCATION_ONFIELD)
end end
function c19500039.acop(e,tp,eg,ep,ev,re,r,rp) function c19500039.acop(e,tp,eg,ep,ev,re,r,rp)
local ct=eg:FilterCount(c19500039.cfilter,nil) local ct=eg:FilterCount(c19500039.cfilter,nil)
...@@ -49,13 +48,13 @@ end ...@@ -49,13 +48,13 @@ end
function c19500039.spcon(e,c) function c19500039.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)>0 and c19500039[0]>6 return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and c19500039[0]>2
end end
function c19500039.fselect(g) function c19500039.fselect(g)
return g:GetClassCount(Card.GetOriginalCode)==g:GetCount() return g:GetClassCount(Card.GetOriginalCode)==g:GetCount()
end end
function c19500039.costfilter(c,code) function c19500039.costfilter(c,code)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x3990) and c:IsRace(RACE_MACHINE) and c:IsAbleToRemoveAsCost() and not c:IsCode(code) return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x3190) and c:IsRace(RACE_MACHINE) and c:IsAbleToRemoveAsCost() and not c:IsCode(code)
end end
function c19500039.sccost(e,tp,eg,ep,ev,re,r,rp,chk) function c19500039.sccost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -71,10 +70,9 @@ function c19500039.filter(c,e,tp) ...@@ -71,10 +70,9 @@ function c19500039.filter(c,e,tp)
return c:IsCode(19500038) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_SYNCHRO,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0 return c:IsCode(19500038) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_SYNCHRO,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0
end end
function c19500039.sctg(e,tp,eg,ep,ev,re,r,rp,chk) function c19500039.sctg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,19500039)==0 and aux.MustMaterialCheck(nil,tp,EFFECT_MUST_BE_SMATERIAL) if chk==0 then return aux.MustMaterialCheck(nil,tp,EFFECT_MUST_BE_SMATERIAL)
and Duel.IsExistingMatchingCard(c19500039.filter,tp,LOCATION_EXTRA,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c19500039.filter,tp,LOCATION_EXTRA,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
Duel.RegisterFlagEffect(tp,19500039,RESET_PHASE+PHASE_END,EFFECT_FLAG_OATH,1)
end end
function c19500039.scop(e,tp,eg,ep,ev,re,r,rp) function c19500039.scop(e,tp,eg,ep,ev,re,r,rp)
if not aux.MustMaterialCheck(nil,tp,EFFECT_MUST_BE_SMATERIAL) then return end if not aux.MustMaterialCheck(nil,tp,EFFECT_MUST_BE_SMATERIAL) then return end
......
...@@ -28,7 +28,7 @@ function c45745908.initial_effect(c) ...@@ -28,7 +28,7 @@ function c45745908.initial_effect(c)
end end
--e1 --e1
function c45745908.filter1(c,e,tp) function c45745908.filter1(c,e,tp)
return c:IsCode(45745908) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCode(45745907) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c45745908.tg(e,tp,eg,ep,ev,re,r,rp,chk) function c45745908.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -5,7 +5,7 @@ function c45745924.initial_effect(c) ...@@ -5,7 +5,7 @@ function c45745924.initial_effect(c)
e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY) e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_CHAINING) e1:SetCode(EVENT_CHAINING)
e1:SetCountLimit(1,45745924+EFFECT_COUNT_CODE_OATH) e1:SetCountLimit(1,45745924)
e1:SetCondition(c45745924.condition) e1:SetCondition(c45745924.condition)
e1:SetCost(c45745924.cost) e1:SetCost(c45745924.cost)
e1:SetTarget(c45745924.target) e1:SetTarget(c45745924.target)
...@@ -19,7 +19,7 @@ function c45745924.initial_effect(c) ...@@ -19,7 +19,7 @@ function c45745924.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(45745924,2)) e3:SetDescription(aux.Stringid(45745924,1))
e3:SetCategory(CATEGORY_SPECIAL_SUMMON) e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
e3:SetType(EFFECT_TYPE_QUICK_O) e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetRange(LOCATION_GRAVE) e3:SetRange(LOCATION_GRAVE)
...@@ -137,9 +137,9 @@ function c45745924.activate1(e,tp,eg,ep,ev,re,r,rp) ...@@ -137,9 +137,9 @@ function c45745924.activate1(e,tp,eg,ep,ev,re,r,rp)
e0:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON) e0:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e0:SetReset(RESET_PHASE+PHASE_END) e0:SetReset(RESET_PHASE+PHASE_END)
e0:SetTargetRange(1,0) e0:SetTargetRange(1,0)
e0:SetTarget(c45745924.splimit) e0:SetTarget(c45745924.splimit1)
Duel.RegisterEffect(e0,tp) Duel.RegisterEffect(e0,tp)
end end
function c45745924.splimit(e,c) function c45745924.splimit1(e,c)
return not c:IsRace(RACE_WINDBEAST) return not c:IsRace(RACE_WINDBEAST)
end end
\ No newline at end of file
...@@ -77,22 +77,24 @@ function cm.initial_effect(c) ...@@ -77,22 +77,24 @@ function cm.initial_effect(c)
e8:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e8:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
c:RegisterEffect(e8) c:RegisterEffect(e8)
local e9=Effect.CreateEffect(c) local e9=Effect.CreateEffect(c)
e9:SetDescription(aux.Stringid(m,7))
e9:SetCategory(CATEGORY_REMOVE) e9:SetCategory(CATEGORY_REMOVE)
e9:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e9:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e9:SetCode(EVENT_SPSUMMON_SUCCESS) e9:SetCode(EVENT_SPSUMMON_SUCCESS)
e9:SetProperty(EFFECT_FLAG_DELAY) e9:SetProperty(EFFECT_FLAG_DELAY)
e9:SetCountLimit(1,m) e9:SetCountLimit(1,m)
e9:SetCondition(function(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end)
e9:SetTarget(function(e,tp,eg,ep,ev,re,r,rp,chk) e9:SetTarget(function(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsType,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,1,nil,TYPE_SPELL+TYPE_TRAP) end if chk==0 then return Duel.IsExistingMatchingCard(function(c)
local g=Duel.GetMatchingGroup(Card.IsType,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,nil,TYPE_SPELL+TYPE_TRAP) return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToRemove()
end,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,1,nil) end
local g=Duel.GetMatchingGroup(function(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToRemove()
end,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,nil)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,g:GetCount(),0,0)
end) end)
e9:SetOperation(function(e,tp,eg,ep,ev,re,r,rp) e9:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(Card.IsType,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,nil,TYPE_SPELL+TYPE_TRAP) local g=Duel.GetMatchingGroup(function(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToRemove()
end,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.Remove(g,POS_FACEDOWN,REASON_EFFECT) Duel.Remove(g,POS_FACEDOWN,REASON_EFFECT)
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