Commit 93def8e3 authored by tsubaki's avatar tsubaki

20513

parent 3660e173
Pipeline #32877 passed with stage
in 9 seconds
......@@ -23,7 +23,6 @@ function s.initial_effect(c)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1) -- 1回合1次
e2:SetCondition(s.thcon2)
e2:SetTarget(s.thtg2)
e2:SetOperation(s.thop2)
......@@ -89,12 +88,18 @@ end
function s.thfilter(c)
return c:IsSetCard(0x1828) and c:IsAbleToHand()
end
function s.ctfilter(c)
return c:GetOriginalCode()==20123 and c:IsFaceup()
end
function s.thtg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.thfilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(s.thfilter,tp,LOCATION_GRAVE,0,1,nil) end
local ct=0
if Duel.IsExistingMatchingCard(s.ctfilter,tp,LOCATION_SZONE,0,1,nil) then ct=1 end
if chk==0 then return e:GetHandler():GetFlagEffect(20123)<=ct and Duel.IsExistingTarget(s.thfilter,tp,LOCATION_GRAVE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local g=Duel.SelectTarget(tp,s.thfilter,tp,LOCATION_GRAVE,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
e:GetHandler():RegisterFlagEffect(20123,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,0,1)
end
function s.thop2(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
......
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