--Radiant Future local s,id=GetID() function s.initial_effect(c) local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DRAW) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,id+EFFECT_COUNT_CODE_OATH) e1:SetTarget(s.target) e1:SetOperation(s.activate) c:RegisterEffect(e1) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end end function s.activate(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCondition(s.regcon) e1:SetOperation(s.regop) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e2:SetCode(EVENT_PHASE+PHASE_END) e2:SetCountLimit(1) e2:SetCondition(s.effcon) e2:SetOperation(s.effop) e2:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e2,tp) e1:SetLabelObject(e2) end function s.regcon(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(Card.IsSummonType,1,nil,SUMMON_TYPE_TIMELEAP) end function s.regop(e,tp,eg,ep,ev,re,r,rp) local ct=e:GetLabelObject():GetLabel() e:GetLabelObject():SetLabel(ct+1) end function s.effcon(e,tp,eg,ep,ev,re,r,rp) return e:GetLabel()>0 end function s.spfilter(c,e,tp,ft) return c:IsType(TYPE_TIMELEAP) and c:IsFutureBelow(ft+1) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0 end function s.effop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,0,id) local count=math.min(3,e:GetLabel()) if Duel.IsPlayerCanDraw(tp,1) then Duel.Draw(tp,count,REASON_EFFECT) else if Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp,count) and Duel.SelectYesNo(tp,914) then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,count) if g:GetCount()>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end end end end