Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ai
ygopro-222DIY-cards
Commits
05b84390
Commit
05b84390
authored
Jun 23, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
6bee4ee9
Changes
26
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
161 additions
and
92 deletions
+161
-92
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c1009024.lua
expansions/script/c1009024.lua
+3
-0
expansions/script/c10969998.lua
expansions/script/c10969998.lua
+1
-1
expansions/script/c12029034.lua
expansions/script/c12029034.lua
+1
-1
expansions/script/c12030021.lua
expansions/script/c12030021.lua
+1
-0
expansions/script/c12030022.lua
expansions/script/c12030022.lua
+1
-0
expansions/script/c12036020.lua
expansions/script/c12036020.lua
+1
-1
expansions/script/c12036021.lua
expansions/script/c12036021.lua
+1
-1
expansions/script/c12056006.lua
expansions/script/c12056006.lua
+1
-1
expansions/script/c16080031.lua
expansions/script/c16080031.lua
+57
-0
expansions/script/c18010006.lua
expansions/script/c18010006.lua
+1
-1
expansions/script/c26803009.lua
expansions/script/c26803009.lua
+1
-1
expansions/script/c33400426.lua
expansions/script/c33400426.lua
+8
-8
expansions/script/c33500310.lua
expansions/script/c33500310.lua
+20
-18
expansions/script/c33700425.lua
expansions/script/c33700425.lua
+0
-1
expansions/script/c34511160.lua
expansions/script/c34511160.lua
+3
-3
expansions/script/c40006827.lua
expansions/script/c40006827.lua
+1
-2
expansions/script/c40006884.lua
expansions/script/c40006884.lua
+1
-1
expansions/script/c40008548.lua
expansions/script/c40008548.lua
+2
-2
expansions/script/c40008561.lua
expansions/script/c40008561.lua
+1
-1
expansions/script/c62200000.lua
expansions/script/c62200000.lua
+44
-41
expansions/script/c65050166.lua
expansions/script/c65050166.lua
+2
-2
expansions/script/c65050222.lua
expansions/script/c65050222.lua
+2
-2
expansions/script/c65060025.lua
expansions/script/c65060025.lua
+4
-0
expansions/script/c77757301.lua
expansions/script/c77757301.lua
+1
-1
expansions/script/c81011018.lua
expansions/script/c81011018.lua
+3
-3
No files found.
expansions/222DIY.cdb
View file @
05b84390
No preview for this file type
expansions/script/c1009024.lua
View file @
05b84390
...
@@ -27,6 +27,9 @@ function c1009024.initial_effect(c)
...
@@ -27,6 +27,9 @@ function c1009024.initial_effect(c)
e3
:
SetOperation
(
c1009024
.
thop2
)
e3
:
SetOperation
(
c1009024
.
thop2
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c1009024
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_LINK
)
end
function
c1009024
.
thfilter
(
c
)
function
c1009024
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x520c
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x520c
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
end
end
...
...
expansions/script/c10969998.lua
View file @
05b84390
-
御魂术
-
-
御魂术
function
c10969998
.
initial_effect
(
c
)
function
c10969998
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
expansions/script/c12029034.lua
View file @
05b84390
...
@@ -48,7 +48,7 @@ function cm.splimit(e,se,sp,st)
...
@@ -48,7 +48,7 @@ function cm.splimit(e,se,sp,st)
end
end
function
cm
.
mfiter
(
c
,
mc
)
function
cm
.
mfiter
(
c
,
mc
)
local
tp
=
mc
:
GetOwner
()
local
tp
=
mc
:
GetOwner
()
return
c
:
GetOwner
()
=
1
-
tp
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
GetOwner
()
=
=
1
-
tp
and
c
:
IsType
(
TYPE_MONSTER
)
end
end
function
cm
.
cntg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
cntg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
...
expansions/script/c12030021.lua
View file @
05b84390
--小黄
--小黄
if
not
pcall
(
function
()
require
(
"expansions/script/c10199990"
)
end
)
then
require
(
"script/c10199990"
)
end
local
m
=
12030021
local
m
=
12030021
local
cm
=
_G
[
"c"
..
m
]
local
cm
=
_G
[
"c"
..
m
]
cm
.
rssetcode
=
"yatori"
cm
.
rssetcode
=
"yatori"
...
...
expansions/script/c12030022.lua
View file @
05b84390
--小黄
--小黄
if
not
pcall
(
function
()
require
(
"expansions/script/c10199990"
)
end
)
then
require
(
"script/c10199990"
)
end
local
m
=
12030022
local
m
=
12030022
local
cm
=
_G
[
"c"
..
m
]
local
cm
=
_G
[
"c"
..
m
]
cm
.
rssetcode
=
"yatori"
cm
.
rssetcode
=
"yatori"
...
...
expansions/script/c12036020.lua
View file @
05b84390
--LINK2_Blue_Angel
--LINK2_Blue_Angel
Duel
.
LoadScript
(
"
c12036000"
)
require
(
"expansions/script/
c12036000"
)
local
m
,
cm
=
rscf
.
DefineCard
(
12036020
,
"BlueAngel"
)
local
m
,
cm
=
rscf
.
DefineCard
(
12036020
,
"BlueAngel"
)
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
...
...
expansions/script/c12036021.lua
View file @
05b84390
--LINK3_Blue_Angel
--LINK3_Blue_Angel
Duel
.
LoadScript
(
"
c12036000"
)
require
(
"expansions/script/
c12036000"
)
local
m
,
cm
=
rscf
.
DefineCard
(
12036021
,
"BlueAngel"
)
local
m
,
cm
=
rscf
.
DefineCard
(
12036021
,
"BlueAngel"
)
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
...
...
expansions/script/c12056006.lua
View file @
05b84390
Duel
.
LoadScript
(
"c1200000.lua"
)
Duel
.
LoadScript
(
"c1200000
0
.lua"
)
--星之红茶 露点的猫
--星之红茶 露点的猫
local
m
=
12056006
local
m
=
12056006
local
cm
=
_G
[
"c"
..
m
]
local
cm
=
_G
[
"c"
..
m
]
...
...
expansions/script/c16080031.lua
0 → 100644
View file @
05b84390
--新津 铃绪奈
local
m
=
16080031
local
cm
=
_G
[
"c"
..
m
]
xpcall
(
function
()
require
(
"expansions/script/c81000000"
)
end
,
function
()
require
(
"script/c81000000"
)
end
)
function
cm
.
initial_effect
(
c
)
--synchro summon
aux
.
AddSynchroProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0x5ca
),
aux
.
NonTuner
(
Card
.
IsSetCard
,
0x5ca
),
1
)
c
:
EnableReviveLimit
()
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCountLimit
(
1
,
m
)
e1
:
SetCondition
(
cm
.
spcon
)
e1
:
SetTarget
(
cm
.
sptg
)
e1
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e1
)
--inactivatable
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EFFECT_CANNOT_INACTIVATE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetValue
(
cm
.
effectfilter
)
c
:
RegisterEffect
(
e4
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetCode
(
EFFECT_CANNOT_DISEFFECT
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetValue
(
cm
.
effectfilter
)
c
:
RegisterEffect
(
e5
)
end
function
cm
.
effectfilter
(
e
,
ct
)
local
p
=
e
:
GetHandler
():
GetControler
()
local
te
,
tp
,
loc
=
Duel
.
GetChainInfo
(
ct
,
CHAININFO_TRIGGERING_EFFECT
,
CHAININFO_TRIGGERING_PLAYER
,
CHAININFO_TRIGGERING_LOCATION
)
return
p
==
tp
and
te
:
GetHandler
():
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
bit
.
band
(
loc
,
LOCATION_ONFIELD
)
~=
0
end
function
cm
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
end
function
cm
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x5ca
)
and
c
:
IsLevelBelow
(
4
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
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
and
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
cm
.
filter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
expansions/script/c18010006.lua
View file @
05b84390
...
@@ -5,7 +5,7 @@ local cm=_G["c"..m]
...
@@ -5,7 +5,7 @@ local cm=_G["c"..m]
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
rshr
.
Set
(
c
)
rshr
.
Set
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
rscf
.
AddSynchroMixProcedure
(
c
,
aux
.
Tuner
(
Card
.
IsLevel
,
3
),
nil
,
nil
,
aux
.
Tuner
(
Card
.
IsLevel
,
3
),
1
,
1
)
AddSynchroMixProcedure
(
c
,
aux
.
Tuner
(
Card
.
IsLevel
,
3
),
nil
,
nil
,
aux
.
Tuner
(
Card
.
IsLevel
,
3
),
1
,
1
)
local
e1
=
rsef
.
STO
(
c
,
EVENT_SPSUMMON_SUCCESS
,{
m
,
0
},
nil
,
"th"
,
"de,dsp"
,
rscon
.
sumtype
(
"syn"
),
nil
,
rsop
.
target
({
cm
.
thfilter
,
"th"
,
LOCATION_GRAVE
},{
cm
.
thfilter
,
"th"
,
0
,
LOCATION_GRAVE
}),
cm
.
op
)
local
e1
=
rsef
.
STO
(
c
,
EVENT_SPSUMMON_SUCCESS
,{
m
,
0
},
nil
,
"th"
,
"de,dsp"
,
rscon
.
sumtype
(
"syn"
),
nil
,
rsop
.
target
({
cm
.
thfilter
,
"th"
,
LOCATION_GRAVE
},{
cm
.
thfilter
,
"th"
,
0
,
LOCATION_GRAVE
}),
cm
.
op
)
local
e2
=
rsef
.
FTO
(
c
,
EVENT_TO_GRAVE
,{
m
,
1
},
1
,
"se,th"
,
"de"
,
LOCATION_MZONE
,
cm
.
thcon
,
nil
,
rsop
.
target
(
cm
.
thfilter2
,
"th"
,
LOCATION_DECK
),
cm
.
thop
)
local
e2
=
rsef
.
FTO
(
c
,
EVENT_TO_GRAVE
,{
m
,
1
},
1
,
"se,th"
,
"de"
,
LOCATION_MZONE
,
cm
.
thcon
,
nil
,
rsop
.
target
(
cm
.
thfilter2
,
"th"
,
LOCATION_DECK
),
cm
.
thop
)
local
e3
=
rsef
.
QO
(
c
,
nil
,{
m
,
2
},
1
,
"sp"
,
nil
,
LOCATION_MZONE
,
cm
.
syncon
,
nil
,
rsop
.
target
(
cm
.
synfilter
,
"sp"
,
LOCATION_EXTRA
),
cm
.
synop
)
local
e3
=
rsef
.
QO
(
c
,
nil
,{
m
,
2
},
1
,
"sp"
,
nil
,
LOCATION_MZONE
,
cm
.
syncon
,
nil
,
rsop
.
target
(
cm
.
synfilter
,
"sp"
,
LOCATION_EXTRA
),
cm
.
synop
)
...
...
expansions/script/c26803009.lua
View file @
05b84390
--夜下少女
--夜下少女
local
m
=
2680300
8
local
m
=
2680300
9
local
cm
=
_G
[
"c"
..
m
]
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
...
...
expansions/script/c33400426.lua
View file @
05b84390
...
@@ -34,23 +34,23 @@ end
...
@@ -34,23 +34,23 @@ end
function
c33400426
.
lcheck
(
g
)
function
c33400426
.
lcheck
(
g
)
return
g
:
IsExists
(
Card
.
IsLinkSetCard
,
1
,
nil
,
0x9343
)
return
g
:
IsExists
(
Card
.
IsLinkSetCard
,
1
,
nil
,
0x9343
)
end
end
function
c3340042
0
.
cccfilter1
(
c
)
function
c3340042
6
.
cccfilter1
(
c
)
return
c
:
IsCode
(
33400428
)
and
c
:
IsFaceup
()
return
c
:
IsCode
(
33400428
)
and
c
:
IsFaceup
()
end
end
function
c3340042
0
.
cccfilter2
(
c
)
function
c3340042
6
.
cccfilter2
(
c
)
return
c
:
IsCode
(
33400425
)
and
c
:
IsFaceup
()
and
c
:
IsSummonType
(
SUMMON_TYPE_XYZ
)
return
c
:
IsCode
(
33400425
)
and
c
:
IsFaceup
()
and
c
:
IsSummonType
(
SUMMON_TYPE_XYZ
)
end
end
function
c3340042
0
.
ccfilter
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c3340042
6
.
ccfilter
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
and
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
and
(
Duel
.
IsExistingMatchingCard
(
c3340042
0
.
cccfilter1
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
or
(
Duel
.
IsExistingMatchingCard
(
c3340042
6
.
cccfilter1
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
or
Duel
.
IsExistingMatchingCard
(
c3340042
0
.
cccfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
Duel
.
IsExistingMatchingCard
(
c3340042
6
.
cccfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
)
)
end
end
function
c33400426
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c33400426
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_LINK
)
and
not
(
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsSetCard
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
0x341
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsSetCard
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
0x341
)
or
c3340042
0
.
ccfilter
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
))
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_LINK
)
and
not
(
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsSetCard
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
0x341
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsSetCard
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
0x341
)
or
c3340042
6
.
ccfilter
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
))
end
end
function
c33400426
.
thcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c33400426
.
thcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_LINK
)
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsSetCard
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
0x341
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsSetCard
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
0x341
)
or
c3340042
0
.
ccfilter
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_LINK
)
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsSetCard
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
0x341
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsSetCard
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
0x341
)
or
c3340042
6
.
ccfilter
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
end
function
c33400426
.
thfilter
(
c
)
function
c33400426
.
thfilter
(
c
)
...
@@ -82,7 +82,7 @@ function c33400426.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -82,7 +82,7 @@ function c33400426.thop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c33400426
.
thfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tc
:
GetCode
())
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c33400426
.
thfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tc
:
GetCode
())
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
tp
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
tp
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
end
end
end
end
...
...
expansions/script/c33500310.lua
View file @
05b84390
--薇奈特-融合
--薇奈特-融合
function
c33500310
.
initial_effect
(
c
)
local
m
=
33500310
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--f material
--f material
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
aux
.
AddFusionProcFunRep
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsFusionSetCard
,
0xa84
),
2
,
false
)
aux
.
AddFusionProcFunRep
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsFusionSetCard
,
0xa84
),
2
,
false
)
...
@@ -8,24 +10,24 @@ function c33500310.initial_effect(c)
...
@@ -8,24 +10,24 @@ function c33500310.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_INACTIVATE
)
e1
:
SetCode
(
EFFECT_CANNOT_INACTIVATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
c
33500310
.
efilter
)
e1
:
SetValue
(
c
m
.
efilter
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_DISEFFECT
)
e2
:
SetCode
(
EFFECT_CANNOT_DISEFFECT
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetValue
(
c
33500310
.
efilter
)
e2
:
SetValue
(
c
m
.
efilter
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--2
--2
-- local e3=Effect.CreateEffect(c)
-- local e3=Effect.CreateEffect(c)
-- e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
-- e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
-- e3:SetRange(LOCATION_MZONE)
-- e3:SetRange(LOCATION_MZONE)
-- e3:SetCode(EVENT_CHAINING)
-- e3:SetCode(EVENT_CHAINING)
-- e3:SetCountLimit(1,
33500310
)
-- e3:SetCountLimit(1,
m
)
-- e3:SetProperty(EFFECT_FLAG_DELAY)
-- e3:SetProperty(EFFECT_FLAG_DELAY)
-- e3:SetCondition(c
33500310
.ncon)
-- e3:SetCondition(c
m
.ncon)
-- e3:SetTarget(c
33500310
.ntg)
-- e3:SetTarget(c
m
.ntg)
-- e3:SetOperation(c
33500310
.nop)
-- e3:SetOperation(c
m
.nop)
-- c:RegisterEffect(e3)
-- c:RegisterEffect(e3)
--tohand
--tohand
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
...
@@ -41,26 +43,26 @@ function c33500310.initial_effect(c)
...
@@ -41,26 +43,26 @@ function c33500310.initial_effect(c)
e5
:
SetOperation
(
cm
.
thop2
)
e5
:
SetOperation
(
cm
.
thop2
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
function
c
33500310
.
efilter
(
e
,
ct
)
function
c
m
.
efilter
(
e
,
ct
)
local
player
=
e
:
GetHandler
():
GetControler
()
local
player
=
e
:
GetHandler
():
GetControler
()
local
te
,
tp
,
loc
=
Duel
.
GetChainInfo
(
ct
,
CHAININFO_TRIGGERING_EFFECT
,
CHAININFO_TRIGGERING_PLAYER
,
CHAININFO_TRIGGERING_LOCATION
)
local
te
,
tp
,
loc
=
Duel
.
GetChainInfo
(
ct
,
CHAININFO_TRIGGERING_EFFECT
,
CHAININFO_TRIGGERING_PLAYER
,
CHAININFO_TRIGGERING_LOCATION
)
return
player
==
tp
and
te
:
GetHandler
():
IsSetCard
(
0xa84
)
and
te
:
GetHandler
():
IsType
(
TYPE_MONSTER
)
and
bit
.
band
(
loc
,
LOCATION_SZONE
)
~=
0
return
player
==
tp
and
te
:
GetHandler
():
IsSetCard
(
0xa84
)
and
te
:
GetHandler
():
IsType
(
TYPE_MONSTER
)
and
bit
.
band
(
loc
,
LOCATION_SZONE
)
~=
0
end
end
--function c
33500310
.ncon(e,tp,eg,ep,ev,re,r,rp)
--function c
m
.ncon(e,tp,eg,ep,ev,re,r,rp)
-- return rp==tp and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:GetHandler():IsCode(33500110)
-- return rp==tp and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:GetHandler():IsCode(33500110)
--end
--end
--function c
33500310
.ntg(e,tp,eg,ep,ev,re,r,rp,chk)
--function c
m
.ntg(e,tp,eg,ep,ev,re,r,rp,chk)
-- if chk==0 then
-- if chk==0 then
--
return Duel.GetFieldGroupCount(tp,0,LOCATION_DECK)>0
-- return Duel.GetFieldGroupCount(tp,0,LOCATION_DECK)>0
-- end
-- end
--end
--end
--function c
33500310
.nop(e,tp,eg,ep,ev,re,r,rp)
--function c
m
.nop(e,tp,eg,ep,ev,re,r,rp)
-- local c=e:GetHandler()
-- local c=e:GetHandler()
-- if Duel.GetFieldGroupCount(tp,0,LOCATION_DECK)==0 then
-- if Duel.GetFieldGroupCount(tp,0,LOCATION_DECK)==0 then
--
return
--
return
-- end
-- end
-- Duel.ConfirmDecktop(1-tp,1)
-- Duel.ConfirmDecktop(1-tp,1)
--
local g=Duel.GetDecktopGroup(1-tp,1)
--
local g=Duel.GetDecktopGroup(1-tp,1)
-- local tc=g:GetFirst()
-- local tc=g:GetFirst()
-- local sel=nil
-- local sel=nil
-- if tc:IsType(TYPE_MONSTER) then sel=TYPE_MONSTER end
-- if tc:IsType(TYPE_MONSTER) then sel=TYPE_MONSTER end
...
@@ -72,12 +74,12 @@ end
...
@@ -72,12 +74,12 @@ end
-- e1:SetCode(EFFECT_CANNOT_ACTIVATE)
-- e1:SetCode(EFFECT_CANNOT_ACTIVATE)
-- e1:SetTargetRange(0,1)
-- e1:SetTargetRange(0,1)
-- e1:SetLabel(sel)
-- e1:SetLabel(sel)
-- e1:SetValue(c
33500310
.aclimit)
-- e1:SetValue(c
m
.aclimit)
--
e1:SetReset(RESET_PHASE+PHASE_END,2)
--
e1:SetReset(RESET_PHASE+PHASE_END,2)
-- Duel.RegisterEffect(e1,tp)
-- Duel.RegisterEffect(e1,tp)
--end
--end
--function c
33500310
.aclimit(e,re,tp)
--function c
m
.aclimit(e,re,tp)
--
local sel=e:GetLabel()
--
local sel=e:GetLabel()
-- return re:IsActiveType(sel)
-- return re:IsActiveType(sel)
--end
--end
--e5
--e5
...
...
expansions/script/c33700425.lua
View file @
05b84390
...
@@ -4,7 +4,6 @@
...
@@ -4,7 +4,6 @@
local
s
=
c33700425
local
s
=
c33700425
local
id
=
33700425
local
id
=
33700425
function
s
.
initial_effect
(
c
)
function
s
.
initial_effect
(
c
)
aux
.
AddEquipProcedure
(
c
)
--0 atk
--0 atk
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_EQUIP
)
e1
:
SetType
(
EFFECT_TYPE_EQUIP
)
...
...
expansions/script/c34511160.lua
View file @
05b84390
...
@@ -15,14 +15,14 @@ function c34511160.initial_effect(c)
...
@@ -15,14 +15,14 @@ function c34511160.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
------------------------------
------------------------------
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
345111
7
0
,
3
))
e3
:
SetDescription
(
aux
.
Stringid
(
345111
6
0
,
3
))
e3
:
SetCategory
(
CATEGORY_TOHAND
)
e3
:
SetCategory
(
CATEGORY_TOHAND
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_DESTROYED
)
e3
:
SetCode
(
EVENT_DESTROYED
)
e3
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e3
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
345111
6
0
)
e3
:
SetCountLimit
(
1
,
345111
7
0
)
e3
:
SetCondition
(
c345111
7
0
.
spcon
)
e3
:
SetCondition
(
c345111
6
0
.
spcon
)
e3
:
SetTarget
(
c34511160
.
ptg1
)
e3
:
SetTarget
(
c34511160
.
ptg1
)
e3
:
SetOperation
(
c34511160
.
pop1
)
e3
:
SetOperation
(
c34511160
.
pop1
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
...
...
expansions/script/c40006827.lua
View file @
05b84390
--睿智之蓝 LV3-改4
--睿智之蓝 LV3-改4
function
c40006827
.
initial_effect
(
c
)
function
c40006827
.
initial_effect
(
c
)
c
:
EnableReviveLimitPendulumSummonable
()
aux
.
EnablePendulumAttribute
(
c
)
aux
.
EnablePendulumAttribute
(
c
)
c
:
EnableUnsummonable
()
aux
.
EnablePendulumAttribute
(
c
,
false
)
--spsummon from hand
--spsummon from hand
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
...
...
expansions/script/c40006884.lua
View file @
05b84390
...
@@ -23,7 +23,7 @@ function c40006884.initial_effect(c)
...
@@ -23,7 +23,7 @@ function c40006884.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e
3
:
SetCountLimit
(
1
,
40006884
)
e
2
:
SetCountLimit
(
1
,
40006884
)
e2
:
SetCondition
(
c40006884
.
thcon
)
e2
:
SetCondition
(
c40006884
.
thcon
)
e2
:
SetTarget
(
c40006884
.
thtg
)
e2
:
SetTarget
(
c40006884
.
thtg
)
e2
:
SetOperation
(
c40006884
.
thop
)
e2
:
SetOperation
(
c40006884
.
thop
)
...
...
expansions/script/c40008548.lua
View file @
05b84390
...
@@ -44,14 +44,14 @@ function c40008548.initial_effect(c)
...
@@ -44,14 +44,14 @@ function c40008548.initial_effect(c)
e6
:
SetType
(
EFFECT_TYPE_IGNITION
)
e6
:
SetType
(
EFFECT_TYPE_IGNITION
)
e6
:
SetRange
(
LOCATION_MZONE
)
e6
:
SetRange
(
LOCATION_MZONE
)
e6
:
SetCountLimit
(
1
)
e6
:
SetCountLimit
(
1
)
e6
:
SetCondition
(
c40008
460
.
spcon1
)
e6
:
SetCondition
(
c40008
548
.
spcon1
)
e6
:
SetOperation
(
c40008548
.
spop
)
e6
:
SetOperation
(
c40008548
.
spop
)
c
:
RegisterEffect
(
e6
)
c
:
RegisterEffect
(
e6
)
local
e7
=
e6
:
Clone
()
local
e7
=
e6
:
Clone
()
e7
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e7
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e7
:
SetCode
(
EVENT_FREE_CHAIN
)
e7
:
SetCode
(
EVENT_FREE_CHAIN
)
e7
:
SetHintTiming
(
0
,
TIMING_END_PHASE
,
TIMING_DRAW_PHASE
)
e7
:
SetHintTiming
(
0
,
TIMING_END_PHASE
,
TIMING_DRAW_PHASE
)
e7
:
SetCondition
(
c40008
460
.
spcon2
)
e7
:
SetCondition
(
c40008
548
.
spcon2
)
c
:
RegisterEffect
(
e7
)
c
:
RegisterEffect
(
e7
)
end
end
function
c40008548
.
ffilter
(
c
,
fc
,
sub
,
mg
,
sg
)
function
c40008548
.
ffilter
(
c
,
fc
,
sub
,
mg
,
sg
)
...
...
expansions/script/c40008561.lua
View file @
05b84390
...
@@ -42,7 +42,7 @@ function c40008561.initial_effect(c)
...
@@ -42,7 +42,7 @@ function c40008561.initial_effect(c)
e3
:
SetOperation
(
c40008561
.
tdop
)
e3
:
SetOperation
(
c40008561
.
tdop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c400085
45
.
cost1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c400085
61
.
cost1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
2000
)
end
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
2000
)
end
Duel
.
PayLPCost
(
tp
,
2000
)
Duel
.
PayLPCost
(
tp
,
2000
)
end
end
...
...
expansions/script/c62200000.lua
View file @
05b84390
baka
=
baka
or
{}
baka
=
baka
or
{}
local
cm
=
baka
local
cm
=
baka
baka
.
loaded_metatable_list
=
{}
baka
.
loaded_metatable_list
=
{}
function
c62200000
.
initial_effect
(
c
)
end
function
baka
.
load_metatable
(
code
)
function
baka
.
load_metatable
(
code
)
local
m1
=
_G
[
"c"
..
code
]
local
m1
=
_G
[
"c"
..
code
]
if
m1
then
return
m1
end
if
m1
then
return
m1
end
local
m2
=
baka
.
loaded_metatable_list
[
code
]
local
m2
=
baka
.
loaded_metatable_list
[
code
]
if
m2
then
return
m2
end
if
m2
then
return
m2
end
_G
[
"c"
..
code
]
=
{}
_G
[
"c"
..
code
]
=
{}
if
pcall
(
function
()
dofile
(
"expansions/script/c"
..
code
..
".lua"
)
end
)
or
pcall
(
function
()
dofile
(
"script/c"
..
code
..
".lua"
)
end
)
then
if
pcall
(
function
()
dofile
(
"expansions/script/c"
..
code
..
".lua"
)
end
)
or
pcall
(
function
()
dofile
(
"script/c"
..
code
..
".lua"
)
end
)
then
local
mt
=
_G
[
"c"
..
code
]
local
mt
=
_G
[
"c"
..
code
]
_G
[
"c"
..
code
]
=
nil
_G
[
"c"
..
code
]
=
nil
if
mt
then
if
mt
then
baka
.
loaded_metatable_list
[
code
]
=
mt
baka
.
loaded_metatable_list
[
code
]
=
mt
return
mt
return
mt
end
end
else
else
_G
[
"c"
..
code
]
=
nil
_G
[
"c"
..
code
]
=
nil
end
end
end
end
function
baka
.
check_set
(
c
,
setcode
,
v
,
f
,
...
)
function
baka
.
check_set
(
c
,
setcode
,
v
,
f
,
...
)
local
codet
=
nil
local
codet
=
nil
if
type
(
c
)
==
"number"
then
if
type
(
c
)
==
"number"
then
codet
=
{
c
}
codet
=
{
c
}
elseif
type
(
c
)
==
"table"
then
elseif
type
(
c
)
==
"table"
then
codet
=
c
codet
=
c
elseif
type
(
c
)
==
"userdata"
then
elseif
type
(
c
)
==
"userdata"
then
local
f
=
f
or
Card
.
GetCode
local
f
=
f
or
Card
.
GetCode
codet
=
{
f
(
c
)}
codet
=
{
f
(
c
)}
end
end
local
ncodet
=
{
...
}
local
ncodet
=
{
...
}
for
i
,
code
in
pairs
(
codet
)
do
for
i
,
code
in
pairs
(
codet
)
do
for
i
,
ncode
in
pairs
(
ncodet
)
do
for
i
,
ncode
in
pairs
(
ncodet
)
do
if
code
==
ncode
then
return
true
end
if
code
==
ncode
then
return
true
end
end
end
local
mt
=
baka
.
load_metatable
(
code
)
local
mt
=
baka
.
load_metatable
(
code
)
if
mt
and
mt
[
"named_with_"
..
setcode
]
and
(
not
v
or
mt
[
"named_with_"
..
setcode
]
==
v
)
then
return
true
end
if
mt
and
mt
[
"named_with_"
..
setcode
]
and
(
not
v
or
mt
[
"named_with_"
..
setcode
]
==
v
)
then
return
true
end
end
end
return
false
return
false
end
end
--fool
--fool
function
baka
.
check_set_FragileArticles
(
c
)
function
baka
.
check_set_FragileArticles
(
c
)
return
baka
.
check_set
(
c
,
"FragileArticles"
)
--玻 离 之 物
return
baka
.
check_set
(
c
,
"FragileArticles"
)
--玻 离 之 物
end
end
function
baka
.
check_set_FragileLyric
(
c
)
function
baka
.
check_set_FragileLyric
(
c
)
return
baka
.
check_set
(
c
,
"FragileLyric"
)
--玻 离 乐 章
return
baka
.
check_set
(
c
,
"FragileLyric"
)
--玻 离 乐 章
end
end
--lover
--lover
function
baka
.
check_set_AzayakaSin
(
c
)
function
baka
.
check_set_AzayakaSin
(
c
)
return
baka
.
check_set
(
c
,
"AzakayaSin"
)
--华 欲
return
baka
.
check_set
(
c
,
"AzakayaSin"
)
--华 欲
end
end
--magician
--magician
function
baka
.
check_set_MechanicalCrafter
(
c
)
function
baka
.
check_set_MechanicalCrafter
(
c
)
return
baka
.
check_set
(
c
,
"MechanicalCrafter"
)
--机 匠 工 造
return
baka
.
check_set
(
c
,
"MechanicalCrafter"
)
--机 匠 工 造
end
end
--judgement
--judgement
function
baka
.
check_set_ApocryphaSavior
(
c
)
function
baka
.
check_set_ApocryphaSavior
(
c
)
return
baka
.
check_set
(
c
,
"ApocryphaSavior"
)
--外 典 救 世 主
return
baka
.
check_set
(
c
,
"ApocryphaSavior"
)
--外 典 救 世 主
end
end
--
--
function
baka
.
check_set_PregnantSwordHime
(
c
)
function
baka
.
check_set_PregnantSwordHime
(
c
)
return
baka
.
check_set
(
c
,
"PregnantSwordHime"
)
--孕 剑 姬
return
baka
.
check_set
(
c
,
"PregnantSwordHime"
)
--孕 剑 姬
end
end
--
--
function
baka
.
check_set_BugOfBug
(
c
)
function
baka
.
check_set_BugOfBug
(
c
)
return
baka
.
check_set
(
c
,
"BugOfBug"
)
--残 思 乐 源
return
baka
.
check_set
(
c
,
"BugOfBug"
)
--残 思 乐 源
end
end
--
--
function
baka
.
check_set_AnoKare
(
c
)
function
baka
.
check_set_AnoKare
(
c
)
return
baka
.
check_set
(
c
,
"AnoKare"
)
--残 思 乐 源
return
baka
.
check_set
(
c
,
"AnoKare"
)
--残 思 乐 源
end
end
\ No newline at end of file
expansions/script/c65050166.lua
View file @
05b84390
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
function
c65050166
.
initial_effect
(
c
)
function
c65050166
.
initial_effect
(
c
)
--fusion material
--fusion material
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
aux
.
AddFusionProcFun2
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsFusionSetCard
,
0x6da8
),
c6505016
4
.
ffilter
,
true
)
aux
.
AddFusionProcFun2
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsFusionSetCard
,
0x6da8
),
c6505016
6
.
ffilter
,
true
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
65050166
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
65050166
,
0
))
...
@@ -52,7 +52,7 @@ function c65050166.activate2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -52,7 +52,7 @@ function c65050166.activate2(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c6505016
4
.
ffilter
(
c
)
function
c6505016
6
.
ffilter
(
c
)
return
c
:
IsFusionSetCard
(
0x6da8
)
and
c
:
IsAttackAbove
(
2000
)
return
c
:
IsFusionSetCard
(
0x6da8
)
and
c
:
IsAttackAbove
(
2000
)
end
end
function
c65050166
.
disfilter
(
c
)
function
c65050166
.
disfilter
(
c
)
...
...
expansions/script/c65050222.lua
View file @
05b84390
...
@@ -32,10 +32,10 @@ function c65050222.initial_effect(c)
...
@@ -32,10 +32,10 @@ function c65050222.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetCode
(
EVENT_LEVEL_UP
)
e3
:
SetCode
(
EVENT_LEVEL_UP
)
e3
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetOperation
(
c6505022
1
.
raop
)
e3
:
SetOperation
(
c6505022
2
.
raop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c6505022
1
.
raop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c6505022
2
.
raop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsLocation
(
LOCATION_MZONE
)
then
if
e
:
GetHandler
():
IsLocation
(
LOCATION_MZONE
)
then
Duel
.
RaiseEvent
(
e
:
GetHandler
(),
EVENT_CUSTOM
+
65050216
,
e
,
0
,
tp
,
0
,
0
)
Duel
.
RaiseEvent
(
e
:
GetHandler
(),
EVENT_CUSTOM
+
65050216
,
e
,
0
,
tp
,
0
,
0
)
end
end
...
...
expansions/script/c65060025.lua
View file @
05b84390
...
@@ -61,6 +61,10 @@ function c65060025.damop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -61,6 +61,10 @@ function c65060025.damop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
end
end
function
c65060025
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ph
=
Duel
.
GetCurrentPhase
()
return
ph
>=
PHASE_BATTLE_START
and
ph
<=
PHASE_BATTLE
end
function
c65060025
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c65060025
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_ATTACK
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
if
chk
==
0
then
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_ATTACK
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
...
...
expansions/script/c77757301.lua
View file @
05b84390
...
@@ -2,7 +2,7 @@ local m=77757301
...
@@ -2,7 +2,7 @@ local m=77757301
local
cm
=
_G
[
"c"
..
m
]
local
cm
=
_G
[
"c"
..
m
]
Duel
.
LoadScript
(
"c37564765.lua"
)
Duel
.
LoadScript
(
"c37564765.lua"
)
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
local
e1
=
E
F
fect
.
CreateEffect
(
c
)
local
e1
=
E
f
fect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
...
...
expansions/script/c81011018.lua
View file @
05b84390
...
@@ -5,9 +5,9 @@ function c81011018.initial_effect(c)
...
@@ -5,9 +5,9 @@ function c81011018.initial_effect(c)
--token
--token
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOKEN
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOKEN
)
e
0
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e
1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e
0
:
SetCode
(
EVENT_FREE_CHAIN
)
e
1
:
SetCode
(
EVENT_FREE_CHAIN
)
e
0
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e
1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
,
81011018
)
e1
:
SetCountLimit
(
1
,
81011018
)
e1
:
SetCost
(
c81011018
.
spcost
)
e1
:
SetCost
(
c81011018
.
spcost
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment