Commit e0d48ac7 authored by Tachibana's avatar Tachibana

nmbd

parent 9da51cf2
...@@ -4,7 +4,7 @@ local cm=_G["c"..m] ...@@ -4,7 +4,7 @@ local cm=_G["c"..m]
Duel.LoadScript("c16199990.lua") Duel.LoadScript("c16199990.lua")
function cm.initial_effect(c) function cm.initial_effect(c)
local e1=rsef.ACT(c,nil,nil,{1,m,1},"se,th,tg",nil,nil,nil,rsop.target(cm.thfilter,"th",LOCATION_DECK),cm.thop) local e1=rsef.ACT(c,nil,nil,{1,m,1},"se,th,tg",nil,nil,nil,rsop.target(cm.thfilter,"th",LOCATION_DECK),cm.thop)
local e2=rsef.I(c,nil,{1,m+100},"th",nil,LOCATION_FZONE,nil,rsop.target(cm.thfilter1,"th",LOCATION_DECK+LOCATION_GRAVE),cm.thop1) local e2=rsef.I(c,nil,{1,m+100},"th",nil,LOCATION_SZONE,nil,rsop.target(cm.thfilter1,"th",LOCATION_DECK+LOCATION_GRAVE),cm.thop1)
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(m,1)) e3:SetDescription(aux.Stringid(m,1))
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
......
...@@ -72,15 +72,15 @@ function cm.desfilter(c) ...@@ -72,15 +72,15 @@ function cm.desfilter(c)
end end
---- ----
function cm.imfilter(c,e,tp) function cm.imfilter(c,e,tp)
return c:IsSetCard(0xa82) and c:IsAbleToHand() return c:IsSetCard(0xa82) and c:IsAbleToHand() and c:IsFaceup()
end end
function cm.imtg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.imtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.imfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil,e,tp) end if chk==0 then return Duel.IsExistingMatchingCard(cm.imfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil,e,tp) end
local sg=Duel.GetMatchingGroup(cm.imfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil,e,tp) local sg=Duel.GetMatchingGroup(cm.imfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,sg,tp,LOCATION_ONFIELD) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,sg,tp,LOCATION_MZONE)
end end
function cm.imop(e,tp,eg,ep,ev,re,r,rp) function cm.imop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(cm.imfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil,e,tp) local g=Duel.GetMatchingGroup(cm.imfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,e,tp)
local tc=g:GetFirst() local tc=g:GetFirst()
while tc do while tc do
local tep=tc:GetControler() local tep=tc:GetControler()
......
...@@ -10,14 +10,14 @@ function c60159919.initial_effect(c) ...@@ -10,14 +10,14 @@ function c60159919.initial_effect(c)
e1:SetOperation(c60159919.activate) e1:SetOperation(c60159919.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c60159919.filter(c,e,tp) function c60159919.spfilter1(c,e,tp)
return c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,1-tp)
end end
function c60159919.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c60159919.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.GetMZoneCount(tp)>0 and Duel.IsPlayerCanDraw(tp,1) if chk==0 then return Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0 and Duel.IsPlayerCanDraw(tp,1)
and Duel.IsExistingTarget(c60159919.filter,tp,0,LOCATION_GRAVE,1,nil,e,tp) end and Duel.IsExistingTarget(c60159919.spfilter1,tp,0,LOCATION_GRAVE,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c60159919.filter,tp,0,LOCATION_GRAVE,1,1,nil,e,tp) local g=Duel.SelectTarget(tp,c60159919.spfilter1,tp,0,LOCATION_GRAVE,1,1,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
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