--夢現の夢魔鏡 local s,id,o=GetID() function s.initial_effect(c) aux.AddCodeList(c,74665651,1050355) --activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE) e1:SetCountLimit(1,25964547+EFFECT_COUNT_CODE_OATH) e1:SetTarget(s.target) e1:SetOperation(s.activate) c:RegisterEffect(e1) end function s.cfilter1(c,tp) return c:IsCode(74665651,1050355) and c:CheckUniqueOnField(tp) and not c:IsForbidden() and c:IsCanPlaceInFieldZone(tp,tp) and Duel.IsExistingMatchingCard(s.cfilter2,tp,LOCATION_HAND+LOCATION_DECK,0,1,c,tp,c:GetCode()) end function s.cfilter2(c,tp,code) return c:IsCode(74665651,1050355) and not c:IsCode(code) and c:CheckUniqueOnField(1-tp) and not c:IsForbidden() and c:IsCanPlaceInFieldZone(tp,1-tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter1,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,tp) end end function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(25964547,0)) local g1=Duel.SelectMatchingCard(tp,s.cfilter1,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,tp) local tc1=g1:GetFirst() if not tc1 then return end Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(25964547,1)) local g2=Duel.SelectMatchingCard(tp,s.cfilter2,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,tp,tc1:GetCode()) local tc2=g2:GetFirst() if Duel.MoveToField(tc1,tp,tp,LOCATION_FZONE,POS_FACEUP,false) then if Duel.MoveToField(tc2,tp,1-tp,LOCATION_FZONE,POS_FACEUP,false) then tc2:SetStatus(STATUS_EFFECT_ENABLED,true) end tc1:SetStatus(STATUS_EFFECT_ENABLED,true) end end