--Kitseki Florenne --Script by XGlitchy30 function c88523886.initial_effect(c) --search local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(88523886,0)) e1:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP) e1:SetCountLimit(1,88523886) e1:SetTarget(c88523886.sctg) e1:SetOperation(c88523886.scop) c:RegisterEffect(e1) local e2=e1:Clone() e2:SetCode(EVENT_SPSUMMON_SUCCESS) c:RegisterEffect(e2) end --filters function c88523886.scfilter(c) return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x215a) and c:IsAbleToHand() end --search function c88523886.sctg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(c88523886.scfilter,tp,LOCATION_DECK,0,1,nil) end Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) end function c88523886.scop(e,tp,eg,ep,ev,re,r,rp) if not Duel.IsExistingMatchingCard(c88523886.scfilter,tp,LOCATION_DECK,0,1,nil) then return end if Duel.IsPlayerCanDiscardDeck(1-tp,3) then if Duel.SelectYesNo(1-tp,aux.Stringid(88523886,1)) then Duel.DiscardDeck(1-tp,3,REASON_EFFECT) else Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) local g1=Duel.SelectMatchingCard(tp,c88523886.scfilter,tp,LOCATION_DECK,0,1,1,nil) if g1:GetCount()>0 then Duel.SendtoHand(g1,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g1) end end else Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) local g2=Duel.SelectMatchingCard(tp,c88523886.scfilter,tp,LOCATION_DECK,0,1,1,nil) if g2:GetCount()>0 then Duel.SendtoHand(g2,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g2) end end end