--Silent Star Renatus function c97569815.initial_effect(c) --untargetable local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_CANNOT_SELECT_BATTLE_TARGET) e1:SetRange(LOCATION_MZONE) e1:SetTargetRange(0,LOCATION_MZONE) e1:SetValue(c97569815.atlimit) c:RegisterEffect(e1) local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_FIELD) e2:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET) e2:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE) e2:SetRange(LOCATION_MZONE) e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) e2:SetTarget(c97569815.tglimit) e2:SetValue(aux.tgoval) c:RegisterEffect(e2) --search local e0=Effect.CreateEffect(c) e0:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e0:SetCode(EVENT_CHAINING) e0:SetRange(LOCATION_MZONE) e0:SetOperation(aux.chainreg) c:RegisterEffect(e0) local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(97569815,1)) e3:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetCode(EVENT_CHAIN_SOLVING) e3:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_NO_TURN_RESET) e3:SetRange(LOCATION_MZONE) e3:SetCountLimit(1) e3:SetCondition(c97569815.thcon) e3:SetTarget(c97569815.thtg) e3:SetOperation(c97569815.thop) c:RegisterEffect(e3) end function c97569815.atlimit(e,c) return c:IsFaceup() and c:IsSetCard(0xd0a1) and c~=e:GetHandler() end function c97569815.tglimit(e,c) return c:IsSetCard(0xd0a1) and c~=e:GetHandler() end function c97569815.thcon(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() if not re:IsHasType(EFFECT_TYPE_ACTIVATE) or c:IsSetCard(0xd0a2) or c:IsType(TYPE_EQUIP) or c:GetFlagEffect(1)<=0 then return false end return c:GetColumnGroup():IsContains(re:GetHandler()) end function c97569815.thfilter(c,rc) return c:IsSetCard(0xd0a2) and not c:IsCode(rc:GetCode()) and c:IsAbleToHand() end function c97569815.thtg(e,tp,eg,ep,ev,re,r,rp,chk) local rc=re:GetHandler() if chk==0 then return rc and Duel.IsExistingMatchingCard(c97569815.thfilter,tp,LOCATION_DECK,0,1,nil,rc) end e:SetLabelObject(rc) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) end function c97569815.thop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) local g=Duel.SelectMatchingCard(tp,c97569815.thfilter,tp,LOCATION_DECK,0,1,1,nil,e:GetLabelObject()) if g:GetCount()>0 then Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end end