--E.V.A Origin function c213100.initial_effect(c) --link summon c:EnableReviveLimit() aux.AddLinkProcedure(c,c213100.matfilter,1,1) --search local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(213100,0)) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetCountLimit(1,213100) e1:SetRange(LOCATION_MZONE) e1:SetTarget(c213100.thtg) e1:SetOperation(c213100.thop) c:RegisterEffect(e1) --special summon local e5=Effect.CreateEffect(c) e5:SetDescription(aux.Stringid(213100,1)) e5:SetCategory(CATEGORY_SPECIAL_SUMMON) e5:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e5:SetProperty(EFFECT_FLAG_DELAY) e5:SetCountLimit(1,213101) e5:SetCode(EVENT_DESTROYED) e5:SetCondition(c213100.spcon2) e5:SetTarget(c213100.sptg2) e5:SetOperation(c213100.spop2) c:RegisterEffect(e5) end function c213100.matfilter(c,lc,sumtype,tp) return c:IsLevelBelow(4) and c:IsLinkSetCard(0x258) end function c213100.filter(c,e,tp) return c:IsSetCard(0x258) and c:IsAbleToHand() end function c213100.thtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(c213100.filter,tp,LOCATION_DECK,0,1,nil,e,tp) and Duel.IsExistingMatchingCard(aux.TRUE,tp,LOCATION_HAND,0,1,nil) end Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,1,tp,LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) end function c213100.thop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) local dg=Duel.SelectMatchingCard(tp,aux.TRUE,tp,LOCATION_HAND,0,1,1,nil) if dg:GetCount()==0 then return end if Duel.Destroy(dg,REASON_EFFECT)~=0 then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) local g=Duel.SelectMatchingCard(tp,c213100.filter,tp,LOCATION_DECK,0,1,1,nil) if g:GetCount()>0 then Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end end end function c213100.spcon2(e,tp,eg,ep,ev,re,r,rp) return bit.band(r,REASON_EFFECT+REASON_BATTLE)~=0 end function c213100.spfilter(c,e,tp) return c:IsCode(212110) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function c213100.sptg2(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return not Duel.IsPlayerAffectedByEffect(tp,59822133) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsPlayerCanSpecialSummonMonster(tp,212100,0x258,0x4011,800,800,1,RACE_FAIRY,ATTRIBUTE_DARK) end Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0) end function c213100.spop2(e,tp,eg,ep,ev,re,r,rp) if Duel.IsPlayerAffectedByEffect(tp,59822133) then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)>1 and Duel.IsPlayerCanSpecialSummonMonster(tp,212100,0x258,0x4011,800,800,1,RACE_FAIRY,ATTRIBUTE_DARK) then for i=1,1 do local token=Duel.CreateToken(tp,212100) Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP) end Duel.SpecialSummonComplete() end end