Commit bbb8b8db authored by Nemo Ma's avatar Nemo Ma

Update c33720035.lua

parent 29c04289
--Sepialife District --Sepialife District
--Scripted by:XGlitchy30 --Scripted by:XGlitchy30
local id=33720035 local s,id=GetID()
local s=_G["c"..tostring(id)] if not GLITCHYLIB_LOADED then
Duel.LoadScript("glitchylib_vsnemo.lua")
end
function s.initial_effect(c) function s.initial_effect(c)
c:SetUniqueOnField(1,1,id) c:SetUniqueOnField(1,1,id)
--Activate --Activate
...@@ -83,11 +85,13 @@ end ...@@ -83,11 +85,13 @@ end
function s.cfilter(c,e,tp) function s.cfilter(c,e,tp)
return c:IsSetCard(0x144e) and c:IsAbleToRemoveAsCost(POS_FACEDOWN) return c:IsSetCard(0x144e) and c:IsAbleToRemoveAsCost(POS_FACEDOWN)
end 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) function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_DECK,0,nil) local g=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_DECK,0,nil)
if chk==0 then return g:GetClassCount(Card.GetCode)>=6 end if chk==0 then return aux.SelectUnselectGroup(g,e,tp,6,6,s.rescon,0) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) local tg=aux.SelectUnselectGroup(g,e,tp,6,6,s.rescon,1,tp,HINTMSG_REMOVE,s.rescon)
local tg=g:SelectSubGroup(tp,aux.dncheck,false,6,6)
if #tg>0 then if #tg>0 then
Duel.Remove(tg,POS_FACEDOWN,REASON_COST) Duel.Remove(tg,POS_FACEDOWN,REASON_COST)
end end
......
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