Commit caa1cfaf authored by Tachibana's avatar Tachibana

ndyd

parent dad6478a
No preview for this file type
...@@ -78,14 +78,14 @@ function cm.spfilter(c,e,tp) ...@@ -78,14 +78,14 @@ function cm.spfilter(c,e,tp)
end end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.sptg(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
and Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_HAND,0,1,nil,e,tp) and Duel.IsExistingMatchingCard(Card.IsAbleToHand,tp,LOCATION_SZONE,LOCATION_SZONE,1,nil) end and Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_HAND,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND)
end end
function cm.spop(e,tp,eg,ep,ev,re,r,rp) function cm.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end 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,cm.spfilter,tp,LOCATION_HAND,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,cm.spfilter,tp,LOCATION_HAND,0,1,1,nil,e,tp)
if g:GetCount()>0 and Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)~=0 then if g:GetCount()>0 and Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)~=0 and Duel.IsExistingMatchingCard(Card.IsAbleToHand,tp,LOCATION_SZONE,LOCATION_SZONE,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(m,2)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local tc=Duel.SelectMatchingCard(tp,Card.IsAbleToHand,tp,LOCATION_SZONE,LOCATION_SZONE,1,1,nil) local tc=Duel.SelectMatchingCard(tp,Card.IsAbleToHand,tp,LOCATION_SZONE,LOCATION_SZONE,1,1,nil)
if tc:GetCount()>0 then if tc:GetCount()>0 then
......
...@@ -46,7 +46,7 @@ function c20000001.initial_effect(c) ...@@ -46,7 +46,7 @@ function c20000001.initial_effect(c)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function c20000001.conf2(c) function c20000001.conf2(c)
return c:IsAbleToDeckOrExtraAsCost() and c:IsSetCard(0x5fd1) return c:IsAbleToDeckOrExtraAsCost() and c:IsSetCard(0x5fd1) and c:IsFaceup()
end end
function c20000001.conf21(g,tp,sc) function c20000001.conf21(g,tp,sc)
return g:GetCount()==5 return g:GetCount()==5
...@@ -115,7 +115,7 @@ function c20000001.val3(e,re) ...@@ -115,7 +115,7 @@ function c20000001.val3(e,re)
return not (re:GetOwner():IsSetCard(0x5fd1) or re:GetOwner()==e:GetOwner()) return not (re:GetOwner():IsSetCard(0x5fd1) or re:GetOwner()==e:GetOwner())
end end
function c20000001.cof4(c) function c20000001.cof4(c)
return c:IsAbleToDeckOrExtraAsCost() and c:IsSetCard(0x5fd1) return c:IsAbleToDeckOrExtraAsCost() and c:IsSetCard(0x5fd1) and c:IsFaceup()
end end
function c20000001.co4(e,tp,eg,ep,ev,re,r,rp,chk) function c20000001.co4(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c20000001.cof4,tp,LOCATION_REMOVED,0,2,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c20000001.cof4,tp,LOCATION_REMOVED,0,2,nil) end
......
...@@ -20,7 +20,7 @@ function c20000004.initial_effect(c) ...@@ -20,7 +20,7 @@ function c20000004.initial_effect(c)
end end
--e1 --e1
function c20000004.cof2(c) function c20000004.cof2(c)
return c:IsSetCard(0x5fd1) return c:IsType(TYPE_SPELL+TYPE_TRAP) or (c:IsSetCard(0x5fd1) and c:IsFaceup())
end end
function c20000004.tgf1(c,e,tp) function c20000004.tgf1(c,e,tp)
return c:IsCode(20000000) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCode(20000000) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -65,9 +65,6 @@ end ...@@ -65,9 +65,6 @@ end
function c20000013.op2(e,tp,eg,ep,ev,re,r,rp,c) function c20000013.op2(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g1=Duel.SelectMatchingCard(tp,c20000013.conf2,tp,LOCATION_ONFIELD,0,3,3,nil,c) local g1=Duel.SelectMatchingCard(tp,c20000013.conf2,tp,LOCATION_ONFIELD,0,3,3,nil,c)
for tc in aux.Next(g) do
if tc:IsOnField() and tc:IsFacedown() then Duel.ConfirmCards(1-tp,tc) end
end
c:SetMaterial(g1) c:SetMaterial(g1)
Duel.SendtoDeck(g1,nil,2,REASON_COST) Duel.SendtoDeck(g1,nil,2,REASON_COST)
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