Commit afa28d73 authored by Tachibana's avatar Tachibana

E

parent 0c0378cd
Pipeline #15591 passed with stage
in 18 minutes and 26 seconds
--2pick Maintenance Utility
c13959997={}
xpcall(function() require("expansions/script/c13959997") end,function() require("script/c13959997") end)
tpu=c13959997
--cl=c13959996
local cc=13959995
local this=_G["c"..cc]
function this.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE|EFFECT_FLAG_SET_AVAILABLE|EFFECT_FLAG_CANNOT_DISABLE|EFFECT_FLAG_CANNOT_INACTIVATE|EFFECT_FLAG_CANNOT_NEGATE|EFFECT_FLAG_DAMAGE_STEP|EFFECT_FLAG_DAMAGE_CAL|EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_DECK|LOCATION_HAND|LOCATION_MZONE|LOCATION_SZONE|LOCATION_GRAVE|LOCATION_REMOVED)
e1:SetTarget(this.tg)
e1:SetOperation(this.op1)
c:RegisterEffect(e1)
end
function this.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetChainLimit(aux.FALSE)
end
function this.ccSelect(tp,g)
local cg=Group.CreateGroup()
local ct={}
for k,v in pairs(g) do
local c=Duel.CreateToken(tp,v)
ct[c]=v
cg:AddCard(c)
end
local sel=cg:Select(tp,0,#cg,nil)
local result={}
sel:ForEach(function(c1) result[#result+1]=ct[c1] end)
cg:DeleteGroup()
return result
end
function this.op1(e,tp)
this.clCode=({13959996,13959994})[Duel.SelectOption(0,aux.Stringid(13959997,7),aux.Stringid(13959997,8))+1]
local ml,el,mat,eat=tpu.loadCardList(false,true,this.clCode)
cl=_G["c"..this.clCode]
Debug.Message("已从c"..this.clCode..".lua加载卡表")
Debug.Message("主卡组数量:"..#ml)
Debug.Message("额外卡组数量:"..#el)
local quit=false
while not quit do
local opts={}
for i=0,8 do
opts[i+1]=aux.Stringid(cc,i)
end
local option=Duel.SelectOption(tp,table.unpack(opts))
if option==0 then
tpu.writeList(tpu.toList(tpu.toSet(ml)),"2pick/cardlist.main.txt")
tpu.writeList(tpu.toList(tpu.toSet(el)),"2pick/cardlist.extra.txt")
elseif option==1 then
ml=tpu.loadList("2pick/cardlist.main.txt")
el=tpu.loadList("2pick/cardlist.extra.txt")
elseif option==2 then
tpu.writeList(tpu.toList(tpu.loadSet(cl.BlackList)),"2pick/blacklist.txt")
elseif option==3 then
cl.BlackList=tpu.dumpSet(tpu.toSet(tpu.loadList("2pick/blacklist.txt")))
elseif option==4 then
tpu.writeList(tpu.toList(tpu.loadSet(cl.BanList)),"2pick/banlist.txt")
elseif option==5 then
cl.BanList=tpu.dumpSet(tpu.toSet(tpu.loadList("2pick/banlist.txt")))
elseif option==6 then
Debug.Message("正在刷新卡表……")
local nml={}
local nel={}
local nmat={}
local neat={}
for i=10000,99999999 do
local cc,ca,ctype=Duel.ReadCard(i,CARDDATA_CODE,CARDDATA_ALIAS,CARDDATA_TYPE)
if cc then
local dif=cc-ca
local real=0
if dif>-10 and dif<10 then
real=ca
else
real=cc
end
local at=0
if ctype&TYPE_TOKEN==0 then
if ctype&(TYPE_FUSION|TYPE_SYNCHRO|TYPE_XYZ|TYPE_LINK)>0 then
at=neat
else
at=nmat
end
if not at[real] then
at[real]={}
end
at[real][#at[real]+1]=cc
end
end
end
local bldelCount=0
local blldelCount=0
local ms=tpu.toSet(ml)
local es=tpu.toSet(el)
local bs=tpu.loadSet(cl.BanList)
local bls=tpu.loadSet(cl.BlackList)
local mdelta={}
local edelta={}
tpu.initSet(ms)
tpu.initSet(es)
tpu.initSet(bs)
tpu.initSet(bls)
for k,_ in pairs(nmat) do
nml[#nml+1]=k
if not ms:contains(k) then
mdelta[#mdelta+1]=k
else
ms:del(k)
end
end
for k,_ in pairs(neat) do
nel[#nel+1]=k
if not es:contains(k) then
edelta[#edelta+1]=k
else
es:del(k)
end
end
for _,v in pairs(tpu.toList(ms)) do
if bs:contains(v) then
bs:del(v)
bldelCount=bldelCount+1
end
if bls:contains(v) then
bls:del(v)
blldelCount=blldelCount+1
end
end
for _,v in pairs(tpu.toList(es)) do
if bs:contains(v) then
bs:del(v)
bldelCount=bldelCount+1
end
if bls:contains(v) then
bls:del(v)
blldelCount=blldelCount+1
end
end
Debug.Message("卡表扫描已完成")
Debug.Message("主卡组数量:"..#nml)
Debug.Message("额外卡组数量:"..#nel)
Debug.Message("主卡组新增:"..#mdelta)
Debug.Message("额外卡组新增:"..#edelta)
Debug.Message("主卡组删除:"..#tpu.toList(ms))
Debug.Message("额外卡组删除:"..#tpu.toList(es))
Debug.Message("黑名单删除:"..blldelCount)
Debug.Message("禁卡表删除:"..bldelCount)
if Duel.SelectYesNo(tp,aux.Stringid(cc,9)) then
Debug.Message("请选择需要加入黑名单的卡片")
local ct=1
local delta={}
table.move(mdelta,1,#mdelta,1,delta)
table.move(edelta,1,#edelta,#delta+1,delta)
while ct<=#delta do
local disp={}
table.move(delta,ct,ct+4,1,disp)
local sel=this.ccSelect(tp,disp)
for _,v in pairs(sel) do
bls:add(v)
end
ct=ct+5
end
Debug.Message("请选择需要加入禁卡表的卡片")
ct=1
while ct<=#delta do
local disp={}
table.move(delta,ct,ct+4,1,disp)
local sel=this.ccSelect(tp,disp)
for _,v in pairs(sel) do
bs:add(v)
end
ct=ct+5
end
else
tpu.writeList(mdelta,"2pick/delta.main.txt")
tpu.writeList(edelta,"2pick/delta.extra.txt")
Debug.Message("新增卡表已输出,请自行编辑黑名单和禁卡表")
end
ml=nml
el=nel
mat=nmat
eat=neat
cl.BlackList=tpu.dumpSet(bls)
cl.BanList=tpu.dumpSet(bs)
elseif option==7 then
local fml={}
local fel={}
tpu.initSet(fml)
tpu.initSet(fel)
for _,v in pairs(ml) do
for _,v2 in pairs(mat[v]) do
fml:add(v2)
end
end
for _,v in pairs(el) do
for _,v2 in pairs(eat[v]) do
fel:add(v2)
end
end
cl.Main=tpu.dumpSet(fml)
cl.Extra=tpu.dumpSet(fel)
local f=io.open("2pick/c"..this.clCode..".lua","w")
f:write(this.template:format(this.clCode))
f:write("this.Main=\""..cl.Main.."\"\n")
f:write("this.Extra=\""..cl.Extra.."\"\n")
f:write("this.BlackList=\""..cl.BlackList.."\"\n")
f:write("this.BanList=\""..cl.BanList.."\"\n")
f:flush()
f:close()
elseif option==8 then
quit=true
end
end
end
this.template="--2pick Card List\n\nlocal cc=%s\nlocal this=_G[\"c\"..cc]\n\nfunction this.initial_effect(c)\n\nend\n\n"
This source diff could not be displayed because it is too large. You can view the blob instead.
--银幕公主·白狐
local m=26821000
local m=81029000
local cm=_G["c"..m]
cm.named_with_SliverScene=1
Duel.LoadScript("c81000000.lua")
--银幕少女·白狐
local m=26821001
local m=81029001
local cm=_G["c"..m]
cm.named_with_SliverScene=1
Duel.LoadScript("c81000000.lua")
......@@ -28,7 +28,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e2)
end
function cm.spfilter(c)
return c:IsCode(26821000) and c:IsAbleToGraveAsCost()
return c:IsCode(81029000) and c:IsAbleToGraveAsCost()
end
function cm.spcon(e,c)
if c==nil then return true end
......@@ -41,7 +41,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.SendtoGrave(g,REASON_COST)
end
function cm.cfilter(c)
return c:IsFaceup() and c:IsCode(26821000)
return c:IsFaceup() and c:IsCode(81029000)
end
function cm.damcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
......
--银幕午后·白狐
local m=26821002
local m=81029002
local cm=_G["c"..m]
cm.named_with_SliverScene=1
Duel.LoadScript("c81000000.lua")
......@@ -28,7 +28,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e2)
end
function cm.filter(c)
return (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE)) and c:IsCode(26821000)
return (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE)) and c:IsCode(81029000)
end
function cm.spcon(e,c)
if c==nil then return true end
......@@ -36,7 +36,7 @@ function cm.spcon(e,c)
Duel.IsExistingMatchingCard(cm.filter,c:GetControler(),LOCATION_MZONE+LOCATION_GRAVE,0,1,nil)
end
function cm.cfilter(c)
return c:IsFaceup() and c:IsCode(26821000)
return c:IsFaceup() and c:IsCode(81029000)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
......
--银幕夜月·白狐
local m=26821003
local m=81029003
local cm=_G["c"..m]
cm.named_with_SliverScene=1
Duel.LoadScript("c81000000.lua")
......@@ -36,7 +36,7 @@ function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Tenka.SliverCost(e,tp,eg,ep,ev,re,r,rp,1)
end
function cm.spfilter(c,e,sp)
return c:IsCode(26821000) and c:IsCanBeSpecialSummoned(e,0,sp,false,false)
return c:IsCode(81029000) and c:IsCanBeSpecialSummoned(e,0,sp,false,false)
end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......@@ -53,7 +53,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.cfilter(c)
return c:IsFaceup() and c:IsCode(26821000)
return c:IsFaceup() and c:IsCode(81029000)
end
function cm.rmcon(e,tp,eg,ep,ev,re,r,rp)
return not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) and rp==1-tp and Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
......
--银幕下午茶·白狐
local m=26821004
local m=81029004
local cm=_G["c"..m]
cm.named_with_SliverScene=1
Duel.LoadScript("c81000000.lua")
......@@ -25,7 +25,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e2)
end
function cm.cfilter(c)
return c:IsFaceup() and c:IsCode(26821000)
return c:IsFaceup() and c:IsCode(81029000)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
......
--银幕闹市街·白狐
local m=26821005
local m=81029005
local cm=_G["c"..m]
cm.named_with_SliverScene=1
Duel.LoadScript("c81000000.lua")
......@@ -31,7 +31,7 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetAttacker():IsControler(1-tp)
end
function cm.filter(c,e,tp)
return c:IsCode(26821000) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
return c:IsCode(81029000) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......@@ -47,7 +47,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.cfilter(c)
return c:IsFaceup() and c:IsCode(26821000)
return c:IsFaceup() and c:IsCode(81029000)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
......
--银幕晨曦·白狐
local m=26821006
local m=81029006
local cm=_G["c"..m]
cm.named_with_SliverScene=1
Duel.LoadScript("c81000000.lua")
......@@ -41,7 +41,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.SendtoGrave(g,REASON_DISCARD+REASON_COST)
end
function cm.cfilter(c)
return c:IsFaceup() and c:IsCode(26821000)
return c:IsFaceup() and c:IsCode(81029000)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
......
--银幕庆典·白狐
local m=26821007
local m=81029007
local cm=_G["c"..m]
cm.named_with_SliverScene=1
Duel.LoadScript("c81000000.lua")
......@@ -33,7 +33,7 @@ function cm.spcon(e,c)
and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
end
function cm.cfilter(c)
return c:IsFaceup() and c:IsCode(26821000)
return c:IsFaceup() and c:IsCode(81029000)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
......
--银幕黄昏·白狐
local m=26821008
local m=81029008
local cm=_G["c"..m]
cm.named_with_SliverScene=1
Duel.LoadScript("c81000000.lua")
......@@ -29,30 +29,30 @@ function cm.initial_effect(c)
c:RegisterEffect(e2)
end
function cm.cfilter(c)
return c:IsFaceup() and c:IsCode(26821000)
return c:IsFaceup() and c:IsCode(81029000)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil) and Duel.GetTurnPlayer()~=tp
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,26821999,0,0x4011,2400,2400,7,RACE_BEAST,ATTRIBUTE_WATER) end
and Duel.IsPlayerCanSpecialSummonMonster(tp,81029999,0,0x4011,2400,2400,7,RACE_BEAST,ATTRIBUTE_WATER) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local flag=false
if ft>0 and Duel.IsPlayerCanSpecialSummonMonster(tp,26821999,0,0x4011,2400,2400,7,RACE_BEAST,ATTRIBUTE_WATER) then
if ft>0 and Duel.IsPlayerCanSpecialSummonMonster(tp,81029999,0,0x4011,2400,2400,7,RACE_BEAST,ATTRIBUTE_WATER) then
if ft>1 and not Duel.IsPlayerAffectedByEffect(tp,59822133)
and Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
and Duel.SelectYesNo(tp,aux.Stringid(m,0)) then
flag=true
end
local token=Duel.CreateToken(tp,26821999)
local token=Duel.CreateToken(tp,81029999)
Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP)
if flag==true then
local token=Duel.CreateToken(tp,26821999)
local token=Duel.CreateToken(tp,81029999)
Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP)
end
Duel.SpecialSummonComplete()
......
--银幕傍晚·白狐
local m=26821009
local m=81029009
local cm=_G["c"..m]
cm.named_with_SliverScene=1
Duel.LoadScript("c81000000.lua")
......@@ -28,7 +28,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e2)
end
function cm.cfilter(c)
return c:IsFaceup() and c:IsCode(26821000)
return c:IsFaceup() and c:IsCode(81029000)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil) and Duel.GetTurnPlayer()~=tp and aux.bpcon()
......@@ -52,7 +52,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CHANGE_CODE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetValue(26821000)
e1:SetValue(81029000)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1,true)
end
......
--银幕葡萄藤·白狐
local m=26821010
local m=81029010
local cm=_G["c"..m]
cm.named_with_SliverScene=1
Duel.LoadScript("c81000000.lua")
......@@ -34,7 +34,7 @@ function cm.spcon(e,c)
and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
end
function cm.cfilter(c)
return c:IsFaceup() and c:IsCode(26821000)
return c:IsFaceup() and c:IsCode(81029000)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
......
--银幕花园·白狐
local m=26821011
local m=81029011
local cm=_G["c"..m]
cm.named_with_SliverScene=1
Duel.LoadScript("c81000000.lua")
......@@ -37,7 +37,7 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK)
end
function cm.spfilter(c,e,sp)
return c:IsCode(26821000) and c:IsCanBeSpecialSummoned(e,0,sp,false,false)
return c:IsCode(81029000) and c:IsCanBeSpecialSummoned(e,0,sp,false,false)
end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......@@ -54,7 +54,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.cfilter(c)
return c:IsFaceup() and c:IsCode(26821000)
return c:IsFaceup() and c:IsCode(81029000)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
......
--银幕夜车·白狐
local m=26821012
local m=81029012
local cm=_G["c"..m]
cm.named_with_SliverScene=1
Duel.LoadScript("c81000000.lua")
......@@ -47,7 +47,7 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
and ep~=tp and Duel.IsChainNegatable(ev)
end
function cm.spfilter(c,e,tp)
return c:IsCode(26821000) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
return c:IsCode(81029000) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not e:GetHandler():IsStatus(STATUS_CHAINING)
......@@ -77,7 +77,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.cfilter(c)
return c:IsFaceup() and c:IsCode(26821000)
return c:IsFaceup() and c:IsCode(81029000)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
......
--银幕早春·白狐
local m=26821013
local m=81029013
local cm=_G["c"..m]
cm.named_with_SliverScene=1
Duel.LoadScript("c81000000.lua")
......@@ -8,7 +8,7 @@ function cm.initial_effect(c)
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsAttribute,ATTRIBUTE_WATER),7,2)
c:EnableReviveLimit()
--code
aux.EnableChangeCode(c,26821000,LOCATION_MZONE+LOCATION_GRAVE)
aux.EnableChangeCode(c,81029000,LOCATION_MZONE+LOCATION_GRAVE)
--destroy
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_DESTROY+CATEGORY_SPECIAL_SUMMON)
......
--银幕回廊·白狐
local m=26821014
local m=81029014
local cm=_G["c"..m]
cm.named_with_SliverScene=1
Duel.LoadScript("c81000000.lua")
......@@ -7,7 +7,7 @@ function cm.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,nil,7,3)
c:EnableReviveLimit()
aux.EnableChangeCode(c,26821000,LOCATION_MZONE+LOCATION_GRAVE)
aux.EnableChangeCode(c,81029000,LOCATION_MZONE+LOCATION_GRAVE)
--banish extra
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_REMOVE)
......
--银幕湖畔·白狐
local m=26821015
local m=81029015
local cm=_G["c"..m]
cm.named_with_SliverScene=1
Duel.LoadScript("c81000000.lua")
......@@ -15,7 +15,7 @@ function cm.initial_effect(c)
e0:SetValue(1)
c:RegisterEffect(e0)
--code
aux.EnableChangeCode(c,26821000,LOCATION_MZONE+LOCATION_GRAVE)
aux.EnableChangeCode(c,81029000,LOCATION_MZONE+LOCATION_GRAVE)
--disable
local e3=Effect.CreateEffect(c)
e3:SetCategory(CATEGORY_DESTROY)
......
--银幕凝视·白狐
local m=26821016
local m=81029016
local cm=_G["c"..m]
cm.named_with_SliverScene=1
Duel.LoadScript("c81000000.lua")
......@@ -35,7 +35,7 @@ function cm.cspcon(e,c)
Duel.IsExistingMatchingCard(cm.cdfilter,c:GetControler(),LOCATION_MZONE,0,1,nil)
end
function cm.cfilter(c)
return c:IsFaceup() and c:IsCode(26821000)
return c:IsFaceup() and c:IsCode(81029000)
end
function cm.damcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
......
--银幕音乐会·白狐
local m=26821017
local m=81029017
local cm=_G["c"..m]
cm.named_with_SliverScene=1
Duel.LoadScript("c81000000.lua")
......@@ -46,7 +46,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.efilter(c)
return c:IsFaceup() and c:IsCode(26821000)
return c:IsFaceup() and c:IsCode(81029000)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp and Duel.IsExistingMatchingCard(cm.efilter,tp,LOCATION_ONFIELD,0,1,nil)
......
--银幕司书·白狐
local m=26821018
local m=81029018
local cm=_G["c"..m]
cm.named_with_SliverScene=1
Duel.LoadScript("c81000000.lua")
......@@ -41,7 +41,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.efilter(c)
return c:IsFaceup() and c:IsCode(26821000)
return c:IsFaceup() and c:IsCode(81029000)
end
function cm.zcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.efilter,tp,LOCATION_ONFIELD,0,1,nil)
......
--银幕晨雾·白狐
local m=26821019
local m=81029019
local cm=_G["c"..m]
cm.named_with_SliverScene=1
Duel.LoadScript("c81000000.lua")
......@@ -43,7 +43,7 @@ function cm.hspop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Release(g,REASON_COST)
end
function cm.cfilter(c)
return c:IsFaceup() and c:IsCode(26821000)
return c:IsFaceup() and c:IsCode(81029000)
end
function cm.damcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
......
--银幕鸟笼·白狐
local m=26821020
local m=81029020
local cm=_G["c"..m]
cm.named_with_SliverScene=1
Duel.LoadScript("c81000000.lua")
......@@ -7,7 +7,7 @@ function cm.initial_effect(c)
--link summon
c:EnableReviveLimit()
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkRace,RACE_BEAST),2)
aux.EnableChangeCode(c,26821000,LOCATION_MZONE+LOCATION_GRAVE)
aux.EnableChangeCode(c,81029000,LOCATION_MZONE+LOCATION_GRAVE)
--handes
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_HANDES)
......
--银幕琴音·白狐
local m=26821021
local m=81029021
local cm=_G["c"..m]
cm.named_with_SliverScene=1
Duel.LoadScript("c81000000.lua")
......@@ -39,7 +39,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.cfilter(c)
return c:IsFaceup() and c:IsCode(26821000)
return c:IsFaceup() and c:IsCode(81029000)
end
function cm.immcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
......
--银幕起舞·白狐
local m=26821022
local m=81029022
local cm=_G["c"..m]
cm.named_with_SliverScene=1
Duel.LoadScript("c81000000.lua")
......@@ -44,7 +44,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Remove(g,POS_FACEUP,REASON_COST)
end
function cm.cfilter(c)
return c:IsFaceup() and c:IsCode(26821000)
return c:IsFaceup() and c:IsCode(81029000)
end
function cm.damcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
......
--银幕眺望·白狐
local m=26821023
local m=81029023
local cm=_G["c"..m]
cm.named_with_SliverScene=1
Duel.LoadScript("c81000000.lua")
......@@ -33,7 +33,7 @@ function cm.spcon(e,c)
and Duel.GetFieldGroupCount(c:GetControler(),LOCATION_MZONE,0,nil)<Duel.GetFieldGroupCount(c:GetControler(),0,LOCATION_MZONE,nil)
end
function cm.cfilter(c)
return c:IsFaceup() and c:IsCode(26821000)
return c:IsFaceup() and c:IsCode(81029000)
end
function cm.discon(e,tp,eg,ep,ev,re,r,rp)
return tp~=ep and Duel.GetCurrentChain()==0 and Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
......
--银幕春风·白狐
local m=26821024
local m=81029024
local cm=_G["c"..m]
Duel.LoadScript("c81000000.lua")
cm.named_with_SliverScene=1
......
--银幕魔术·白狐
local m=26821025
local m=81029025
local cm=_G["c"..m]
cm.named_with_SliverScene=1
Duel.LoadScript("c81000000.lua")
......@@ -48,7 +48,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.setfilter(c)
return c:IsFaceup() and c:IsCode(26821000)
return c:IsFaceup() and c:IsCode(81029000)
end
function cm.setcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.setfilter,tp,LOCATION_ONFIELD,0,1,nil)
......
--银幕淑女·白狐
local m=26821026
local m=81029026
local cm=_G["c"..m]
Duel.LoadScript("c81000000.lua")
cm.named_with_SliverScene=1
......
--银幕启程·白狐
local m=26821027
local m=81029027
local cm=_G["c"..m]
cm.named_with_SliverScene=1
Duel.LoadScript("c81000000.lua")
......@@ -45,7 +45,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.cfilter(c)
return c:IsFaceup() and c:IsCode(26821000)
return c:IsFaceup() and c:IsCode(81029000)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
......
--银幕丽人·白狐
local m=26821028
local m=81029028
local cm=_G["c"..m]
cm.named_with_SliverScene=1
Duel.LoadScript("c81000000.lua")
......@@ -42,7 +42,7 @@ function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Tenka.SliverCost(e,tp,eg,ep,ev,re,r,rp,1)
end
function cm.spfilter(c,e,tp)
return (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) and c:IsCode(26821000) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
return (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) and c:IsCode(81029000) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE+LOCATION_REMOVED) and cm.spfilter(chkc,e,tp) end
......
--银幕白狐衍生物
local m=26821999
local m=81029999
local cm=_G["c"..m]
Duel.LoadScript("c81000000.lua")
cm.named_with_SliverScene=1
\ No newline at end of file
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