--This file was automatically coded by Kinny's Numeron Code~! local ref=_G['c'..28916167] local id=28916167 function ref.initial_effect(c) c:SetUniqueOnField(1,0,id) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --Effect 0 local e0=Effect.CreateEffect(c) e0:SetCategory(CATEGORY_TODECK+CATEGORY_DRAW+CATEGORY_SPECIAL_SUMMON) e0:SetType(EFFECT_TYPE_QUICK_O) e0:SetRange(LOCATION_SZONE) e0:SetCode(EVENT_FREE_CHAIN) e0:SetCountLimit(1) e0:SetCost(ref.cost0) e0:SetTarget(ref.target0) e0:SetOperation(ref.operation0) c:RegisterEffect(e0) --draw local e3=Effect.CreateEffect(c) e3:SetCategory(CATEGORY_DRAW) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e3:SetCode(EVENT_FLIP) e3:SetRange(LOCATION_SZONE) e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e3:SetCountLimit(1) e3:SetCondition(ref.drawcon) e3:SetTarget(ref.drawtg) e3:SetOperation(ref.drawop) c:RegisterEffect(e3) end function ref.ShuffleVs(c) return c:IsSetCard(1856) and c:IsAbleToDeck() and c:IsType(TYPE_MONSTER) end function ref.SSVs(c,e,tp) return c:IsType(TYPE_MONSTER) and c:IsSetCard(1856) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP) end --Effect 0 function ref.cost0(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(ref.ShuffleVs,tp,LOCATION_HAND+LOCATION_GRAVE,0,3,nil) end local g0=Duel.SelectMatchingCard(tp,ref.ShuffleVs,tp,LOCATION_HAND+LOCATION_GRAVE,0,3,99,nil) if #g0>0 then if (g0:IsExists(Card.IsLocation,nil,1,LOCATION_HAND)) then Duel.ConfirmCards(1-tp,g0) end Duel.SendtoDeck(g0,tp,2,REASON_COST) end end function ref.target0(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsPlayerCanDraw(tp,3) end Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,3,tp,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,3,tp,0) end function ref.operation0(e,tp,eg,ep,ev,re,r,rp) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) if ft<=0 then return end if Duel.Draw(tp,3,REASON_EFFECT)~=0 then local g2=Duel.GetOperatedGroup() Duel.ConfirmCards(tp,g2) local ct=3 if ft