--Sunseeker Trumpeter function c96770217.initial_effect(c) --summon with no tribute local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(96770217,0)) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetCode(EFFECT_SUMMON_PROC) e1:SetCondition(c96770217.ntcon) c:RegisterEffect(e1) --atk local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetCode(EFFECT_SUMMON_COST) e2:SetOperation(c96770217.atkop) c:RegisterEffect(e2) --search local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(96770217,1)) e3:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP) e3:SetCode(EVENT_SUMMON_SUCCESS) e3:SetCountLimit(1,96770217) e3:SetTarget(c96770217.target) e3:SetOperation(c96770217.operation) c:RegisterEffect(e3) local e4=e3:Clone() e4:SetCode(EVENT_SPSUMMON_SUCCESS) c:RegisterEffect(e4) end function c96770217.ntcon(e,c,minc) if c==nil then return true end return minc==0 and c:GetLevel()>4 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 end function c96770217.atkcon(e) return e:GetHandler():GetMaterialCount()==0 end function c96770217.atkop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_SET_BASE_ATTACK) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetRange(LOCATION_MZONE) e1:SetCondition(c96770217.atkcon) e1:SetValue(1400) e1:SetReset(RESET_EVENT+0xff0000) c:RegisterEffect(e1) end function c96770217.filter(c) return c:IsSetCard(0xff7) and c:IsAbleToHand() end function c96770217.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>3 end end function c96770217.operation(e,tp,eg,ep,ev,re,r,rp,chk) if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)<4 then return end local g=Duel.GetDecktopGroup(tp,4) Duel.ConfirmCards(tp,g) if g:IsExists(c96770217.filter,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(96770217,2)) then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) local sg=g:FilterSelect(tp,c96770217.filter,1,1,nil) Duel.DisableShuffleCheck() Duel.SendtoHand(sg,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,sg) Duel.ShuffleHand(tp) Duel.SortDecktop(tp,tp,3) else Duel.SortDecktop(tp,tp,4) end end