Commit b9e82050 authored by Tachibana's avatar Tachibana

ndyd

parent 0c842e97
--对过去的告别
function c20000004.initial_effect(c)
aux.AddCodeList(c,20000000,20000002)
aux.AddCodeList(c,20000002)
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY+CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
......@@ -29,20 +29,20 @@ end
function c20000004.tg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chkc then return chkc:IsOnField() and c20000004.cof2(chkc) and chkc~=e:GetHandler() end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c20000004.tgf1,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp)
and Duel.IsExistingTarget(c20000004.cof2,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil) end
and Duel.IsExistingMatchingCard(c20000004.tgf1,tp,LOCATION_DECK+LOCATION_REMOVED,0,1,nil,e,tp)
and Duel.IsExistingTarget(c20000004.cof2,tp,LOCATION_DECK,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local tc=Duel.SelectTarget(tp,c20000004.cof2,tp,LOCATION_ONFIELD,0,1,1,e:GetHandler())
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK+LOCATION_GRAVE)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK+LOCATION_REMOVED)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,tc,1,tp,LOCATION_ONFIELD)
end
function c20000004.op1(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
local g=Duel.GetMatchingGroup(c20000004.tgf1,tp,LOCATION_DECK+LOCATION_GRAVE,0,nil,e,tp)
local g=Duel.GetMatchingGroup(c20000004.tgf1,tp,LOCATION_DECK+LOCATION_REMOVED,0,nil,e,tp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
if g:GetCount()>0 and Duel.Destroy(tc,REASON_EFFECT)~=0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c20000004.tgf1,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil,e,tp)
local g=Duel.SelectMatchingCard(tp,c20000004.tgf1,tp,LOCATION_DECK+LOCATION_REMOVED,0,1,1,nil,e,tp)
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end
......
......@@ -40,7 +40,7 @@ function cm.initial_effect(c)
e2:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,m+13)
e2:SetCountLimit(1,m+16)
e2:SetTarget(function(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.tf21,tp,LOCATION_GRAVE,0,1,nil) and Duel.IsExistingMatchingCard(cm.tf22,tp,LOCATION_DECK,0,1,nil) end
local g=Duel.SelectMatchingCard(tp,cm.tf21,tp,LOCATION_GRAVE,0,1,1,nil)
......
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