--Murafiore Elyriano --Script by XGlitchy30 function c38648108.initial_effect(c) --pendulum summon aux.EnablePendulumAttribute(c) --indestructable local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(38648108,0)) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetCode(EVENT_FREE_CHAIN) e1:SetRange(LOCATION_PZONE) e1:SetCountLimit(1) e1:SetCost(c38648108.cost) e1:SetOperation(c38648108.operation) c:RegisterEffect(e1) --spsummon local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(38648108,1)) e2:SetType(EFFECT_TYPE_TRIGGER_F+EFFECT_TYPE_FIELD) e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetCode(EVENT_PHASE+PHASE_END) e2:SetRange(LOCATION_PZONE) e2:SetCountLimit(1) e2:SetTarget(c38648108.sumtg) e2:SetOperation(c38648108.sumop) c:RegisterEffect(e2) end --filters function c38648108.cfilter(c) return c:IsFaceup() and c:IsType(TYPE_NORMAL) end --search function c38648108.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.CheckReleaseGroup(tp,c38648108.cfilter,1,nil) end local cg=Duel.SelectReleaseGroup(tp,c38648108.cfilter,1,1,nil) Duel.Release(cg,REASON_COST) end function c38648108.operation(e,tp,eg,ep,ev,re,r,rp) local e1=Effect.CreateEffect(e:GetHandler()) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e1:SetTargetRange(LOCATION_PZONE,0) e1:SetTarget(c38648108.effecttg) e1:SetValue(1) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) e:GetHandler():RegisterFlagEffect(38648105,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,0,0) end function c38648108.effecttg(e,c) return c:IsFaceup() end --spsummon function c38648108.sumtg(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and c:GetFlagEffect(38648105)>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0) end function c38648108.sumop(e,tp,eg,ep,ev,re,r,rp) if e:GetHandler():IsRelateToEffect(e) then Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP) end end