--Baby Princess or Gust Vine function c500315980.initial_effect(c) local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(500315980,0)) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetCountLimit(1,500315980) e1:SetTarget(c500315980.target) e1:SetOperation(c500315980.operation) c:RegisterEffect(e1) --spsummon local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(500315980,1)) e3:SetCategory(CATEGORY_SPECIAL_SUMMON) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY) e3:SetCode(EVENT_TO_GRAVE) e3:SetCountLimit(1,500315981) e3:SetCondition(c500315980.spcon) e3:SetTarget(c500315980.sptg) e3:SetOperation(c500315980.spop) c:RegisterEffect(e3) end function c500315980.thfilter(c) return c:IsLevelBelow(4) and c:IsSetCard(0x885a) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() end function c500315980.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_DECK) and c500315980.thfilter(chkc) end if chk==0 then return Duel.IsExistingTarget(c500315980.thfilter,tp,LOCATION_DECK,0,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) local g=Duel.SelectTarget(tp,c500315980.thfilter,tp,LOCATION_DECK,0,1,1,nil) Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0) end function c500315980.operation(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() if tc:IsRelateToEffect(e) then Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,tc) end end function c500315980.spcon(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():IsReason(REASON_EFFECT) and not e:GetHandler():IsReason(REASON_RETURN) end function c500315980.filter(c,e,tp) return c:IsSetCard(0x885a) and c:IsType(TYPE_MONSTER) and not c:IsCode(500315980) and not c:IsCode(160008986) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) end function c500315980.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c500315980.filter(chkc,e,tp) end if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingTarget(c500315980.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local g=Duel.SelectTarget(tp,c500315980.filter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0) end function c500315980.spop(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() if tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP) end end