--Shogun Puntodifuoco --Script by XGlitchy30 local cid,id=GetID() function cid.initial_effect(c) --fusion summon aux.AddFusionProcFunRep(c,aux.FilterBoolFunction(Card.IsFusionSetCard,0xb05),2,true) c:EnableReviveLimit() --search local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) e1:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCondition(cid.sccon) e1:SetTarget(cid.sctg) e1:SetOperation(cid.scop) c:RegisterEffect(e1) --banish local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,1)) e2:SetCategory(CATEGORY_REMOVE) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetCode(EVENT_FREE_CHAIN) e2:SetRange(LOCATION_MZONE) e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE) e2:SetCountLimit(1) e2:SetTarget(cid.rmtg) e2:SetOperation(cid.rmop) c:RegisterEffect(e2) end --filters function cid.scfilter(c) return c:IsSetCard(0xb05) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() end function cid.targfilter(c) return c:IsFaceup() and c:IsDisabled() end function cid.rmfilter(c,code) return c:IsCode(code) and c:IsAbleToRemove() end --search function cid.sccon(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION) end function cid.sctg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(cid.scfilter,tp,LOCATION_DECK,0,1,nil) end Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) end function cid.scop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) local g=Duel.SelectMatchingCard(tp,cid.scfilter,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 --banish function cid.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and cid.targfilter(chkc) end if chk==0 then return Duel.IsExistingTarget(cid.targfilter,tp,0,LOCATION_ONFIELD,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) Duel.SelectTarget(tp,cid.targfilter,tp,0,LOCATION_ONFIELD,1,1,nil) end function cid.rmop(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() if tc and tc:IsRelateToEffect(e) then local rg=Duel.GetMatchingGroup(cid.rmfilter,tp,0,LOCATION_DECK,nil,tc:GetCode()) if rg:GetCount()>0 then local rc=rg:Select(1-tp,1,1,nil) Duel.Remove(rc,POS_FACEUP,REASON_EFFECT) else if tc:IsType(TYPE_EXTRA) then return end local cg=Duel.GetFieldGroup(1-tp,LOCATION_DECK,0) Duel.ConfirmCards(tp,cg) end end end