Commit 932274bd authored by Nemo Ma's avatar Nemo Ma

fix and iflist

parent 1a139391
......@@ -10,8 +10,6 @@
130002004 0
130002005 0
#WILD, I say WILD, WAHAHA
90700076 0
90700077 0
700021 0
700022 0
700023 0
......@@ -19,46 +17,16 @@
700025 0
11451000 0
15000122 0
25000069 0
25000070 0
25000071 0
25000072 0
25000073 0
25000074 0
25000075 0
25000076 0
25000077 0
25000078 0
25000089 0
25000090 0
25000091 0
25000092 0
25000093 0
25000094 0
25000095 0
25000096 0
25000097 0
25000098 0
25000099 0
25001000 0
25001001 0
25001002 0
25001003 0
25001004 0
25001005 0
25001006 0
25001007 0
25001008 0
25001009 0
25001010 0
25001011 0
25001012 0
25001013 0
25001014 0
25001015 0
25001016 0
25001017 0
25001018 0
15000316 0
15000317 0
16200000 0
16200001 0
16200003 0
16200004 0
16200005 0
16200006 0
16200007 0
16200008 0
25010000 0
30000001 0
30000004 0
......@@ -112,6 +80,10 @@
30002065 0
30010000 0
30012000 0
31400001 0
31400002 0
31400003 0
31400004 0
31400032 0
31400033 0
31400034 0
......@@ -121,6 +93,95 @@
31400038 0
31400039 0
31400088 0
33403521 0
33403522 0
33403523 0
33403524 0
33403525 0
33403526 0
33403527 0
33403528 0
33403529 0
33403530 0
33502101 0
33502102 0
33502103 0
33502104 0
33502105 0
33502106 0
33502107 0
33502121 0
33502122 0
33502123 0
33502151 0
33502152 0
33502153 0
33502154 0
33502155 0
33502156 0
33502157 0
33502200 0
33502201 0
33502202 0
33502203 0
33502204 0
33502205 0
33502206 0
33502207 0
33502208 0
33502209 0
33502210 0
33502211 0
33502212 0
33502221 0
33502222 0
33502900 0
33502902 0
33502904 0
33502906 0
33502908 0
33502910 0
33502912 0
33502914 0
45746000 0
45746001 0
45746002 0
45746003 0
45746004 0
45746005 0
45746006 0
45746007 0
45746008 0
45746009 0
45746010 0
45746011 0
45746012 0
45746031 0
45746037 0
45746801 0
45746802 0
45746803 0
45746804 0
45746805 0
45746806 0
45746818 0
45746819 0
45746831 0
45746832 0
45746833 0
45746834 0
45746835 0
45746836 0
45746837 0
45746838 0
45746839 0
45746851 0
45746852 0
45746864 0
45746871 0
45746873 0
45746901 0
45746905 0
46250000 0
46250001 0
46250002 0
......@@ -148,6 +209,28 @@
46250024 0
46250025 0
60001009 0
67200050 0
67200051 0
67200052 0
67200053 0
67200054 0
67200056 0
67200057 0
67200058 0
67200060 0
67200061 0
67200062 0
67200064 0
67200065 0
67200066 0
67200068 0
67200069 0
67200070 0
67200072 0
67200073 0
67200074 0
67200076 0
67200100 0
72100301 0
72100302 0
72100303 0
......@@ -161,6 +244,18 @@
72100311 0
72100312 0
72100315 0
72100377 0
72100378 0
72100379 0
72100380 0
72100381 0
72100382 0
72100383 0
72100384 0
72100385 0
72100386 0
72100387 0
72100388 0
72100500 0
72100501 0
72100502 0
......@@ -199,6 +294,198 @@
72100536 0
72100537 0
72100538 0
79029185 0
82549999 0
82550000 0
82550001 0
82550007 0
82550008 0
82550009 0
82557911 0
82557912 0
82557913 0
82557914 0
82557915 0
82557916 0
82557917 0
82557918 0
82557919 0
82557920 0
82557921 0
82557922 0
82557923 0
82557924 0
82557925 0
82557926 0
82557927 0
82557928 0
82557929 0
82557930 0
82557932 0
82557933 0
82557934 0
82557938 0
82557939 0
82557940 0
82557941 0
82557942 0
82557943 0
82557944 0
82557945 0
82557946 0
82557947 0
82557948 0
82557949 0
82557950 0
82557951 0
82557965 0
82567782 0
82567783 0
82567784 0
82567785 0
82567786 0
82567787 0
82567789 0
82567790 0
82567791 0
82567792 0
82567793 0
82567794 0
82567797 0
82567798 0
82567799 0
82567800 0
82567801 0
82567802 0
82567804 0
82567805 0
82567806 0
82567807 0
82567809 0
82567810 0
82567811 0
82567814 0
82567816 0
82567817 0
82567818 0
82567819 0
82567821 0
82567822 0
82567823 0
82567824 0
82567825 0
82567826 0
82567827 0
82567828 0
82567829 0
82567830 0
82567831 0
82567833 0
82567835 0
82567836 0
82567838 0
82567839 0
82567841 0
82567842 0
82567843 0
82567844 0
82567845 0
82567846 0
82567848 0
82567849 0
82567850 0
82567853 0
82567855 0
82567856 0
82567857 0
82567858 0
82567859 0
82567860 0
82567862 0
82567864 0
82567866 0
82567867 0
82567868 0
82567870 0
82567871 0
82567872 0
82567873 0
82567876 0
82567877 0
82567882 0
82567883 0
82567885 0
82567886 0
82567889 0
82567890 0
82567891 0
82567892 0
82567893 0
82567894 0
82567899 0
82568000 0
82568002 0
82568003 0
82568005 0
82568007 0
82568008 0
82568009 0
82568010 0
82568011 0
82568014 0
82568016 0
82568017 0
82568018 0
82568019 0
82568023 0
82568024 0
82568025 0
82568026 0
82568027 0
82568028 0
82568029 0
82568030 0
82568031 0
82568032 0
82568035 0
82568037 0
82568039 0
82568044 0
82568045 0
82568046 0
82568048 0
82568049 0
82568050 0
82568051 0
82568052 0
82568058 0
82568059 0
82568060 0
82568061 0
82568062 0
82568063 0
82568065 0
82568066 0
82568067 0
82568070 0
82568071 0
82568072 0
82568077 0
82568078 0
82568079 0
82568080 0
82568081 0
82568082 0
82568083 0
82568084 0
82568085 0
82568086 0
82568087 0
82568088 0
82568089 0
82568090 0
82568092 0
82568093 0
83000070 0
83000071 0
83000072 0
......@@ -255,6 +542,7 @@
84610034 0
84610035 0
84610036 0
86510079 0
90700060 0
90700061 0
90700062 0
......@@ -267,6 +555,8 @@
90700069 0
90700070 0
90700073 0
90700076 0
90700077 0
99700125 0
99700135 0
99700150 0
......@@ -330,9 +620,57 @@
130006022 0
130006023 0
130006024 0
15000317 0
15000316 0
86510079 0
#Arknight Iflist
79029326 0 --星熊·飙系列收藏-狩标浪人 额外装备 进墓任意融合
79029239 1 --企鹅物流·术士干员-莫斯提马·荒时之锁 虽然我不下但是我觉得3还是离谱,干员大削后极有可能进构筑
79029275 0 --格拉尼·瑟谣浮收藏-西部警长 我觉得不需要解释
79029912 0 --东国·特种干员-水月 随便玩坏的卡,比r4强在干员本家检索(干员目前难叠r4
79029315 1 --萨尔贡·重装干员-森蚺 以前可以做2压制,限一观察
79029061 1 --龙门·重装干员-星熊
79029125 0 --罗德岛·近卫干员-煌
79029475 0 --萨尔贡·术士干员-卡涅利安 上为限制otk
79029351 1 --维多利亚·先锋干员-苇草·生灵火花 什么叫全自动啊
79029465 2 --异格干员-浊心斯卡蒂 单纯超模
79029453 1 --萨尔贡·术士干员-异客 神の待遇
79029236 0 --罗德岛·术士干员-天火·天坠之火 一刀4k,带你体验ftk快感
79029085 0 --深海猎人·近卫干员-幽灵鲨 这就扣掉你的召唤按钮
79029902 0 --黑钢国际·近卫干员-芙兰卡·B.P.R.S
79029044 1 --黑钢国际·近卫干员-芙兰卡
79029051 1 --企鹅物流·狙击干员-能天使 出仨陪你玩
79029907 1 --米诺斯·近卫干员-帕拉斯 主力炮弹加上赚卡点 限一观察
79029043 1 --黑钢国际·重装干员-雷蛇
79029914 0 --雷蛇·瑟谣浮收藏-阴天快乐 炮弹加纪念卡
79029441 1 --黑钢国际·重装干员-雷蛇·脉冲电弧
79029153 0 --雷姆必拓·近卫干员-暴行 人形炮台,ftk核心
79029066 0 --企鹅物流·重装干员-拜松
79029133 0 --维多利亚·狙击干员-梅 摆烂
79029109 2 --罗德岛·医疗干员-嘉维尔
79029129 1 --罗德岛·医疗干员-苏苏洛
79029045 2 --黑钢国际·狙击干员-杰西卡
79029046 2 --黑钢国际·先锋干员-香草
79029466 0 --风笛·啸风收藏-皇后一号(原本限一)
79029359 0 --罗德岛·近卫干员-阿米娅
79029032 1 --雷姆必拓·特种干员-暗锁
79029057 1 --企鹅物流·行动-分头行动
79029319 1 --个人行动-至高之术
79029339 0 --个人行动-黄昏 配合屑人诗怀雅可能会是炮台流全新的希望
79029223 0 --雷姆必拓·据点-重工基地
79029918 1 --黑钢国际·行动-辑惶
79029240 0 --黑钢国际·行动-代号·硝烟
79029440 0 --黑钢国际·行动-代号·集结
79029362 0 --黑钢国际·行动-任务接收
79029436 0 --黑钢国际·行动-代号·探秘
79029042 1 --黑钢国际·行动-目标护送
#Semi-Wild 1003
31409200 0
31409201 0
31409202 0
31409203 0
31409204 0
31409205 0
31409206 0
31409207 0
31409208 0
#耻辱柱
#all 阳羽 cards
49920003 0
......@@ -433,6 +771,40 @@
30002065 0
30010000 0
30012000 0
#211003
20000002 0
40009524 0
40009593 0
9330001 0
14000354 0
14000366 0
14000367 0
14000374 0
20000000 1
20000006 1
35300125 0
35300151 0
35300181 0
35300185 0
35300193 0
35300195 0
35300301 0
35300305 0
35399009 0
35399012 0
40009526 0
64800022 0
79029557 0
82221061 0
82221063 0
82224027 0
35300105 0
35300107 0
35300127 1
35300143 0
35300183 0
35300201 1
55100023 1
#210926
14000321 0
14000322 0
......@@ -569,9 +941,9 @@
#210613
33405100 0
9300315 0
30003030 0
30003040 0
30003050 0
30003030 1
30003040 1
30003050 1
30005015 0
65020201 0
65010087 0
......@@ -595,7 +967,6 @@
60001008 0
88990171 0
33400552 1
79029466 1
#210523
63790300 0
63790500 0
......@@ -746,8 +1117,6 @@
130001055 0
130006000 0
79034051 1
82221061 1
83000087 1
65010099 2
82208105 2
#210411
......
No preview for this file type
No preview for this file type
--次元回探机
local m=30003035
local cm=_G["c"..m]
function cm.initial_effect(c)
--link summon
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkType,TYPE_EFFECT),2,2)
c:EnableReviveLimit()
--open
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(m,1))
e2:SetCategory(CATEGORY_TOEXTRA+CATEGORY_DRAW)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,m)
e2:SetCost(function(e,tp,eg,ep,ev,re,r,rp,chk)
local mg=Duel.GetMatchingGroup(Card.IsAbleToDeckOrExtraAsCost,tp,LOCATION_REMOVED,0,nil)
if chk==0 then return mg:GetCount()>=3 end
local g=mg:Select(tp,3,3,nil)
Duel.SendtoDeck(g,nil,2,REASON_COST)
local e0=Effect.CreateEffect(e:GetHandler())
e0:SetType(EFFECT_TYPE_FIELD)
e0:SetCode(EFFECT_CANNOT_REMOVE)
e0:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
e0:SetTargetRange(1,1)
e0:SetTarget(aux.TargetBoolFunction(Card.IsControler,tp))
e0:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e0,tp)
end)
e2:SetTarget(function(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToExtra() end
Duel.SetOperationInfo(0,CATEGORY_TOEXTRA,e:GetHandler(),1,0,0)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
end)
e2:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then
if Duel.SendtoDeck(e:GetHandler(),nil,1,REASON_EFFECT)~=0 then
Duel.BreakEffect()
Duel.Draw(tp,1,REASON_EFFECT)
end
end
end)
c:RegisterEffect(e2)
--
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(m,1))
e3:SetCategory(CATEGORY_TOEXTRA)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetCode(EVENT_FREE_CHAIN)
e3:SetRange(LOCATION_GRAVE)
e3:SetCountLimit(1,m+100)
e3:SetCost(function(e,tp,eg,ep,ev,re,r,rp,chk)
local mg=Duel.GetMatchingGroup(Card.IsAbleToDeckOrExtraAsCost,tp,LOCATION_REMOVED,0,nil)
if chk==0 then return mg:GetCount()>=4 end
local g=mg:Select(tp,4,4,nil)
Duel.SendtoDeck(g,nil,2,REASON_COST)
local e0=Effect.CreateEffect(e:GetHandler())
e0:SetType(EFFECT_TYPE_FIELD)
e0:SetCode(EFFECT_CANNOT_REMOVE)
e0:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
e0:SetTargetRange(1,1)
e0:SetTarget(aux.TargetBoolFunction(Card.IsControler,tp))
e0:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e0,tp)
end)
e3:SetTarget(function(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToExtra() end
Duel.SetOperationInfo(0,CATEGORY_TOEXTRA,e:GetHandler(),1,0,0)
end)
e3:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then
Duel.SendtoDeck(e:GetHandler(),nil,1,REASON_EFFECT)
end
end)
c:RegisterEffect(e3)
end
--次元传输机
local m=30003045
local cm=_G["c"..m]
function cm.initial_effect(c)
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkType,TYPE_EFFECT),2,3,cm.lcheck)
c:EnableReviveLimit()
--
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(m,1))
e2:SetCategory(CATEGORY_TOEXTRA+CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,m)
e2:SetCost(function(e,tp,eg,ep,ev,re,r,rp,chk)
local mg=Duel.GetMatchingGroup(Card.IsAbleToDeckOrExtraAsCost,tp,LOCATION_REMOVED,0,nil)
if chk==0 then return mg:GetCount()>=3 end
local g=mg:Select(tp,3,3,nil)
Duel.SendtoDeck(g,nil,2,REASON_COST)
local e0=Effect.CreateEffect(e:GetHandler())
e0:SetType(EFFECT_TYPE_FIELD)
e0:SetCode(EFFECT_CANNOT_REMOVE)
e0:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
e0:SetTargetRange(1,1)
e0:SetTarget(aux.TargetBoolFunction(Card.IsControler,tp))
e0:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e0,tp)
end)
e2:SetTarget(function(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToExtra() and Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_TOEXTRA,e:GetHandler(),1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,0,tp,LOCATION_GRAVE+LOCATION_HAND)
end)
e2:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then
if Duel.SendtoDeck(e:GetHandler(),nil,1,REASON_EFFECT)~=0 then
Duel.BreakEffect()
if Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,cm.spfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,e,tp)
local tc=g:GetFirst()
if tc and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DISABLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2)
end
Duel.SpecialSummonComplete()
end
end
end
end)
c:RegisterEffect(e2)
--
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(m,1))
e3:SetCategory(CATEGORY_TOHAND)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetCode(EVENT_FREE_CHAIN)
e3:SetRange(LOCATION_GRAVE)
e3:SetCountLimit(1,m+100)
e3:SetCost(function(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() end
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
local e0=Effect.CreateEffect(e:GetHandler())
e0:SetType(EFFECT_TYPE_FIELD)
e0:SetCode(EFFECT_CANNOT_REMOVE)
e0:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
e0:SetTargetRange(1,1)
e0:SetTarget(aux.TargetBoolFunction(Card.IsControler,tp))
e0:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e0,tp)
end)
e3:SetTarget(function(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,0,LOCATION_ONFIELD)
end)
e3:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsExistingMatchingCard(Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
Duel.SendtoHand(g,nil,REASON_EFFECT)
end
end)
c:RegisterEffect(e3)
end
function cm.lcheck(g)
return g:IsExists(Card.IsCode,1,nil,30003035)
end
function cm.spfilter(c,e,tp)
return c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
\ No newline at end of file
--次元震荡机
local m=30003055
local cm=_G["c"..m]
function cm.initial_effect(c)
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkType,TYPE_EFFECT),3,4,cm.lcheck)
c:EnableReviveLimit()
--
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(m,1))
e2:SetCategory(CATEGORY_TOEXTRA+CATEGORY_DRAW)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,m)
e2:SetCost(function(e,tp,eg,ep,ev,re,r,rp,chk)
local mg=Duel.GetMatchingGroup(Card.IsAbleToDeckOrExtraAsCost,tp,LOCATION_REMOVED,0,nil)
local sg=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_REMOVED,0,nil)
if chk==0 then return mg:GetCount()==sg:GetCount() and mg:GetCount()>0 end
if Duel.GetMatchingGroupCount(aux.TRUE,tp,0,LOCATION_ONFIELD,nil)>=5 then
e:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CANNOT_NEGATE)
end
Duel.SendtoDeck(sg,nil,2,REASON_COST)
local e0=Effect.CreateEffect(e:GetHandler())
e0:SetType(EFFECT_TYPE_FIELD)
e0:SetCode(EFFECT_CANNOT_REMOVE)
e0:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
e0:SetTargetRange(1,1)
e0:SetTarget(aux.TargetBoolFunction(Card.IsControler,tp))
e0:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e0,tp)
end)
e2:SetTarget(function(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToExtra() and Duel.IsExistingMatchingCard(Card.IsAbleToDeck,tp,LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE,1,e:GetHandler()) end
local g=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE,nil)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,g:GetCount(),0,0)
end)
e2:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then
if Duel.SendtoDeck(e:GetHandler(),nil,1,REASON_EFFECT)~=0 then
Duel.BreakEffect()
local g=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE,nil)
Duel.SendtoDeck(g,nil,2,REASON_EFFECT)
end
end
end)
c:RegisterEffect(e2)
--
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(m,1))
e3:SetCategory(CATEGORY_TOHAND)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetCode(EVENT_FREE_CHAIN)
e3:SetRange(LOCATION_GRAVE)
e3:SetCountLimit(1,m+100)
e3:SetCost(function(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() end
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
local e0=Effect.CreateEffect(e:GetHandler())
e0:SetType(EFFECT_TYPE_FIELD)
e0:SetCode(EFFECT_CANNOT_REMOVE)
e0:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
e0:SetTargetRange(1,1)
e0:SetTarget(aux.TargetBoolFunction(Card.IsControler,tp))
e0:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e0,tp)
end)
e3:SetTarget(function(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_EXTRA)
end)
e3:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,cm.spfilter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp)
Duel.SpecialSummon(g,nil,tp,tp,false,false,POS_FACEUP)
end
end)
c:RegisterEffect(e3)
end
function cm.lcheck(g)
return g:IsExists(Card.IsCode,1,nil,30003035)
end
function cm.spfilter(c,e,tp)
return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and (c:IsCode(30003035) or c:IsCode(30003045))
end
\ No newline at end of file
......@@ -19,7 +19,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local ct=1
m[ct]=aux.Stringid(m,0) n[ct]=1 ct=ct+1
if t2 then m[ct]=aux.Stringid(m,1) n[ct]=2 ct=ct+1 end
local sp=Duel.SelectOption(tp,table.unpack(m))
local sp=Duel.SelectOption(1-tp,table.unpack(m))
op=n[sp+1]
Duel.BreakEffect()
if op==1 then
......
......@@ -69,7 +69,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:IsLocation(LOCATION_HAND+LOCATION_GRAVE)
and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 end
Duel.MoveToField(e:GetHandler(),tp,tp,LOCATION_SZONE,POS_FACEUP,true)
Duel.MoveToField(e:GetHandler(),tp,tp,LOCATION_SZONE,POS_FACEUP,false)
c:CreateEffectRelation(e)
end
function cm.mtop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -35,7 +35,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e1:SetCode(EFFECT_CANNOT_ATTACK)
e1:SetProperty(EFFECT_FLAG_OATH+EFFECT_FLAG_IGNORE_IMMUNE)
e1:SetTarget(cm.atklimit)
e1:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
......
......@@ -3,28 +3,24 @@ function c60000004.initial_effect(c)
--Inactivate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(60000004,0))
e1:SetCategory(CATEGORY_DISABLE)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_CHAINING)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetRange(LOCATION_HAND)
e1:SetCondition(c60000004.discon)
e1:SetCost(c60000004.discost)
e1:SetTarget(c60000004.distg)
e1:SetCode(EVENT_CHAINING)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCondition(c60000004.condition)
e1:SetCost(c60000004.cost)
e1:SetOperation(c60000004.operation)
c:RegisterEffect(e1)
end
function c60000004.discon(e,tp,eg,ep,ev,re,r,rp)
local loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)
return ep~=tp and Duel.IsChainDisablable(ev) and loc==LOCATION_GRAVE
function c60000004.condition(e,tp,eg,ep,ev,re,r,rp)
local con,loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_CONTROLER,CHAININFO_TRIGGERING_LOCATION)
return con~=tp and loc==LOCATION_GRAVE
end
function c60000004.discost(e,tp,eg,ep,ev,re,r,rp,chk)
function c60000004.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end
Duel.SendtoGrave(e:GetHandler(),REASON_COST)
end
function c60000004.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not re:GetHandler():IsStatus(STATUS_DISABLED) end
Duel.SetOperationInfo(0,CATEGORY_DISABLE,eg,1,0,0)
end
function c60000004.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local e1=Effect.CreateEffect(c)
......@@ -35,6 +31,7 @@ function c60000004.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(c60000004.aclimit)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
Duel.RegisterFlagEffect(tp,60000004,RESET_PHASE+PHASE_END,0,0)
end
function c60000004.aclimit(e,re,tp)
return re:GetActivateLocation()==LOCATION_GRAVE
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