--Shalia, la Sciamana Nottesfumo --Script by XGlitchy30 function c62613302.initial_effect(c) --spsummon self local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(62613302,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_HAND) e1:HOPT() e1:SetCost(c62613302.spcost) e1:SetTarget(c62613302.sptg) e1:SetOperation(c62613302.spop) c:RegisterEffect(e1) --mill local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(62613302,1)) e2:SetCategory(CATEGORY_TOGRAVE) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetCode(EVENT_SUMMON_SUCCESS) e2:HOPT() e2:SetTarget(c62613302.thtg) e2:SetOperation(c62613302.thop) c:RegisterEffect(e2) --return local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(62613302,2)) e3:SetCategory(CATEGORY_TOGRAVE) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetProperty(EFFECT_FLAG_DELAY) e3:SetCode(EVENT_BE_MATERIAL) e3:HOPT() e3:SetCondition(c62613302.rtcon) e3:SetTarget(c62613302.rttg) e3:SetOperation(c62613302.rtop) c:RegisterEffect(e3) end --filters function c62613302.cfilter(c) return c:IsAbleToDeckOrExtraAsCost() and c:IsSetCard(ARCHE_NIGHTSHADE) end function c62613302.rtfilter(c) return c:IsFaceup() and c:IsSetCard(ARCHE_NIGHTSHADE) end function c62613302.tgfilter(c) return c:IsSetCard(ARCHE_NIGHTSHADE) and c:IsAbleToGrave() end --spsummon self function c62613302.spcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(c62613302.cfilter,tp,LOCATION_GRAVE,0,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) local g=Duel.SelectMatchingCard(tp,c62613302.cfilter,tp,LOCATION_GRAVE,0,1,1,nil) if g:GetCount()>0 then Duel.HintSelection(g) Duel.SendtoDeck(g,tp,2,REASON_COST) end end function c62613302.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 c62613302.spop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() if c:IsRelateToChain() then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end end --mill function c62613302.thtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(c62613302.tgfilter,tp,LOCATION_DECK,0,1,nil) end Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK) end function c62613302.thop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) local g=Duel.SelectMatchingCard(tp,c62613302.tgfilter,tp,LOCATION_DECK,0,1,1,nil) if g:GetCount()>0 then Duel.SendtoGrave(g,REASON_EFFECT) end end --return function c62613302.rtcon(e,tp,eg,ep,ev,re,r,rp) return r==REASON_SYNCHRO end function c62613302.rttg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(c62613302.rtfilter,tp,LOCATION_REMOVED,0,1,nil) end Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,g,1,0,0) end function c62613302.rtop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) local g=Duel.SelectMatchingCard(tp,c62613302.rtfilter,tp,LOCATION_REMOVED,0,1,1,nil) if g:GetCount()>0 then Duel.HintSelection(g) Duel.SendtoGrave(g,REASON_EFFECT+REASON_RETURN) end end