--Symphaerie Baseline, Dour local ref,id=GetID() function ref.initial_effect(c) --Search local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) e1:SetCategory(CATEGORY_SEARCH) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCountLimit(1,id) e1:SetTarget(ref.thtg) e1:SetOperation(ref.thop) c:RegisterEffect(e1) local e2=e1:Clone() e2:SetCode(EVENT_SPSUMMON_SUCCESS) c:RegisterEffect(e2) --Float local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,1)) e3:SetCategory(CATEGORY_SPECIAL_SUMMON) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetCode(EVENT_LEAVE_FIELD) e3:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL+EFFECT_FLAG_DELAY) e3:SetRange(LOCATION_GRAVE) e3:SetCountLimit(1,{id,1}) e3:SetCondition(ref.spcon) e3:SetCost(aux.bfgcost) e3:SetTarget(ref.sptg) e3:SetOperation(ref.spop) c:RegisterEffect(e3) 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 --Float function ref.cfilter(c,tp,rp) return c:IsPreviousLocation(LOCATION_MZONE) and c:IsType(TYPE_SYNCHRO) --c:GetPreviousSequence()>4 end function ref.spcon(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(ref.cfilter,1,nil,tp,rp) and rp~=tp end function ref.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSpecialSummonable,tp,LOCATION_EXTRA+LOCATION_GRAVE,0,1,nil) end end function ref.spop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.SelectMatchingCard(tp,Card.IsSpecialSummonable,tp,LOCATION_EXTRA+LOCATION_GRAVE,0,1,1,nil) if #g>0 then --[[local e1=Effect.CreateEffect(e:GetHandler()) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetCode(EFFECT_SEND_REPLACE) e1:SetTarget(ref.reptg) e1:SetValue(ref.repval) e1:SetReset(RESET_EVENT+EVENT_ADJUST) Duel.RegisterEffect(e1,tp) local e2=Effect.CreateEffect(e:GetHandler()) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e2:SetCode(EVENT_SPSUMMON_SUCCESS) e2:SetLabelObject(e1) e2:SetOperation(function(e) e:GetLabelObject():Reset() e:Reset() end) Duel.RegisterEffect(e2,tp)]] Duel.SpecialSummonRule(tp,g:GetFirst()) end end function ref.repfilter(c) return c:GetDestination()==LOCATION_GRAVE and c:IsAbleToHand() end function ref.reptg(e,tp,eg,ep,ev,re,r,rp,chk) local g=eg:Filter(ref.repfilter,nil) if chk==0 then return #g>0 end Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) return true end function ref.repval(e,c) return ref.repfilter(c) end