Commit 12a4e953 authored by TanakaKotoha's avatar TanakaKotoha

tnndx

parent 10b1451e
No preview for this file type
...@@ -9,6 +9,7 @@ function c16200005.initial_effect(c) ...@@ -9,6 +9,7 @@ function c16200005.initial_effect(c)
e1:SetHintTiming(0,TIMING_END_PHASE) e1:SetHintTiming(0,TIMING_END_PHASE)
e1:SetCountLimit(1,16200005) e1:SetCountLimit(1,16200005)
e1:SetCost(c16200005.cost) e1:SetCost(c16200005.cost)
e1:SetCondition(c16200005.condition)
e1:SetTarget(c16200005.target) e1:SetTarget(c16200005.target)
e1:SetOperation(c16200005.activate) e1:SetOperation(c16200005.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
...@@ -48,6 +49,8 @@ function c16200005.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -48,6 +49,8 @@ function c16200005.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e3:SetCode(EFFECT_CANNOT_FLIP_SUMMON) e3:SetCode(EFFECT_CANNOT_FLIP_SUMMON)
Duel.RegisterEffect(e3,tp) Duel.RegisterEffect(e3,tp)
end end
function c16200005.condition(e,tp)
return Duel.GetMatchingGroupCount(nil,tp,LOCATION_MZONE,0,nil)<Duel.GetMatchingGroupCount(nil,1-tp,LOCATION_MZONE,0,nil)
function c16200005.sumlimit(e,c,sump,sumtype,sumpos,targetp,se) function c16200005.sumlimit(e,c,sump,sumtype,sumpos,targetp,se)
return e:GetLabelObject()~=se return e:GetLabelObject()~=se
end end
...@@ -97,6 +100,7 @@ function c16200005.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -97,6 +100,7 @@ function c16200005.activate(e,tp,eg,ep,ev,re,r,rp)
token:RegisterEffect(e3,true) token:RegisterEffect(e3,true)
local e4=e2:Clone() local e4=e2:Clone()
e4:SetCode(EFFECT_CANNOT_BE_LINK_MATERIAL) e4:SetCode(EFFECT_CANNOT_BE_LINK_MATERIAL)
e4:SetValue(1)
token:RegisterEffect(e4,true) token:RegisterEffect(e4,true)
end end
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
......
...@@ -48,9 +48,10 @@ function c16200008.pfilter(c) ...@@ -48,9 +48,10 @@ function c16200008.pfilter(c)
return aux.IsCodeListed(c,16200003) and not c:IsPublic() return aux.IsCodeListed(c,16200003) and not c:IsPublic()
end end
function c16200008.cost1(e,tp,eg,ep,ev,re,r,rp,chk) function c16200008.cost1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c16200008.pfilter,tp,LOCATION_HAND,0,1,nil) and Duel.GetFlagEffect(tp,16200008)==0 end local c=e:GetHandler()
if chk==0 then return Duel.IsExistingMatchingCard(c16200008.pfilter,tp,LOCATION_HAND,0,1,c) and Duel.GetFlagEffect(tp,16200008)==0 end
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(16200008,3)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(16200008,3))
local sg=Duel.SelectMatchingCard(tp,c16200008.pfilter,tp,LOCATION_HAND,0,1,1,nil) local sg=Duel.SelectMatchingCard(tp,c16200008.pfilter,tp,LOCATION_HAND,0,1,1,c)
Duel.ConfirmCards(1-tp,sg) Duel.ConfirmCards(1-tp,sg)
Duel.RegisterFlagEffect(tp,tp,16200008,RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(tp,tp,16200008,RESET_PHASE+PHASE_END,0,1)
end end
...@@ -69,9 +70,10 @@ function c16200008.condition2(e,tp,eg,ep,ev,re,r,rp) ...@@ -69,9 +70,10 @@ function c16200008.condition2(e,tp,eg,ep,ev,re,r,rp)
return re:IsHasType(EFFECT_TYPE_ACTIVATE) and Duel.IsChainNegatable(ev) return re:IsHasType(EFFECT_TYPE_ACTIVATE) and Duel.IsChainNegatable(ev)
end end
function c16200008.cost2(e,tp,eg,ep,ev,re,r,rp,chk) function c16200008.cost2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c16200008.pfilter,tp,LOCATION_HAND,0,1,nil) and Duel.GetFlagEffect(tp,16200009)==0 end local c=e:GetHandler()
if chk==0 then return Duel.IsExistingMatchingCard(c16200008.pfilter,tp,LOCATION_HAND,0,1,c) and Duel.GetFlagEffect(tp,16200009)==0 end
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(16200008,3)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(16200008,3))
local sg=Duel.SelectMatchingCard(tp,c16200008.pfilter,tp,LOCATION_HAND,1,1,nil) local sg=Duel.SelectMatchingCard(tp,c16200008.pfilter,tp,LOCATION_HAND,1,1,c)
Duel.ConfirmCards(1-tp,sg) Duel.ConfirmCards(1-tp,sg)
Duel.RegisterFlagEffect(tp,tp,16200009,RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(tp,tp,16200009,RESET_PHASE+PHASE_END,0,1)
end end
......
...@@ -61,6 +61,7 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -61,6 +61,7 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.SelectTarget(tp,cm.gvfilter,tp,LOCATION_MZONE,0,1,1,nil) local g=Duel.SelectTarget(tp,cm.gvfilter,tp,LOCATION_MZONE,0,1,1,nil)
end end
function cm.op(e,tp,eg,ep,ev,re,r,rp) function cm.op(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
......
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