Commit db587aca authored by Tachibana's avatar Tachibana

ndyd

parent 4ccac9d3
...@@ -22,16 +22,15 @@ function c19500029.initial_effect(c) ...@@ -22,16 +22,15 @@ function c19500029.initial_effect(c)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetCode(EVENT_FREE_CHAIN)
e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE) e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,19500029+100) e2:SetCountLimit(1,19500041)
e2:SetTarget(c19500029.destg) e2:SetTarget(c19500029.destg)
e2:SetOperation(c19500029.desop) e2:SetOperation(c19500029.desop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--link off
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE) e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_CANNOT_BE_LINK_MATERIAL) e3:SetCode(EFFECT_CANNOT_BE_LINK_MATERIAL)
e3:SetValue(1) e3:SetValue(1)
e3:SetReset(RESET_EVENT+0x1fe0000) e3:SetReset(RESET_EVENT)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c19500029.lcheck(g,lc) function c19500029.lcheck(g,lc)
......
...@@ -6,6 +6,7 @@ function c19500039.initial_effect(c) ...@@ -6,6 +6,7 @@ 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
...@@ -19,8 +20,8 @@ function c19500039.initial_effect(c) ...@@ -19,8 +20,8 @@ function c19500039.initial_effect(c)
e2:SetOperation(c19500039.scop) e2:SetOperation(c19500039.scop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
if not c19500039.global_check then if not c19500039.global_check then
c19500039[0]=0
c19500039.global_check=true c19500039.global_check=true
c19500039[0]=0
local ge1=Effect.CreateEffect(c) local ge1=Effect.CreateEffect(c)
ge1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD) ge1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
ge1:SetCode(EVENT_DESTROYED) ge1:SetCode(EVENT_DESTROYED)
...@@ -28,13 +29,14 @@ function c19500039.initial_effect(c) ...@@ -28,13 +29,14 @@ function c19500039.initial_effect(c)
Duel.RegisterEffect(ge1,0) Duel.RegisterEffect(ge1,0)
local ge2=Effect.CreateEffect(c) local ge2=Effect.CreateEffect(c)
ge2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) ge2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge2:SetCode(EVENT_TURN_END+PHASE_END) ge2:SetCode(EVENT_PHASE_START+PHASE_DRAW)
ge2:SetCountLimit(1)
ge2:SetOperation(c19500039.clear) ge2:SetOperation(c19500039.clear)
Duel.RegisterEffect(ge2,0) Duel.RegisterEffect(ge2,0)
end end
end end
function c19500039.cfilter(c) function c19500039.cfilter(c)
return c:IsSetCard(0x3190) and c:IsPreviousLocation(LOCATION_HAND+LOCATION_ONFIELD) return c:IsSetCard(0x3990) 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)
...@@ -48,13 +50,13 @@ end ...@@ -48,13 +50,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]>2 return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and c19500039[0]>6
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(0x3190) and c:IsRace(RACE_MACHINE) and c:IsAbleToRemoveAsCost() and not c:IsCode(code) return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x3990) 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()
...@@ -70,9 +72,10 @@ function c19500039.filter(c,e,tp) ...@@ -70,9 +72,10 @@ 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 aux.MustMaterialCheck(nil,tp,EFFECT_MUST_BE_SMATERIAL) if chk==0 then return Duel.GetFlagEffect(tp,19500039)==0 and 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
......
...@@ -568,7 +568,7 @@ function XY.maganeop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -568,7 +568,7 @@ function XY.maganeop2(e,tp,eg,ep,ev,re,r,rp)
if g1:GetCount()>0 and Duel.SSet(tp,g1)~=0 then if g1:GetCount()>0 and Duel.SSet(tp,g1)~=0 then
local tc=g1:GetFirst() local tc=g1:GetFirst()
while tc do while tc do
local g=c:GetColumnGroup():FilterCount(XY.maganetgfilter2,nil,tp) local g=tc:GetColumnGroup():FilterCount(XY.maganetgfilter2,nil,tp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SendtoGrave(g,REASON_EFFECT) Duel.SendtoGrave(g,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