--Symphaerie Riff, Jrako local ref,id=GetID() function ref.initial_effect(c) --Synchro c:EnableReviveLimit() aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1) --Protection local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_CANNOT_BE_BATTLE_TARGET) e1:SetRange(LOCATION_MZONE) e1:SetTargetRange(LOCATION_ONFIELD,0) e1:SetTarget(ref.tgtg) c:RegisterEffect(e1) local e2=e1:Clone() e2:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET) e2:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE) e2:SetValue(aux.tgoval) c:RegisterEffect(e2) --Play Song local e3=Effect.CreateEffect(c) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e3:SetCode(EVENT_SPSUMMON_SUCCESS) e3:SetRange(LOCATION_MZONE) e3:SetCondition(ref.cpcon) e3:SetOperation(ref.cpop) c:RegisterEffect(e3) --Search local e4=Effect.CreateEffect(c) e4:SetDescription(aux.Stringid(id,0)) e4:SetCategory(CATEGORY_SEARCH) e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e4:SetCode(EVENT_SPSUMMON_SUCCESS) e4:SetProperty(EFFECT_FLAG_DELAY) e4:SetCountLimit(1,id) e4:SetTarget(ref.thtg) e4:SetOperation(ref.thop) c:RegisterEffect(e4) end --Protection function ref.tgtg(e,c) return c:IsFaceup() and c:IsSetCard(0x255) and not c:IsCode(id) end --Play Song function ref.cpfilter(c) return c:IsSetCard(0x255) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsFaceup() and c:CheckActivateEffect(false,true,false)~=nil end function ref.cpcon(e,tp,eg,ep,ev,re,r,rp) return rp~=tp and Duel.IsExistingMatchingCard(ref.cpfilter,tp,LOCATION_ONFIELD,0,1,nil) end function ref.cpop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,tp,id) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RESOLVEEFFECT) local g=Duel.SelectMatchingCard(tp,ref.cpfilter,tp,LOCATION_ONFIELD,0,1,1,nil) Duel.Hint(HINT_CARD,1-tp,g:GetFirst():GetOriginalCode()) local te,ceg,cep,cev,cre,cr,crp=g:GetFirst():CheckActivateEffect(false,true,true) Duel.ClearTargetCard() g:GetFirst():CreateEffectRelation(e) local tg=te:GetTarget() if tg then tg(e,tp,ceg,cep,cev,cre,cr,crp,1) end te:SetLabelObject(e:GetLabelObject()) Duel.ClearOperationInfo(0) local op=te:GetOperation() if op then op(e,tp,eg,ep,ev,re,r,rp) end end --Search function ref.thfilter(c) return c:IsSetCard(0x255) and c:IsAbleToHand() and not c:IsCode(id) end function ref.thtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(ref.thfilter,tp,LOCATION_DECK,0,1,nil) end Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) end function ref.thop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) local g=Duel.SelectMatchingCard(tp,ref.thfilter,tp,LOCATION_DECK,0,1,1,nil) if #g>0 and Duel.SendtoHand(g,nil,REASON_EFFECT)~=0 then Duel.ConfirmCards(1-tp,g) end end