--Nazarelic Ananta function c212570.initial_effect(c) --synchro summon c:EnableReviveLimit() aux.AddSynchroMixProcedure(c,c212570.matfilter1,nil,nil,aux.NonTuner(Card.IsSetCard,0x2609),1,99) --return local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(212570,2)) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetCondition(c212570.condition) e1:SetOperation(c212570.regop) c:RegisterEffect(e1) --swap local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(212570,0)) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetCode(EVENT_FREE_CHAIN) e2:SetRange(LOCATION_MZONE) e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP) e2:SetHintTiming(TIMING_DAMAGE_STEP+TIMING_END_PHASE) e2:SetCountLimit(1,212570) e2:SetTarget(c212570.target) e2:SetOperation(c212570.operation) c:RegisterEffect(e2) --control local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(212570,1)) e3:SetCategory(CATEGORY_CONTROL) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY) e3:SetCode(EVENT_TO_DECK) e3:SetCountLimit(1,212571) e3:SetCondition(c212570.rtcon) e3:SetTarget(c212570.cttg) e3:SetOperation(c212570.ctop) c:RegisterEffect(e3) end function c212570.matfilter1(c) return c:IsSynchroType(TYPE_TUNER) or (c:IsSynchroType(TYPE_SPIRIT) ) end function c212570.condition(e) return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO) end function c212570.regop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TOHAND) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1) e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetTarget(c212570.rettg) e1:SetOperation(c212570.retop) e1:SetReset(RESET_EVENT+0x1ec0000+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) end function c212570.rettg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end Duel.SetOperationInfo(0,CATEGORY_TOHAND,e:GetHandler(),1,0,0) end function c212570.retop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() if c:IsRelateToEffect(e) then Duel.SendtoHand(c,nil,REASON_EFFECT) end end function c212570.filter(c) return c:IsFaceup() and c:IsDefenseAbove(0) end function c212570.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and c212570.filter(chkc) end if chk==0 then return Duel.IsExistingTarget(c212570.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.SelectTarget(tp,c212570.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil) end function c212570.operation(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() if tc:IsFaceup() and tc:IsRelateToEffect(e) then local atk=tc:GetAttack() local def=tc:GetDefense() local e1=Effect.CreateEffect(e:GetHandler()) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_SET_ATTACK_FINAL) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetValue(def) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) local e2=e1:Clone() e2:SetCode(EFFECT_SET_DEFENSE_FINAL) e2:SetValue(atk) tc:RegisterEffect(e2) end end function c212570.rtfilter(c) return c:IsFaceup() and c:IsSetCard(0x2609) end function c212570.rtcon(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(c212570.rtfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end function c212570.ctfilter(c) return c:IsControlerCanBeChanged() end function c212570.cttg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c212570.ctfilter(chkc) end if chk==0 then return Duel.IsExistingTarget(c212570.ctfilter,tp,0,LOCATION_MZONE,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL) local g=Duel.SelectTarget(tp,c212570.ctfilter,tp,0,LOCATION_MZONE,1,1,nil) Duel.SetOperationInfo(0,CATEGORY_CONTROL,g,1,0,0) end function c212570.ctop(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() if tc:IsRelateToEffect(e) then Duel.GetControl(tc,tp,PHASE_END,2) end end