Commit 4c3883e6 authored by Tachibana's avatar Tachibana

ndyd

parent 26227eb7
No preview for this file type
...@@ -66,6 +66,7 @@ end ...@@ -66,6 +66,7 @@ end
function cm.scop(e,tp,eg,ep,ev,re,r,rp) function cm.scop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local lv=c:GetOriginalLevel()
local tc=Duel.SelectMatchingCard(tp,cm.filter,tp,0,LOCATION_GRAVE,1,1,nil,e,tp,lv,c) local tc=Duel.SelectMatchingCard(tp,cm.filter,tp,0,LOCATION_GRAVE,1,1,nil,e,tp,lv,c)
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
if not c:IsRelateToEffect(e) or not tc:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) or not tc:IsRelateToEffect(e) then return end
......
...@@ -80,8 +80,10 @@ end ...@@ -80,8 +80,10 @@ end
function c20000101.op3(e,tp,eg,ep,ev,re,r,rp) function c20000101.op3(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and Duel.SendtoHand(tc,tp,REASON_EFFECT)~=0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then if tc:IsRelateToEffect(e) and Duel.SendtoHand(tc,tp,REASON_EFFECT)~=0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) if Duel.SelectYesNo(tp,aux.Stringid(20000101,3)) then
local g=Duel.SelectMatchingCard(tp,c20000101.opf3,tp,LOCATION_HAND,0,1,1,nil,e,tp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) local g=Duel.SelectMatchingCard(tp,c20000101.opf3,tp,LOCATION_HAND,0,1,1,nil,e,tp)
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end end
end end
\ No newline at end of file
...@@ -21,10 +21,10 @@ function c20000102.initial_effect(c) ...@@ -21,10 +21,10 @@ function c20000102.initial_effect(c)
end end
--e1 --e1
function c20000102.cf1(c) function c20000102.cf1(c)
return c:IsCode(20000100) and c:IsFaceup() return c:IsCode(20000100) and (c:IsFaceup() or not c:IsLocation(LOCATION_ONFIELD))
end end
function c20000102.con1(e,tp,eg,ep,ev,re,r,rp) function c20000102.con1(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c20000102.cf1,tp,LOCATION_MZONE,0,1,nil) return Duel.IsExistingMatchingCard(c20000102.cf1,tp,LOCATION_ONFIELD,0,1,nil)
end end
function c20000102.co1(e,tp,eg,ep,ev,re,r,rp,chk) function c20000102.co1(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(1) e:SetLabel(1)
...@@ -36,7 +36,7 @@ function c20000102.cof1(c,e,tp) ...@@ -36,7 +36,7 @@ function c20000102.cof1(c,e,tp)
end end
function c20000102.cof12(c,e,tp,att,mc) function c20000102.cof12(c,e,tp,att,mc)
return c:IsSetCard(0x6fd1) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) and c:GetAttribute()==att return c:IsSetCard(0x6fd1) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) and c:GetAttribute()==att
and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0 and not c:IsCode(20000118) and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0 and (c:IsLevel(8) or c:IsRank(8))
end end
function c20000102.tg1(e,tp,eg,ep,ev,re,r,rp,chk) function c20000102.tg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
...@@ -57,7 +57,7 @@ function c20000102.op1(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,7 +57,7 @@ function c20000102.op1(e,tp,eg,ep,ev,re,r,rp)
tc:CompleteProcedure() tc:CompleteProcedure()
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c20000102.cf1,tp,LOCATION_MZONE+LOCATION_HAND,0,1,1,nil,tp) local g=Duel.SelectMatchingCard(tp,c20000102.cf1,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,1,nil,tp)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
Duel.SendtoGrave(tc,REASON_EFFECT) Duel.SendtoGrave(tc,REASON_EFFECT)
......
...@@ -65,5 +65,5 @@ function cm.nop(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,5 +65,5 @@ function cm.nop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,m) Duel.Hint(HINT_CARD,0,m)
end end
function cm.disable(e,c) function cm.disable(e,c)
return c:GetFieldID()~=e:GetLabel() and (not c:IsType(TYPE_MONSTER) or (c:IsType(TYPE_EFFECT) or bit.band(c:GetOriginalType(),TYPE_EFFECT)==TYPE_EFFECT)) return c:GetFieldID()~=e:GetLabel() and c:IsType(TYPE_SPELL)
end end
\ No newline at end of file
...@@ -49,7 +49,7 @@ end ...@@ -49,7 +49,7 @@ end
function cm.tgop(e,tp,eg,ep,ev,re,r,rp) function cm.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local tc=Duel.SelectMatchingCard(tp,Card.IsAbleToDeck,tp,LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE,1,1,nil):GetFirst() local tc=Duel.SelectMatchingCard(tp,Card.IsAbleToDeck,tp,LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE,1,1,nil):GetFirst()
if tc and Duel.SendtoDeck(g,nil,2,REASON_EFFECT)~=0 and tc:IsLocation(LOCATION_DECK+LOCATION_EXTRA) then if tc and Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)~=0 and tc:IsLocation(LOCATION_DECK+LOCATION_EXTRA) then
local c=e:GetHandler() local c=e:GetHandler()
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
......
...@@ -13,7 +13,7 @@ function cm.initial_effect(c) ...@@ -13,7 +13,7 @@ function cm.initial_effect(c)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) e1:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e1:SetTarget(cm.indtg) e1:SetTarget(cm.indtg)
e1:SetValue(aux.tgoval) e1:SetValue(1)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--cannot be battle target --cannot be battle target
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
......
...@@ -29,12 +29,16 @@ function cm.initial_effect(c) ...@@ -29,12 +29,16 @@ function cm.initial_effect(c)
e11:SetProperty(EFFECT_FLAG_SET_AVAILABLE+EFFECT_FLAG_IGNORE_RANGE) e11:SetProperty(EFFECT_FLAG_SET_AVAILABLE+EFFECT_FLAG_IGNORE_RANGE)
e11:SetRange(LOCATION_MZONE) e11:SetRange(LOCATION_MZONE)
e11:SetCode(EFFECT_TO_GRAVE_REDIRECT) e11:SetCode(EFFECT_TO_GRAVE_REDIRECT)
e11:SetTargetRange(0,0xff) e11:SetTargetRange(0xff,0xff)
e11:SetValue(LOCATION_DECKBOT) e11:SetValue(LOCATION_DECKBOT)
e11:SetCondition(cm.condition) e11:SetCondition(cm.condition)
e11:SetTarget(cm.rmtg)
c:RegisterEffect(e11) c:RegisterEffect(e11)
local e1=Suyu_skysele.mutlink(c,m,nil,cm.thtg,cm.thop) local e1=Suyu_skysele.mutlink(c,m,nil,cm.thtg,cm.thop)
end end
function cm.rmtg(e,c)
return c:GetOwner()~=e:GetHandlerPlayer()
end
function cm.matfilter(c) function cm.matfilter(c)
return c:IsLinkRace(RACE_CYBERSE) return c:IsLinkRace(RACE_CYBERSE)
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