--Kitseki Demaina --Script by XGlitchy30 function c88523901.initial_effect(c) --spsummon local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetRange(LOCATION_HAND) e1:SetCode(EVENT_TO_GRAVE) e1:SetCountLimit(1) e1:SetCondition(c88523901.spcon) e1:SetTarget(c88523901.sptg) e1:SetOperation(c88523901.spop) c:RegisterEffect(e1) --synchro material local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e2:SetCode(EVENT_BE_MATERIAL) e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP) e2:SetCondition(c88523901.effectcon) e2:SetOperation(c88523901.effectop) c:RegisterEffect(e2) end --filters function c88523901.cfilter(c,tp) return c:IsPreviousLocation(LOCATION_DECK) and c:GetPreviousControler()==1-tp end --spsummon function c88523901.spcon(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(c88523901.cfilter,1,nil,tp) end function c88523901.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) end function c88523901.spop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end end --synchro material function c88523901.effectcon(e,tp,eg,ep,ev,re,r,rp) return r==REASON_SYNCHRO and e:GetHandler():GetReasonCard():IsSetCard(0x215a) end function c88523901.effectop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local sync=c:GetReasonCard() --Deck Destruction local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(88523901,0)) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetCategory(CATEGORY_DECKDES) e1:SetCode(EVENT_PHASE+PHASE_STANDBY) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1) e1:SetTarget(c88523901.decktg) e1:SetOperation(c88523901.deckop) e1:SetReset(RESET_EVENT+0x1fe0000) sync:RegisterEffect(e1) end --Deck Destruction function c88523901.decktg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,1-tp,1) end function c88523901.deckop(e,tp,eg,ep,ev,re,r,rp) Duel.DiscardDeck(1-tp,1,REASON_EFFECT) end