--Lilacia, Whirlviner of Gust VINE --Scripted by Specific because he had nothing better to do ¯\_(ツ)_/¯ function c500310099.initial_effect(c) --Link Summon aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkAttribute,ATTRIBUTE_WIND),2,2,c500310099.lcheck) c:EnableReviveLimit() --ATK & DEF Up local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetRange(LOCATION_MZONE) e1:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) e1:SetTarget(c500310099.atktg) e1:SetValue(600) c:RegisterEffect(e1) local e2=e1:Clone() e2:SetCode(EFFECT_UPDATE_DEFENSE) c:RegisterEffect(e2) --To Hand local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(500310099,0)) e3:SetCategory(CATEGORY_TOGRAVE+CATEGORY_TOHAND+CATEGORY_SEARCH) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetCode(EVENT_SPSUMMON_SUCCESS) e3:SetProperty(EFFECT_FLAG_DELAY) e3:SetCountLimit(1,500310099) e3:SetCondition(c500310099.thcon) e3:SetTarget(c500310099.thtg) e3:SetOperation(c500310099.thop) c:RegisterEffect(e3) --Special Summon local e4=Effect.CreateEffect(c) e4:SetDescription(aux.Stringid(500310099,0)) e4:SetCategory(CATEGORY_SPECIAL_SUMMON) e4:SetType(EFFECT_TYPE_IGNITION) e4:SetRange(LOCATION_GRAVE) e4:SetCountLimit(1,500000001) e4:SetCondition(c500310099.spcon) e4:SetTarget(c500310099.sptg) e4:SetOperation(c500310099.spop) c:RegisterEffect(e4) end --Link Summon function c500310099.lcheck(g,lc) return g:IsExists(Card.IsLinkSetCard,1,nil,0x85a) end --ATK & DEF Up function c500310099.atktg(e,c) return e:GetHandler():GetLinkedGroup():IsContains(c) and c:IsType(TYPE_FUSION) end --To Hand function c500310099.thcon(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK) end function c500310099.tgfilter(c,tp) return c:IsAbleToGrave() end function c500310099.thfilter(c) return c:IsSetCard(0x85a) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand() end function c500310099.thtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(c500310099.tgfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,nil,tp) and Duel.IsExistingMatchingCard(c500310099.thfilter,tp,LOCATION_DECK,0,1,nil) end Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_HAND+LOCATION_ONFIELD) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) end function c500310099.thop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) local g=Duel.SelectMatchingCard(tp,c500310099.tgfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,1,nil,tp) local tc=g:GetFirst() if tc and Duel.SendtoGrave(tc,REASON_EFFECT)~=0 and tc:IsLocation(LOCATION_GRAVE) then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) local sg=Duel.SelectMatchingCard(tp,c500310099.thfilter,tp,LOCATION_DECK,0,1,1,nil) if sg:GetCount()>0 then Duel.SendtoHand(sg,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,sg) end end end --Special Summon function c500310099.cfilter(c) return c:IsFaceup() and c:IsSetCard(0x85a) and c:IsType(TYPE_FUSION) end function c500310099.spcon(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(c500310099.cfilter,tp,LOCATION_MZONE,0,1,nil) end function c500310099.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) end function c500310099.spop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0 then local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetCode(EFFECT_CANNOT_BE_LINK_MATERIAL) e1:SetValue(1) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) end end