--Paracyclis Future Burst local s,id=GetID() function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:Desc(0) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,RELEVANT_TIMINGS) e1:SetTarget(s.target) e1:SetOperation(s.activate) e1:SetCountLimit(1,id) c:RegisterEffect(e1) --act in hand local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetCode(EFFECT_TRAP_ACT_IN_HAND) e2:SetCondition(s.handcon) c:RegisterEffect(e2) --set local GYCheck=aux.AddThisCardInGraveAlreadyCheck(c) local e3=Effect.CreateEffect(c) e3:Desc(1) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetProperty(EFFECT_FLAG_DELAY) e3:SetCode(EVENT_CHANGE_POS) e3:SetRange(LOCATION_GRAVE) e3:SetLabelObject(GYCheck) e3:SetCondition(s.setcon) e3:SetTarget(s.settg) e3:SetOperation(s.setop) e3:SetCountLimit(1,id+100) c:RegisterEffect(e3) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) local excg=Duel.GetMatchingGroup(Card.IsPosition,tp,0,LOCATION_MZONE,nil,POS_FACEDOWN_DEFENSE) if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and not excg:IsContains(chkc) end if chk==0 then return #excg>0 and Duel.IsExistingTarget(aux.TRUE,tp,0,LOCATION_ONFIELD,1,excg) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) local g=Duel.SelectTarget(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,math.min(2,#excg),excg) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,#g,1-tp,LOCATION_ONFIELD) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetTargetCards() if #g>0 then Duel.Destroy(tg,REASON_EFFECT) end end function s.handfilter(c) return c:IsSetCard(0x308) and c:IsFaceup() end function s.handcon(e) local tp=e:GetHandlerPlayer() return Duel.IsExistingMatchingCard(s.handfilter,tp,LOCATION_MZONE,0,1,nil) end function s.cfilter(c,se) return not c:IsPreviousPosition(POS_FACEDOWN) and c:IsPosition(POS_FACEDOWN) and (se==nil or c:GetReasonEffect()~=se) end function s.setcon(e,tp,eg,ep,ev,re,r,rp) local se=e:GetLabelObject():GetLabelObject() return eg:IsExists(s.cfilter,2,nil,se) and re and re:GetHandler():IsSetCard(0x308) end function s.settg(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() if chk==0 then return c:IsSSetable() end Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,c,1,0,0) end function s.setop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() if c:IsRelateToChain() and c:IsSSetable() then Duel.SSet(tp,c) local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_LEAVE_FIELD_REDIRECT) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetReset(RESET_EVENT+RESETS_REDIRECT_FIELD) e1:SetValue(LOCATION_REMOVED) c:RegisterEffect(e1) end end