Commit e0d48ac7 authored by Tachibana's avatar Tachibana

nmbd

parent 9da51cf2
......@@ -4,7 +4,7 @@ local cm=_G["c"..m]
Duel.LoadScript("c16199990.lua")
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 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)
e3:SetDescription(aux.Stringid(m,1))
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
......
......@@ -72,15 +72,15 @@ function cm.desfilter(c)
end
----
function cm.imfilter(c,e,tp)
return c:IsSetCard(0xa82) and c:IsAbleToHand()
return c:IsSetCard(0xa82) and c:IsAbleToHand() and c:IsFaceup()
end
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
local sg=Duel.GetMatchingGroup(cm.imfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,sg,tp,LOCATION_ONFIELD)
local sg=Duel.GetMatchingGroup(cm.imfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,sg,tp,LOCATION_MZONE)
end
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()
while tc do
local tep=tc:GetControler()
......
--朔时的祈愿
function c60159919.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_DRAW)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_PLAYER_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c60159919.target)
e1:SetOperation(c60159919.activate)
c:RegisterEffect(e1)
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_DRAW)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_PLAYER_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c60159919.target)
e1:SetOperation(c60159919.activate)
c:RegisterEffect(e1)
end
function c60159919.filter(c,e,tp)
return c:IsCanBeSpecialSummoned(e,0,tp,false,false)
function c60159919.spfilter1(c,e,tp)
return c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,1-tp)
end
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)
and Duel.IsExistingTarget(c60159919.filter,tp,0,LOCATION_GRAVE,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c60159919.filter,tp,0,LOCATION_GRAVE,1,1,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
if chk==0 then return Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0 and Duel.IsPlayerCanDraw(tp,1)
and Duel.IsExistingTarget(c60159919.spfilter1,tp,0,LOCATION_GRAVE,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
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_DRAW,nil,0,tp,1)
end
function c60159919.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
Duel.SpecialSummon(tc,0,tp,1-tp,false,false,POS_FACEUP)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
Duel.SpecialSummon(tc,0,tp,1-tp,false,false,POS_FACEUP)
Duel.Draw(tp,1,REASON_EFFECT)
end
end
end
\ No newline at end of file
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