Commit eeb997fe authored by mercury233's avatar mercury233 Committed by GitHub

update using of AddCodeList (#1700)

* add missing code list

* auto AddCodeList when using EnableChangeCode
parent 487db0d1
--古代の機械素体 --古代の機械素体
function c1278431.initial_effect(c) function c1278431.initial_effect(c)
aux.AddCodeList(c,83104731)
--search --search
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(1278431,0)) e1:SetDescription(aux.Stringid(1278431,0))
......
--パーシアスの神域 --パーシアスの神域
function c15449853.initial_effect(c) function c15449853.initial_effect(c)
aux.AddCodeList(c,56433456)
--activate --activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
......
--竜魔道騎士ガイア --竜魔道騎士ガイア
function c15989522.initial_effect(c) function c15989522.initial_effect(c)
aux.AddCodeList(c,66889139)
--fusion material --fusion material
c:EnableReviveLimit() c:EnableReviveLimit()
aux.AddFusionProcFun2(c,aux.FilterBoolFunction(Card.IsFusionSetCard,0xbd),c15989522.ffilter2,true) aux.AddFusionProcFun2(c,aux.FilterBoolFunction(Card.IsFusionSetCard,0xbd),c15989522.ffilter2,true)
......
--青眼の混沌龍 --青眼の混沌龍
function c20654247.initial_effect(c) function c20654247.initial_effect(c)
aux.AddCodeList(c,89631139)
c:EnableReviveLimit() c:EnableReviveLimit()
--spsummon condition --spsummon condition
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
--ワイトメア --ワイトメア
function c22339232.initial_effect(c) function c22339232.initial_effect(c)
aux.AddCodeList(c,32274490)
--change code --change code
aux.EnableChangeCode(c,32274490,LOCATION_GRAVE) aux.EnableChangeCode(c,32274490,LOCATION_GRAVE)
--to grave --to grave
......
...@@ -3,7 +3,6 @@ function c2519690.initial_effect(c) ...@@ -3,7 +3,6 @@ function c2519690.initial_effect(c)
--fusion material --fusion material
c:EnableReviveLimit() c:EnableReviveLimit()
aux.AddFusionProcFun2(c,aux.FilterBoolFunction(Card.IsFusionSetCard,0xbd),aux.FilterBoolFunction(Card.IsRace,RACE_DRAGON),true) aux.AddFusionProcFun2(c,aux.FilterBoolFunction(Card.IsFusionSetCard,0xbd),aux.FilterBoolFunction(Card.IsRace,RACE_DRAGON),true)
aux.AddCodeList(c,66889139)
--change name --change name
aux.EnableChangeCode(c,66889139) aux.EnableChangeCode(c,66889139)
--search --search
......
--黒衣竜アルビオン --黒衣竜アルビオン
function c25451383.initial_effect(c) function c25451383.initial_effect(c)
aux.AddCodeList(c,68468459)
--change name --change name
aux.EnableChangeCode(c,68468459,LOCATION_MZONE+LOCATION_GRAVE) aux.EnableChangeCode(c,68468459,LOCATION_MZONE+LOCATION_GRAVE)
--to grave --to grave
......
--正義の味方 カイバーマン --正義の味方 カイバーマン
function c34627841.initial_effect(c) function c34627841.initial_effect(c)
aux.AddCodeList(c,89631139)
--special summon --special summon
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(34627841,0)) e1:SetDescription(aux.Stringid(34627841,0))
......
--マジシャン・オブ・ブラック・イリュージョン --マジシャン・オブ・ブラック・イリュージョン
function c35191415.initial_effect(c) function c35191415.initial_effect(c)
aux.AddCodeList(c,46986414)
--change name --change name
aux.EnableChangeCode(c,46986414) aux.EnableChangeCode(c,46986414)
--spsummon (self) --spsummon (self)
......
--古代の機械超巨人 --古代の機械超巨人
function c37663536.initial_effect(c) function c37663536.initial_effect(c)
aux.AddCodeList(c,83104731)
c:EnableReviveLimit() c:EnableReviveLimit()
aux.AddFusionProcFunRep(c,aux.FilterBoolFunction(Card.IsFusionSetCard,0x7),3,true) aux.AddFusionProcFunRep(c,aux.FilterBoolFunction(Card.IsFusionSetCard,0x7),3,true)
--multi attack --multi attack
......
--ブレイク・ザ・デステニー --ブレイク・ザ・デステニー
function c4008212.initial_effect(c) function c4008212.initial_effect(c)
aux.AddCodeList(c,76263644)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(4008212,0)) e1:SetDescription(aux.Stringid(4008212,0))
......
--ワイト夫人 --ワイト夫人
function c40991587.initial_effect(c) function c40991587.initial_effect(c)
aux.AddCodeList(c,32274490)
--change code --change code
aux.EnableChangeCode(c,32274490,LOCATION_GRAVE) aux.EnableChangeCode(c,32274490,LOCATION_GRAVE)
--battle indestructable --battle indestructable
......
--トゥーン・キングダム --トゥーン・キングダム
function c43175858.initial_effect(c) function c43175858.initial_effect(c)
aux.AddCodeList(c,15259703)
--activate --activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_REMOVE) e1:SetCategory(CATEGORY_REMOVE)
......
--鉄の檻 --鉄の檻
function c45072394.initial_effect(c) function c45072394.initial_effect(c)
aux.AddCodeList(c,72283691)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
......
--白き霊龍 --白き霊龍
function c45467446.initial_effect(c) function c45467446.initial_effect(c)
aux.AddCodeList(c,89631139)
--Normal monster --Normal monster
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
--マジシャン・オブ・カオス --マジシャン・オブ・カオス
function c47963370.initial_effect(c) function c47963370.initial_effect(c)
aux.AddCodeList(c,46986414)
c:EnableReviveLimit() c:EnableReviveLimit()
--change name --change name
aux.EnableChangeCode(c,46986414,LOCATION_MZONE+LOCATION_GRAVE) aux.EnableChangeCode(c,46986414,LOCATION_MZONE+LOCATION_GRAVE)
......
--人造人間-サイコ・ジャッカー --人造人間-サイコ・ジャッカー
function c51916032.initial_effect(c) function c51916032.initial_effect(c)
aux.AddCodeList(c,77585513)
--change --change
aux.EnableChangeCode(c,77585513,LOCATION_MZONE+LOCATION_GRAVE) aux.EnableChangeCode(c,77585513,LOCATION_MZONE+LOCATION_GRAVE)
--tohand --tohand
......
--青眼の光龍 --青眼の光龍
function c53347303.initial_effect(c) function c53347303.initial_effect(c)
aux.AddCodeList(c,23995346)
c:EnableReviveLimit() c:EnableReviveLimit()
--cannot special summon --cannot special summon
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
--ブルーアイズ・ソリッド・ドラゴン --ブルーアイズ・ソリッド・ドラゴン
function c57043986.initial_effect(c) function c57043986.initial_effect(c)
aux.AddCodeList(c,89631139)
--negate --negate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(57043986,0)) e1:SetDescription(aux.Stringid(57043986,0))
......
--ワイトプリンス --ワイトプリンス
function c57473560.initial_effect(c) function c57473560.initial_effect(c)
aux.AddCodeList(c,32274490)
--change code --change code
aux.EnableChangeCode(c,32274490,LOCATION_GRAVE) aux.EnableChangeCode(c,32274490,LOCATION_GRAVE)
--to grave --to grave
......
--ワイトベイキング --ワイトベイキング
function c6128460.initial_effect(c) function c6128460.initial_effect(c)
aux.AddCodeList(c,32274490)
--change code --change code
aux.EnableChangeCode(c,32274490,LOCATION_GRAVE) aux.EnableChangeCode(c,32274490,LOCATION_GRAVE)
--destroy replace --destroy replace
......
--深淵の青眼龍 --深淵の青眼龍
function c64202399.initial_effect(c) function c64202399.initial_effect(c)
aux.AddCodeList(c,89631139)
--to hand --to hand
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(64202399,0)) e1:SetDescription(aux.Stringid(64202399,0))
......
--E・HERO アナザー・ネオス --E・HERO アナザー・ネオス
function c69884162.initial_effect(c) function c69884162.initial_effect(c)
aux.AddCodeList(c,89943723)
aux.EnableDualAttribute(c) aux.EnableDualAttribute(c)
--code --code
aux.EnableChangeCode(c,89943723,LOCATION_MZONE,aux.IsDualState) aux.EnableChangeCode(c,89943723,LOCATION_MZONE,aux.IsDualState)
......
--白竜の聖騎士 --白竜の聖騎士
function c73398797.initial_effect(c) function c73398797.initial_effect(c)
aux.AddCodeList(c,89631139)
c:EnableReviveLimit() c:EnableReviveLimit()
--destroy --destroy
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
--幽獄の時計塔 --幽獄の時計塔
function c75041269.initial_effect(c) function c75041269.initial_effect(c)
aux.AddCodeList(c,76263644) aux.AddSetNameMonsterList(c,0xc008)
c:EnableCounterPermit(0x1b) c:EnableCounterPermit(0x1b)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
--伝説の白石 --伝説の白石
function c79814787.initial_effect(c) function c79814787.initial_effect(c)
aux.AddCodeList(c,89631139)
--to hand --to hand
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(79814787,0)) e1:SetDescription(aux.Stringid(79814787,0))
......
--青き眼の乙女 --青き眼の乙女
function c88241506.initial_effect(c) function c88241506.initial_effect(c)
aux.AddCodeList(c,89631139)
--negate attack --negate attack
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(88241506,0)) e1:SetDescription(aux.Stringid(88241506,0))
......
--ワイトプリンセス --ワイトプリンセス
function c90243945.initial_effect(c) function c90243945.initial_effect(c)
aux.AddCodeList(c,32274490)
--change code --change code
aux.EnableChangeCode(c,32274490,LOCATION_GRAVE) aux.EnableChangeCode(c,32274490,LOCATION_GRAVE)
--to grave --to grave
......
--Sin 青眼の白龍 --Sin 青眼の白龍
function c9433350.initial_effect(c) function c9433350.initial_effect(c)
aux.AddCodeList(c,89631139)
c:EnableReviveLimit() c:EnableReviveLimit()
c:SetUniqueOnField(1,1,c9433350.uqfilter,LOCATION_MZONE) c:SetUniqueOnField(1,1,c9433350.uqfilter,LOCATION_MZONE)
--special summon --special summon
......
...@@ -257,6 +257,7 @@ function Auxiliary.ChangeCodeCondition(check,condition) ...@@ -257,6 +257,7 @@ function Auxiliary.ChangeCodeCondition(check,condition)
end end
end end
function Auxiliary.EnableChangeCode(c,code,location,condition) function Auxiliary.EnableChangeCode(c,code,location,condition)
Auxiliary.AddCodeList(c,code)
local loc=c:GetOriginalType()&TYPE_MONSTER~=0 and LOCATION_MZONE or LOCATION_SZONE local loc=c:GetOriginalType()&TYPE_MONSTER~=0 and LOCATION_MZONE or LOCATION_SZONE
loc=location or loc loc=location or loc
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
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