Commit c9b6010c authored by 聖園ミカ's avatar 聖園ミカ 🐟

byd

parent 8a711b33
Pipeline #29939 passed with stages
in 26 minutes and 39 seconds
......@@ -40,9 +40,9 @@ function c62699979.initial_effect(c)
e3:SetCode(EVENT_LEAVE_FIELD)
e3:SetProperty(EFFECT_FLAG_DELAY)
e3:SetCountLimit(1,62699979+100)
e3:SetCondition(c62699979.spcon)
e3:SetTarget(c62699979.sptg)
e3:SetOperation(c62699979.spop)
e3:SetCondition(c62699979.spcon2)
e3:SetTarget(c62699979.sptg2)
e3:SetOperation(c62699979.spop2)
c:RegisterEffect(e3)
Duel.AddCustomActivityCounter(62699979,ACTIVITY_SPSUMMON,c62699979.counterfilter)
Duel.AddCustomActivityCounter(62699979,ACTIVITY_SUMMON,c62699979.counterfilter)
......@@ -136,21 +136,21 @@ end
function c62699979.turncon(e)
return Duel.GetTurnCount()~=e:GetLabel()
end
function c62699979.spcon(e,tp,eg,ep,ev,re,r,rp)
function c62699979.spcon2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsPreviousControler(tp) and c:GetReasonPlayer()==1-tp
end
function c62699979.spfilter(c,e,tp)
function c62699979.spfilter2(c,e,tp)
return c:IsCode(62699999) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
end
function c62699979.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c62699979.spfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil,e,tp) end
function c62699979.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c62699979.spfilter2,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE+LOCATION_REMOVED)
end
function c62699979.spop(e,tp,eg,ep,ev,re,r,rp)
function c62699979.spop2(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c62699979.spfilter),tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil,e,tp)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c62699979.spfilter2),tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil,e,tp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
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