Commit 399bec98 authored by Tachibana's avatar Tachibana

nmbd

parent 204b2799
No preview for this file type
...@@ -56,7 +56,7 @@ function cm.splimit(e,c) ...@@ -56,7 +56,7 @@ function cm.splimit(e,c)
end end
---- ----
function cm.sumfilter(c,e,tp,att) function cm.sumfilter(c,e,tp,att)
return (c:IsSetCard(0x5ccc) or (c:IsRace(RACE_MACHINE) and c:IsLevel(10))) and not c:IsAttribute(att) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and not c:IsAttribute(table.unpack(Sr_GODback)) return (c:IsSetCard(0x5ccc) or (c:IsRace(RACE_MACHINE) and c:IsLevel(10))) and not c:IsAttribute(att) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and not rsof.Table_List(Sr_GODback,c:GetAttribute())
end end
function cm.spmfilter(c,e,tp) function cm.spmfilter(c,e,tp)
local att=c:GetAttribute() local att=c:GetAttribute()
......
...@@ -41,7 +41,7 @@ function cm.gfilter(c) ...@@ -41,7 +41,7 @@ function cm.gfilter(c)
return c:IsType(TYPE_MONSTER) and not c:IsRace(RACE_ZOMBIE) return c:IsType(TYPE_MONSTER) and not c:IsRace(RACE_ZOMBIE)
end end
function cm.spfilter(c,e,tp) function cm.spfilter(c,e,tp)
return ((rk.check(m,"BOW")) or (not Duel.IsExistingMatchingCard(cm.gfilter,tp,LOCATION_GRAVE,0,1,nil) and c:IsRace(RACE_ZOMBIE))) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and not c:IsCode(m) return ((rk.check(c,"BOW")) or (not Duel.IsExistingMatchingCard(cm.gfilter,tp,LOCATION_GRAVE,0,1,nil) and c:IsRace(RACE_ZOMBIE))) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and not c:IsCode(m)
end end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and cm.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and cm.spfilter(chkc,e,tp) end
......
...@@ -83,11 +83,11 @@ function cm.spcon(e,c) ...@@ -83,11 +83,11 @@ function cm.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()
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local g=Duel.GetMatchingGroup(cm.spcost,c:GetControler(),LOCATION_ONFIELD,0,nil) local g=Duel.GetMatchingGroup(cm.spcost,c:GetControler(),LOCATION_GRAVE,0,e:GetHandler())
return g:GetCount()>0 and ft>0 return g:GetCount()>0 and ft>0
end end
function cm.spop(e,tp,eg,ep,ev,re,r,rp,c) function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.GetMatchingGroup(cm.spcost,c:GetControler(),LOCATION_ONFIELD,0,nil) local g=Duel.GetMatchingGroup(cm.spcost,c:GetControler(),LOCATION_GRAVE,0,e:GetHandler())
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
aux.GCheckAdditional=aux.dncheck aux.GCheckAdditional=aux.dncheck
local rg=g:SelectSubGroup(tp,aux.mzctcheck,false,1,1,tp) local rg=g:SelectSubGroup(tp,aux.mzctcheck,false,1,1,tp)
......
...@@ -10,7 +10,7 @@ function c16400026.initial_effect(c) ...@@ -10,7 +10,7 @@ function c16400026.initial_effect(c)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(m,0)) e2:SetDescription(aux.Stringid(m,0))
e2:SetCategory(CATEGORY_REMOVE) e2:SetCategory(CATEGORY_REMOVE)
e2:SetType(EFFECT_TYPE_ACTIVATE) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetCondition(cm.con) e2:SetCondition(cm.con)
...@@ -25,11 +25,12 @@ function c16400026.initial_effect(c) ...@@ -25,11 +25,12 @@ function c16400026.initial_effect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_ATTACK_ANNOUNCE) e3:SetCode(EVENT_ATTACK_ANNOUNCE)
e3:SetRange(LOCATION_SZONE) e3:SetRange(LOCATION_SZONE)
e3:SetCountLimit(1)
e3:SetLabel(1) e3:SetLabel(1)
e3:SetCondition(cm.condition) e3:SetCondition(cm.condition)
e3:SetTarget(cm.target2) e3:SetTarget(cm.target2)
e3:SetOperation(cm.activate) e3:SetOperation(cm.activate)
c:RegisterEffect(e2) c:RegisterEffect(e3)
end end
function cm.con(e,tp,eg,ep,ev,re,r,rp) function cm.con(e,tp,eg,ep,ev,re,r,rp)
local sp=Duel.GetTurnPlayer() local sp=Duel.GetTurnPlayer()
......
...@@ -87,7 +87,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -87,7 +87,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterFlagEffect(tp,m+11,RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(tp,m+11,RESET_PHASE+PHASE_END,0,1)
end end
function cm.filter(c) function cm.filter(c)
return c:IsCanOverlay() return c:IsCanOverlay() and c:IsFaceup()
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_ONFIELD) and cm.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_ONFIELD) and cm.filter(chkc) end
......
...@@ -96,7 +96,7 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -96,7 +96,7 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function cm.thop(e,tp,eg,ep,ev,re,r,rp) function cm.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,cm.thfilter,tp,LOCATION_GRAVE,0,1,1,e:GetHandler()) local g=Duel.SelectMatchingCard(tp,cm.thfilter,tp,LOCATION_GRAVE,0,3,3,e:GetHandler())
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SendtoDeck(g,nil,2,REASON_EFFECT) Duel.SendtoDeck(g,nil,2,REASON_EFFECT)
end end
......
...@@ -24,8 +24,8 @@ function cm.thop(e,tp) ...@@ -24,8 +24,8 @@ function cm.thop(e,tp)
end end
function cm.solvefun(g,tp) function cm.solvefun(g,tp)
local tc=g:GetFirst() local tc=g:GetFirst()
local b1=c:IsType(TYPE_NORMAL) and c:IsRace(RACE_WARRIOR) and c:IsAbleToHand() local b1=tc:IsType(TYPE_NORMAL) and tc:IsRace(RACE_WARRIOR) and tc:IsAbleToHand()
local b2=c:IsSetCard(0xce2) and c:IsAbleToGrave() local b2=tc:IsSetCard(0xce2) and tc:IsAbleToGrave()
if b1 then if b1 then
Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tc) Duel.ConfirmCards(1-tp,tc)
...@@ -41,7 +41,7 @@ function cm.thop1(e,tp) ...@@ -41,7 +41,7 @@ function cm.thop1(e,tp)
end end
function cm.solvefun1(g,tp) function cm.solvefun1(g,tp)
local tc=g:GetFirst() local tc=g:GetFirst()
local b1=c:IsSetCard(0xce2) and c:IsAbleToHand() and (c:IsType(TYPE_TRAP) or c:IsType(TYPE_SPELL)) local b1=tc:IsSetCard(0xce2) and tc:IsAbleToHand() and (tc:IsType(TYPE_TRAP) or tc:IsType(TYPE_SPELL))
if b1 then if b1 then
Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tc) Duel.ConfirmCards(1-tp,tc)
......
...@@ -20,6 +20,7 @@ function c33331554.initial_effect(c) ...@@ -20,6 +20,7 @@ function c33331554.initial_effect(c)
e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_FZONE) e2:SetRange(LOCATION_FZONE)
e2:SetCountLimit(1)
e2:SetCondition(c33331554.con2) e2:SetCondition(c33331554.con2)
e2:SetTarget(c33331554.tg2) e2:SetTarget(c33331554.tg2)
e2:SetOperation(c33331554.op2) e2:SetOperation(c33331554.op2)
...@@ -74,18 +75,18 @@ end ...@@ -74,18 +75,18 @@ end
function c33331554.val2_1(e) function c33331554.val2_1(e)
local tp=e:GetOwnerPlayer() local tp=e:GetOwnerPlayer()
local val1,val2,val3,val4=0,0,0,0 local val1,val2,val3,val4=0,0,0,0
-- if Duel.CheckLocation(tp,LOCATION_MZONE,0) then -- if Duel.CheckLocation(tp,LOCATION_MZONE,0) then
val1=aux.SequenceToGlobal(tp,LOCATION_MZONE,0) val1=aux.SequenceToGlobal(tp,LOCATION_MZONE,0)
-- end -- end
-- if Duel.CheckLocation(tp,LOCATION_MZONE,1) then -- if Duel.CheckLocation(tp,LOCATION_MZONE,1) then
val2=aux.SequenceToGlobal(tp,LOCATION_MZONE,1) val2=aux.SequenceToGlobal(tp,LOCATION_MZONE,1)
-- end -- end
-- if Duel.CheckLocation(tp,LOCATION_MZONE,3) then -- if Duel.CheckLocation(tp,LOCATION_MZONE,3) then
val3=aux.SequenceToGlobal(tp,LOCATION_MZONE,3) val3=aux.SequenceToGlobal(tp,LOCATION_MZONE,3)
-- end -- end
-- if Duel.CheckLocation(tp,LOCATION_MZONE,4) then -- if Duel.CheckLocation(tp,LOCATION_MZONE,4) then
val4=aux.SequenceToGlobal(tp,LOCATION_MZONE,4) val4=aux.SequenceToGlobal(tp,LOCATION_MZONE,4)
-- end -- end
return val1|val2|val3|val4 return val1|val2|val3|val4
end end
-- --
\ No newline at end of file
...@@ -37,16 +37,17 @@ function c33331557.tg2(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -37,16 +37,17 @@ function c33331557.tg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c33331557.tfilter2,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c33331557.tfilter2,tp,LOCATION_DECK,0,1,nil) end
end end
function c33331557.op2(e,tp,eg,ep,ev,re,r,rp) function c33331557.op2(e,tp,eg,ep,ev,re,r,rp)
tp=e:GetHandlerPlayer()
local c=e:GetHandler() local c=e:GetHandler()
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(33331557,1)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(33331557,1))
local sg=Duel.SelectMatchingCard(tp,c33331557.tfilter2,tp,LOCATION_DECK,0,1,1,nil,tp) local sg=Duel.SelectMatchingCard(tp,c33331557.tfilter2,tp,LOCATION_DECK,0,1,1,nil,tp)
local tc=sg:GetFirst() local tc=sg:GetFirst()
local zone=aux.SequenceToGlobal(tp,LOCATION_MZONE,2) local zone=aux.SequenceToGlobal(tp,LOCATION_MZONE,2)
if tc and Duel.MoveToField(tc,tp,tp,LOCATION_FZONE,POS_FACEUP,false) if tc and Duel.MoveToField(tc,tp,tp,LOCATION_FZONE,POS_FACEUP,false) then
and Duel.GetLocationCount(tp,LOCATION_MZONE,tp,LOCATION_REASON_TOFIELD,zone)>0 if Duel.GetLocationCount(tp,LOCATION_MZONE,tp,LOCATION_REASON_TOFIELD,2)>0 and Duel.SelectYesNo(tp,aux.Stringid(33331557,2)) then
and Duel.SelectYesNo(tp,aux.Stringid(33331557,2)) then Duel.MoveSequence(c,2)
Duel.MoveSequence(c,2) end
tc:SetStatus(STATUS_EFFECT_ENABLED,true) tc:SetStatus(STATUS_EFFECT_ENABLED,true)
end end
local e2_1=Effect.CreateEffect(c) local e2_1=Effect.CreateEffect(c)
e2_1:SetType(EFFECT_TYPE_FIELD) e2_1:SetType(EFFECT_TYPE_FIELD)
......
--数码兽究极进化-羁绊 --数码兽究极进化-羁绊
function c50218128.initial_effect(c) function c50218128.initial_effect(c)
aux.AddRitualProcGreater2Code2(c,50218139,50218140) aux.AddRitualProcEqual2Code2(c,50218139,50218140)
--search --search
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
......
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