--Rrua, Draco of Eternna function c213020.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(213020,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_HAND) e1:SetCountLimit(1,213020) e1:SetCondition(c213020.spcon) e1:SetTarget(c213020.sptg) e1:SetOperation(c213020.spop) c:RegisterEffect(e1) --destroy replace local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(213020,1)) e2:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD) e2:SetCode(EFFECT_DESTROY_REPLACE) e2:SetRange(LOCATION_MZONE+LOCATION_GRAVE) e2:SetCountLimit(1,213021) e2:SetTarget(c213020.reptg) e2:SetValue(c213020.repval) e2:SetOperation(c213020.repop) c:RegisterEffect(e2) end function c213020.cfilter(c) return c:IsFaceup() and c:IsSetCard(0x2700) and c:IsType(TYPE_MONSTER) end function c213020.spcon(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(c213020.cfilter,tp,LOCATION_ONFIELD,0,1,nil) end function c213020.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) end function c213020.spop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end end function c213020.repfilter(c,tp) return c:IsFaceup() and c:IsControler(tp) and c:IsLocation(LOCATION_ONFIELD) and c:IsSetCard(0x2700) and c:IsReason(REASON_BATTLE+REASON_EFFECT) and not c:IsReason(REASON_REPLACE) end function c213020.reptg(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() if chk==0 then return eg:IsExists(c213020.repfilter,1,c,tp) and c:IsAbleToRemove() and not c:IsStatus(STATUS_DESTROY_CONFIRMED) end return Duel.SelectEffectYesNo(tp,c,96) end function c213020.repval(e,c) return c213020.repfilter(c,e:GetHandlerPlayer()) end function c213020.repop(e,tp,eg,ep,ev,re,r,rp) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT+REASON_REPLACE) end