Commit 4809b137 authored by 聖園ミカ's avatar 聖園ミカ 🐟

byd

parent fd5b13df
--Sepialife District
--Scripted by:XGlitchy30
local id=33720035
local s=_G["c"..tostring(id)]
local s,id=GetID()
if not GLITCHYLIB_LOADED then
Duel.LoadScript("glitchylib_vsnemo.lua")
end
function s.initial_effect(c)
c:SetUniqueOnField(1,1,id)
--Activate
......@@ -83,11 +85,13 @@ end
function s.cfilter(c,e,tp)
return c:IsSetCard(0x144e) and c:IsAbleToRemoveAsCost(POS_FACEDOWN)
end
function s.rescon(g,e,tp,mg,c)
return g:GetClassCount(Card.GetCode)==#g, c and g:GetClassCount(Card.GetCode)~=#g
end
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_DECK,0,nil)
if chk==0 then return g:GetClassCount(Card.GetCode)>=6 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local tg=g:SelectSubGroup(tp,aux.dncheck,false,6,6)
if chk==0 then return aux.SelectUnselectGroup(g,e,tp,6,6,s.rescon,0) end
local tg=aux.SelectUnselectGroup(g,e,tp,6,6,s.rescon,1,tp,HINTMSG_REMOVE,s.rescon)
if #tg>0 then
Duel.Remove(tg,POS_FACEDOWN,REASON_COST)
end
......
......@@ -86,7 +86,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and s.cfilter2(chkc,tp,csp,crm) end
if chk==0 then return Duel.IsExistingTarget(s.cfilter2,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,tp,csp,crm) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISABLE)
Duel.SelectTarget(tp,s.cfilter2,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil,tp,csp)
Duel.SelectTarget(tp,s.cfilter2,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil,tp,csp,crm)
end
function s.spop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
......
......@@ -77,9 +77,6 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0)
end
function cm.mfilter(c)
return c:IsSetCard(0x581f) and c:IsType(TYPE_MONSTER) and c:IsCanOverlay()
end
function cm.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)>0 then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment