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
xiaoye
ygopro-222DIY-cards
Commits
428da9d9
Commit
428da9d9
authored
Jul 23, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndyd
parent
c9102487
Changes
42
Show whitespace changes
Inline
Side-by-side
Showing
42 changed files
with
569 additions
and
528 deletions
+569
-528
expansions/script/c10200855.lua
expansions/script/c10200855.lua
+1
-0
expansions/script/c1111001.lua
expansions/script/c1111001.lua
+1
-0
expansions/script/c11451457.lua
expansions/script/c11451457.lua
+1
-0
expansions/script/c11451500.lua
expansions/script/c11451500.lua
+1
-0
expansions/script/c1150021.lua
expansions/script/c1150021.lua
+55
-54
expansions/script/c1150036.lua
expansions/script/c1150036.lua
+1
-0
expansions/script/c1156016.lua
expansions/script/c1156016.lua
+1
-0
expansions/script/c1160021.lua
expansions/script/c1160021.lua
+1
-1
expansions/script/c1161001.lua
expansions/script/c1161001.lua
+1
-0
expansions/script/c12009012.lua
expansions/script/c12009012.lua
+1
-0
expansions/script/c15000060.lua
expansions/script/c15000060.lua
+1
-0
expansions/script/c15873643.lua
expansions/script/c15873643.lua
+1
-0
expansions/script/c16400011.lua
expansions/script/c16400011.lua
+1
-0
expansions/script/c17061120.lua
expansions/script/c17061120.lua
+1
-0
expansions/script/c21520236.lua
expansions/script/c21520236.lua
+2
-1
expansions/script/c21520237.lua
expansions/script/c21520237.lua
+1
-0
expansions/script/c21520238.lua
expansions/script/c21520238.lua
+1
-0
expansions/script/c22600022.lua
expansions/script/c22600022.lua
+63
-62
expansions/script/c24310020.lua
expansions/script/c24310020.lua
+1
-0
expansions/script/c24562485.lua
expansions/script/c24562485.lua
+1
-0
expansions/script/c33500534.lua
expansions/script/c33500534.lua
+1
-0
expansions/script/c33700075.lua
expansions/script/c33700075.lua
+1
-0
expansions/script/c33700171.lua
expansions/script/c33700171.lua
+1
-0
expansions/script/c47510004.lua
expansions/script/c47510004.lua
+135
-134
expansions/script/c47510119.lua
expansions/script/c47510119.lua
+1
-0
expansions/script/c47510219.lua
expansions/script/c47510219.lua
+170
-169
expansions/script/c47530052.lua
expansions/script/c47530052.lua
+1
-0
expansions/script/c47530113.lua
expansions/script/c47530113.lua
+77
-76
expansions/script/c47590893.lua
expansions/script/c47590893.lua
+32
-31
expansions/script/c53799001.lua
expansions/script/c53799001.lua
+1
-0
expansions/script/c65000064.lua
expansions/script/c65000064.lua
+1
-0
expansions/script/c65000065.lua
expansions/script/c65000065.lua
+1
-0
expansions/script/c65071069.lua
expansions/script/c65071069.lua
+1
-0
expansions/script/c81041030.lua
expansions/script/c81041030.lua
+1
-0
expansions/script/c9300329.lua
expansions/script/c9300329.lua
+1
-0
expansions/script/c9310020.lua
expansions/script/c9310020.lua
+1
-0
expansions/script/c960006.lua
expansions/script/c960006.lua
+1
-0
expansions/script/c960007.lua
expansions/script/c960007.lua
+1
-0
expansions/script/c960012.lua
expansions/script/c960012.lua
+1
-0
expansions/script/c960019.lua
expansions/script/c960019.lua
+1
-0
expansions/script/c98600002.lua
expansions/script/c98600002.lua
+1
-0
expansions/script/c98600012.lua
expansions/script/c98600012.lua
+1
-0
No files found.
expansions/script/c10200855.lua
View file @
428da9d9
...
@@ -29,6 +29,7 @@ function cm.initial_effect(c)
...
@@ -29,6 +29,7 @@ function cm.initial_effect(c)
e2
:
SetOperation
(
cm
.
activate
)
e2
:
SetOperation
(
cm
.
activate
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
cm
.
toss_dice
=
true
function
cm
.
filter
(
c
)
function
cm
.
filter
(
c
)
return
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsLocation
(
LOCATION_HAND
)
return
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsLocation
(
LOCATION_HAND
)
end
end
...
...
expansions/script/c1111001.lua
View file @
428da9d9
...
@@ -24,6 +24,7 @@ function c1111001.initial_effect(c)
...
@@ -24,6 +24,7 @@ function c1111001.initial_effect(c)
--
--
end
end
--
--
c1111001
.
toss_coin
=
true
function
c1111001
.
tg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c1111001
.
tg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COIN
,
nil
,
0
,
tp
,
3
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COIN
,
nil
,
0
,
tp
,
3
)
...
...
expansions/script/c11451457.lua
View file @
428da9d9
...
@@ -23,6 +23,7 @@ function cm.initial_effect(c)
...
@@ -23,6 +23,7 @@ function cm.initial_effect(c)
e2
:
SetOperation
(
cm
.
spop
)
e2
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
cm
.
toss_dice
=
true
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
local
deck
=
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
local
deck
=
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
...
...
expansions/script/c11451500.lua
View file @
428da9d9
...
@@ -12,6 +12,7 @@ function cm.initial_effect(c)
...
@@ -12,6 +12,7 @@ function cm.initial_effect(c)
e1
:
SetOperation
(
cm
.
execution
)
e1
:
SetOperation
(
cm
.
execution
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
cm
.
toss_coin
=
true
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
>
0
return
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
>
0
end
end
...
...
expansions/script/c1150021.lua
View file @
428da9d9
...
@@ -13,6 +13,7 @@ function c1150021.initial_effect(c)
...
@@ -13,6 +13,7 @@ function c1150021.initial_effect(c)
--
--
end
end
--
--
c1150021
.
toss_coin
=
true
function
c1150021
.
tg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c1150021
.
tg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsFaceup
()
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsFaceup
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
...
...
expansions/script/c1150036.lua
View file @
428da9d9
...
@@ -17,6 +17,7 @@ function c1150036.initial_effect(c)
...
@@ -17,6 +17,7 @@ function c1150036.initial_effect(c)
--
--
end
end
--
--
c1150036
.
toss_dice
=
true
function
c1150036
.
tg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c1150036
.
tg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
>
0
end
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
>
0
end
end
end
...
...
expansions/script/c1156016.lua
View file @
428da9d9
...
@@ -32,6 +32,7 @@ function c1156016.initial_effect(c)
...
@@ -32,6 +32,7 @@ function c1156016.initial_effect(c)
--
--
end
end
--
--
c1156016
.
toss_coin
=
true
function
c1156016
.
lcheck
(
c
)
function
c1156016
.
lcheck
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
IsType
(
TYPE_EFFECT
)
return
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
IsType
(
TYPE_EFFECT
)
end
end
...
...
expansions/script/c1160021.lua
View file @
428da9d9
...
@@ -49,7 +49,7 @@ function c1160021.initial_effect(c)
...
@@ -49,7 +49,7 @@ function c1160021.initial_effect(c)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
--
--
end
end
--
c1160021
.
toss_coin
=
true
--
function
c1160021
.
con1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c1160021
.
con1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
and
re
:
GetHandler
():
GetLevel
()
==
1
return
re
and
re
:
GetHandler
():
GetLevel
()
==
1
end
end
...
...
expansions/script/c1161001.lua
View file @
428da9d9
...
@@ -21,6 +21,7 @@ function c1161001.initial_effect(c)
...
@@ -21,6 +21,7 @@ function c1161001.initial_effect(c)
--
--
end
end
--
--
c1161001
.
toss_coin
=
true
function
c1161001
.
cfilter1
(
c
)
function
c1161001
.
cfilter1
(
c
)
return
c
:
IsFaceup
()
and
c
:
GetLevel
()
==
1
return
c
:
IsFaceup
()
and
c
:
GetLevel
()
==
1
end
end
...
...
expansions/script/c12009012.lua
View file @
428da9d9
...
@@ -27,6 +27,7 @@ function c12009012.initial_effect(c)
...
@@ -27,6 +27,7 @@ function c12009012.initial_effect(c)
e3
:
SetOperation
(
c12009012
.
sgop
)
e3
:
SetOperation
(
c12009012
.
sgop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
c12009012
.
toss_coin
=
true
function
c12009012
.
sgcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c12009012
.
sgcost
(
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
)
...
...
expansions/script/c15000060.lua
View file @
428da9d9
...
@@ -49,6 +49,7 @@ function cm.initial_effect(c)
...
@@ -49,6 +49,7 @@ function cm.initial_effect(c)
e8
:
SetCode
(
EVENT_FLIP_SUMMON_SUCCESS
)
e8
:
SetCode
(
EVENT_FLIP_SUMMON_SUCCESS
)
c
:
RegisterEffect
(
e8
)
c
:
RegisterEffect
(
e8
)
end
end
cm
.
toss_dice
=
true
function
c15000060
.
ctfilter
(
c
)
function
c15000060
.
ctfilter
(
c
)
return
c
:
IsFaceup
()
return
c
:
IsFaceup
()
end
end
...
...
expansions/script/c15873643.lua
View file @
428da9d9
...
@@ -9,6 +9,7 @@ function cm.initial_effect(c)
...
@@ -9,6 +9,7 @@ function cm.initial_effect(c)
local
e3
=
rsphh
.
ImmueFun
(
c
,
ATTRIBUTE_DARK
)
local
e3
=
rsphh
.
ImmueFun
(
c
,
ATTRIBUTE_DARK
)
local
e4
=
rsphh
.
EndPhaseFun
(
c
,
15873611
)
local
e4
=
rsphh
.
EndPhaseFun
(
c
,
15873611
)
end
end
cm
.
toss_coin
=
true
function
cm
.
fun
(
g
,
e
,
tp
)
function
cm
.
fun
(
g
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COIN
,
nil
,
0
,
tp
,
2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COIN
,
nil
,
0
,
tp
,
2
)
end
end
...
...
expansions/script/c16400011.lua
View file @
428da9d9
...
@@ -14,6 +14,7 @@ function c16400011.initial_effect(c)
...
@@ -14,6 +14,7 @@ function c16400011.initial_effect(c)
e2
:
SetOperation
(
c16400011
.
desop1
)
e2
:
SetOperation
(
c16400011
.
desop1
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
c16400011
.
toss_dice
=
true
function
c16400011
.
gaincon
(
code
)
function
c16400011
.
gaincon
(
code
)
return
function
(
e
)
return
function
(
e
)
return
Duel
.
IsExistingMatchingCard
(
c16400011
.
refilter
,
e
:
GetHandlerPlayer
(),
0
,
LOCATION_ONFIELD
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c16400011
.
refilter
,
e
:
GetHandlerPlayer
(),
0
,
LOCATION_ONFIELD
,
1
,
nil
)
...
...
expansions/script/c17061120.lua
View file @
428da9d9
...
@@ -35,6 +35,7 @@ function cm.initial_effect(c)
...
@@ -35,6 +35,7 @@ function cm.initial_effect(c)
e3
:
SetOperation
(
cm
.
penop
)
e3
:
SetOperation
(
cm
.
penop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
cm
.
toss_dice
=
true
function
cm
.
cfilter
(
c
,
tp
)
function
cm
.
cfilter
(
c
,
tp
)
return
c
:
IsControler
(
tp
)
and
c
:
IsSummonType
(
SUMMON_TYPE_PENDULUM
)
return
c
:
IsControler
(
tp
)
and
c
:
IsSummonType
(
SUMMON_TYPE_PENDULUM
)
end
end
...
...
expansions/script/c21520236.lua
View file @
428da9d9
...
@@ -32,6 +32,7 @@ function c21520236.initial_effect(c)
...
@@ -32,6 +32,7 @@ function c21520236.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
Duel
.
AddCustomActivityCounter
(
21520236
,
ACTIVITY_CHAIN
,
c21520236
.
chainfilter
)
Duel
.
AddCustomActivityCounter
(
21520236
,
ACTIVITY_CHAIN
,
c21520236
.
chainfilter
)
end
end
c21520236
.
toss_coin
=
true
function
c21520236
.
chainfilter
(
re
,
tp
,
cid
)
function
c21520236
.
chainfilter
(
re
,
tp
,
cid
)
return
re
:
GetHandler
():
IsSetCard
(
0x491
)
return
re
:
GetHandler
():
IsSetCard
(
0x491
)
end
end
...
...
expansions/script/c21520237.lua
View file @
428da9d9
...
@@ -32,6 +32,7 @@ function c21520237.initial_effect(c)
...
@@ -32,6 +32,7 @@ function c21520237.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
Duel
.
AddCustomActivityCounter
(
21520237
,
ACTIVITY_CHAIN
,
c21520237
.
chainfilter
)
Duel
.
AddCustomActivityCounter
(
21520237
,
ACTIVITY_CHAIN
,
c21520237
.
chainfilter
)
end
end
c21520237
.
toss_dice
=
true
function
c21520237
.
chainfilter
(
re
,
tp
,
cid
)
function
c21520237
.
chainfilter
(
re
,
tp
,
cid
)
return
re
:
GetHandler
():
IsSetCard
(
0x491
)
return
re
:
GetHandler
():
IsSetCard
(
0x491
)
end
end
...
...
expansions/script/c21520238.lua
View file @
428da9d9
...
@@ -32,6 +32,7 @@ function c21520238.initial_effect(c)
...
@@ -32,6 +32,7 @@ function c21520238.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
Duel
.
AddCustomActivityCounter
(
21520238
,
ACTIVITY_CHAIN
,
c21520238
.
chainfilter
)
Duel
.
AddCustomActivityCounter
(
21520238
,
ACTIVITY_CHAIN
,
c21520238
.
chainfilter
)
end
end
c21520238
.
toss_dice
=
true
function
c21520238
.
chainfilter
(
re
,
tp
,
cid
)
function
c21520238
.
chainfilter
(
re
,
tp
,
cid
)
return
re
:
GetHandler
():
IsSetCard
(
0x491
)
return
re
:
GetHandler
():
IsSetCard
(
0x491
)
end
end
...
...
expansions/script/c22600022.lua
View file @
428da9d9
...
@@ -28,6 +28,7 @@ function c22600022.initial_effect(c)
...
@@ -28,6 +28,7 @@ function c22600022.initial_effect(c)
e2
:
SetOperation
(
c22600022
.
spop
)
e2
:
SetOperation
(
c22600022
.
spop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
c22600022
.
toss_dice
=
true
function
c22600022
.
matfilter
(
c
)
function
c22600022
.
matfilter
(
c
)
return
not
(
c
:
IsType
(
TYPE_LINK
)
and
c
:
IsType
(
TYPE_XYZ
))
return
not
(
c
:
IsType
(
TYPE_LINK
)
and
c
:
IsType
(
TYPE_XYZ
))
end
end
...
...
expansions/script/c24310020.lua
View file @
428da9d9
...
@@ -54,6 +54,7 @@ function c24310020.initial_effect(c)
...
@@ -54,6 +54,7 @@ function c24310020.initial_effect(c)
end
end
-----------------------------------------------1
-----------------------------------------------1
c24310020
.
toss_dice
=
true
function
c24310020
.
cfilter
(
c
,
tp
)
function
c24310020
.
cfilter
(
c
,
tp
)
return
c
:
GetSummonPlayer
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_EXTRA
)
and
c
:
IsFaceup
()
and
c
:
GetLevel
()
>
1
return
c
:
GetSummonPlayer
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_EXTRA
)
and
c
:
IsFaceup
()
and
c
:
GetLevel
()
>
1
end
end
...
...
expansions/script/c24562485.lua
View file @
428da9d9
...
@@ -21,6 +21,7 @@ function c24562485.initial_effect(c)
...
@@ -21,6 +21,7 @@ function c24562485.initial_effect(c)
e2
:
SetOperation
(
c24562485
.
activate
)
e2
:
SetOperation
(
c24562485
.
activate
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
c24562485
.
toss_dice
=
true
function
c24562485
.
cfilter
(
c
)
function
c24562485
.
cfilter
(
c
)
return
c
:
IsSetCard
(
0x9390
)
and
c
:
IsAbleToRemoveAsCost
()
return
c
:
IsSetCard
(
0x9390
)
and
c
:
IsAbleToRemoveAsCost
()
end
end
...
...
expansions/script/c33500534.lua
View file @
428da9d9
...
@@ -16,6 +16,7 @@ function cm.initial_effect(c)
...
@@ -16,6 +16,7 @@ function cm.initial_effect(c)
e1
:
SetOperation
(
cm
.
desop
)
e1
:
SetOperation
(
cm
.
desop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
cm
.
toss_coin
=
true
function
cm
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_RITUAL
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_RITUAL
)
end
end
...
...
expansions/script/c33700075.lua
View file @
428da9d9
...
@@ -53,6 +53,7 @@ function c33700075.initial_effect(c)
...
@@ -53,6 +53,7 @@ function c33700075.initial_effect(c)
e6
:
SetCondition
(
c33700075
.
con3
)
e6
:
SetCondition
(
c33700075
.
con3
)
c
:
RegisterEffect
(
e6
)
c
:
RegisterEffect
(
e6
)
end
end
c33700075
.
toss_coin
=
true
function
c33700075
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c33700075
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
...
...
expansions/script/c33700171.lua
View file @
428da9d9
...
@@ -37,6 +37,7 @@ function c33700171.initial_effect(c)
...
@@ -37,6 +37,7 @@ function c33700171.initial_effect(c)
e3
:
SetOperation
(
c33700171
.
op
)
e3
:
SetOperation
(
c33700171
.
op
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
c33700171
.
toss_coin
=
true
function
c33700171
.
matfilter
(
c
,
syncard
)
function
c33700171
.
matfilter
(
c
,
syncard
)
return
c
:
IsFaceup
()
and
c
:
IsCanBeSynchroMaterial
(
syncard
)
return
c
:
IsFaceup
()
and
c
:
IsCanBeSynchroMaterial
(
syncard
)
end
end
...
...
expansions/script/c47510004.lua
View file @
428da9d9
...
@@ -60,6 +60,7 @@ function c47510004.initial_effect(c)
...
@@ -60,6 +60,7 @@ function c47510004.initial_effect(c)
e7
:
SetValue
(
c47510004
.
efilter
)
e7
:
SetValue
(
c47510004
.
efilter
)
c
:
RegisterEffect
(
e7
)
c
:
RegisterEffect
(
e7
)
end
end
c47510004
.
toss_dice
=
true
function
c47510004
.
immcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c47510004
.
immcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
())
return
not
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
())
end
end
...
...
expansions/script/c47510119.lua
View file @
428da9d9
...
@@ -62,6 +62,7 @@ function c47510119.initial_effect(c)
...
@@ -62,6 +62,7 @@ function c47510119.initial_effect(c)
e10
:
SetOperation
(
c47510119
.
penop
)
e10
:
SetOperation
(
c47510119
.
penop
)
c
:
RegisterEffect
(
e10
)
c
:
RegisterEffect
(
e10
)
end
end
c47510119
.
toss_dice
=
true
function
c47510119
.
bacon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c47510119
.
bacon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
return
Duel
.
GetTurnPlayer
()
==
tp
end
end
...
...
expansions/script/c47510219.lua
View file @
428da9d9
...
@@ -55,6 +55,7 @@ function c47510219.initial_effect(c)
...
@@ -55,6 +55,7 @@ function c47510219.initial_effect(c)
e6
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
e6
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
c
:
RegisterEffect
(
e6
)
c
:
RegisterEffect
(
e6
)
end
end
c47510219
.
toss_dice
=
true
function
c47510219
.
splimit
(
e
,
c
)
function
c47510219
.
splimit
(
e
,
c
)
return
not
c
:
IsAttribute
(
ATTRIBUTE_EARTH
)
return
not
c
:
IsAttribute
(
ATTRIBUTE_EARTH
)
end
end
...
...
expansions/script/c47530052.lua
View file @
428da9d9
...
@@ -42,6 +42,7 @@ function c47530052.initial_effect(c)
...
@@ -42,6 +42,7 @@ function c47530052.initial_effect(c)
e5
:
SetOperation
(
c47530052
.
ffop
)
e5
:
SetOperation
(
c47530052
.
ffop
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
c47530052
.
toss_coin
=
true
function
c47530052
.
sprfilter
(
c
)
function
c47530052
.
sprfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsReleasable
()
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsReleasable
()
end
end
...
...
expansions/script/c47530113.lua
View file @
428da9d9
...
@@ -48,6 +48,7 @@ function c47530113.initial_effect(c)
...
@@ -48,6 +48,7 @@ function c47530113.initial_effect(c)
e5
:
SetOperation
(
c47530113
.
sumsuc
)
e5
:
SetOperation
(
c47530113
.
sumsuc
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
cm
.
toss_coin
=
true
function
c47530113
.
sumsuc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c47530113
.
sumsuc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_MUSIC
,
0
,
aux
.
Stringid
(
47530113
,
0
))
Duel
.
Hint
(
HINT_MUSIC
,
0
,
aux
.
Stringid
(
47530113
,
0
))
end
end
...
...
expansions/script/c47590893.lua
View file @
428da9d9
...
@@ -11,6 +11,7 @@ function c47590893.initial_effect(c)
...
@@ -11,6 +11,7 @@ function c47590893.initial_effect(c)
e1
:
SetOperation
(
c47590893
.
operation
)
e1
:
SetOperation
(
c47590893
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c47590893
.
toss_dice
=
true
function
c47590893
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c47590893
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
d1
,
d2
=
Duel
.
TossDice
(
tp
,
2
)
local
d1
,
d2
=
Duel
.
TossDice
(
tp
,
2
)
if
d1
==
1
or
d2
==
1
then
if
d1
==
1
or
d2
==
1
then
...
...
expansions/script/c53799001.lua
View file @
428da9d9
...
@@ -17,6 +17,7 @@ function c53799001.initial_effect(c)
...
@@ -17,6 +17,7 @@ function c53799001.initial_effect(c)
e3
:
SetOperation
(
c53799001
.
operation
)
e3
:
SetOperation
(
c53799001
.
operation
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
c53799001
.
toss_dice
=
true
function
c53799001
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c53799001
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
expansions/script/c65000064.lua
View file @
428da9d9
...
@@ -49,6 +49,7 @@ function c65000064.initial_effect(c)
...
@@ -49,6 +49,7 @@ function c65000064.initial_effect(c)
e5
:
SetLabelObject
(
e4
)
e5
:
SetLabelObject
(
e4
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
cm
.
toss_coin
=
true
function
cm
.
val
(
e
,
c
)
function
cm
.
val
(
e
,
c
)
return
c
:
IsLevelBelow
(
6
)
return
c
:
IsLevelBelow
(
6
)
end
end
...
...
expansions/script/c65000065.lua
View file @
428da9d9
...
@@ -40,6 +40,7 @@ function c65000065.initial_effect(c)
...
@@ -40,6 +40,7 @@ function c65000065.initial_effect(c)
e5
:
SetLabelObject
(
e4
)
e5
:
SetLabelObject
(
e4
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
cm
.
toss_coin
=
true
function
cm
.
rlevel
(
e
,
c
)
function
cm
.
rlevel
(
e
,
c
)
local
lv
=
e
:
GetHandler
():
GetLevel
()
local
lv
=
e
:
GetHandler
():
GetLevel
()
if
c
:
IsLevelBelow
(
6
)
then
if
c
:
IsLevelBelow
(
6
)
then
...
...
expansions/script/c65071069.lua
View file @
428da9d9
...
@@ -19,6 +19,7 @@ function c65071069.initial_effect(c)
...
@@ -19,6 +19,7 @@ function c65071069.initial_effect(c)
e2
:
SetOperation
(
c65071069
.
desop
)
e2
:
SetOperation
(
c65071069
.
desop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
c65071069
.
toss_dice
=
true
function
c65071069
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c65071069
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsType
(
TYPE_MONSTER
)
and
chkc
:
IsOnField
()
end
if
chkc
then
return
chkc
:
IsType
(
TYPE_MONSTER
)
and
chkc
:
IsOnField
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
...
...
expansions/script/c81041030.lua
View file @
428da9d9
...
@@ -47,6 +47,7 @@ function c81041030.initial_effect(c)
...
@@ -47,6 +47,7 @@ function c81041030.initial_effect(c)
e6
:
SetOperation
(
c81041030
.
penop
)
e6
:
SetOperation
(
c81041030
.
penop
)
c
:
RegisterEffect
(
e6
)
c
:
RegisterEffect
(
e6
)
end
end
c81041030
.
toss_dice
=
true
function
c81041030
.
ffilter
(
c
)
function
c81041030
.
ffilter
(
c
)
return
c
:
IsAttack
(
1550
)
and
c
:
IsDefense
(
1050
)
and
c
:
IsFusionType
(
TYPE_PENDULUM
)
and
c
:
IsFusionType
(
TYPE_RITUAL
)
return
c
:
IsAttack
(
1550
)
and
c
:
IsDefense
(
1050
)
and
c
:
IsFusionType
(
TYPE_PENDULUM
)
and
c
:
IsFusionType
(
TYPE_RITUAL
)
end
end
...
...
expansions/script/c9300329.lua
View file @
428da9d9
...
@@ -56,6 +56,7 @@ function c9300329.initial_effect(c)
...
@@ -56,6 +56,7 @@ function c9300329.initial_effect(c)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
c9300329
.
pendulum_level
=
4
c9300329
.
pendulum_level
=
4
c9300329
.
toss_coin
=
true
function
c9300329
.
mattg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c9300329
.
mattg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
...
expansions/script/c9310020.lua
View file @
428da9d9
...
@@ -30,6 +30,7 @@ function c9310020.initial_effect(c)
...
@@ -30,6 +30,7 @@ function c9310020.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
c9310020
.
setname
=
"MrsDice_Taught"
c9310020
.
setname
=
"MrsDice_Taught"
c9310020
.
toss_dice
=
true
function
c9310020
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c9310020
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsPublic
()
end
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsPublic
()
end
end
end
...
...
expansions/script/c960006.lua
View file @
428da9d9
...
@@ -22,6 +22,7 @@ function c960006.initial_effect(c)
...
@@ -22,6 +22,7 @@ function c960006.initial_effect(c)
e4
:
SetOperation
(
c960006
.
tdop
)
e4
:
SetOperation
(
c960006
.
tdop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
c960006
.
toss_dice
=
true
function
c960006
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c960006
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
500
)
end
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
500
)
end
Duel
.
PayLPCost
(
tp
,
500
)
Duel
.
PayLPCost
(
tp
,
500
)
...
...
expansions/script/c960007.lua
View file @
428da9d9
...
@@ -23,6 +23,7 @@ function c960007.initial_effect(c)
...
@@ -23,6 +23,7 @@ function c960007.initial_effect(c)
e4
:
SetOperation
(
c960007
.
tdop
)
e4
:
SetOperation
(
c960007
.
tdop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
c960007
.
toss_dice
=
true
function
c960007
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c960007
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
500
)
end
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
500
)
end
Duel
.
PayLPCost
(
tp
,
500
)
Duel
.
PayLPCost
(
tp
,
500
)
...
...
expansions/script/c960012.lua
View file @
428da9d9
...
@@ -33,6 +33,7 @@ function c960012.initial_effect(c)
...
@@ -33,6 +33,7 @@ function c960012.initial_effect(c)
e8
:
SetOperation
(
c960012
.
sumsuc
)
e8
:
SetOperation
(
c960012
.
sumsuc
)
c
:
RegisterEffect
(
e8
)
c
:
RegisterEffect
(
e8
)
end
end
c960012
.
toss_dice
=
true
function
c960012
.
sumsuc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c960012
.
sumsuc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_MUSIC
,
0
,
aux
.
Stringid
(
960012
,
0
))
Duel
.
Hint
(
HINT_MUSIC
,
0
,
aux
.
Stringid
(
960012
,
0
))
end
end
...
...
expansions/script/c960019.lua
View file @
428da9d9
...
@@ -23,6 +23,7 @@ function c960019.initial_effect(c)
...
@@ -23,6 +23,7 @@ function c960019.initial_effect(c)
e4
:
SetOperation
(
c960019
.
tdop
)
e4
:
SetOperation
(
c960019
.
tdop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
c960019
.
toss_dice
=
true
function
c960019
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c960019
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
500
)
end
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
500
)
end
Duel
.
PayLPCost
(
tp
,
500
)
Duel
.
PayLPCost
(
tp
,
500
)
...
...
expansions/script/c98600002.lua
View file @
428da9d9
...
@@ -18,6 +18,7 @@ function c98600002.initial_effect(c)
...
@@ -18,6 +18,7 @@ function c98600002.initial_effect(c)
e1
:
SetOperation
(
c98600002
.
coinop
)
e1
:
SetOperation
(
c98600002
.
coinop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c98600002
.
toss_coin
=
true
function
c98600002
.
fscon
(
e
,
g
,
gc
,
chkfnf
)
function
c98600002
.
fscon
(
e
,
g
,
gc
,
chkfnf
)
if
g
==
nil
then
return
true
end
if
g
==
nil
then
return
true
end
if
gc
then
return
false
end
if
gc
then
return
false
end
...
...
expansions/script/c98600012.lua
View file @
428da9d9
...
@@ -52,6 +52,7 @@ function cm.initial_effect(c)
...
@@ -52,6 +52,7 @@ function cm.initial_effect(c)
e1
:
SetOperation
(
cm
.
op
)
e1
:
SetOperation
(
cm
.
op
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
cm
.
toss_dice
=
true
function
cm
.
filter
(
c
,
tp
)
function
cm
.
filter
(
c
,
tp
)
return
c
:
IsPreviousLocation
(
LOCATION_DECK
+
LOCATION_ONFIELD
)
and
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsControler
(
tp
)
return
c
:
IsPreviousLocation
(
LOCATION_DECK
+
LOCATION_ONFIELD
)
and
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsControler
(
tp
)
end
end
...
...
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