Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
nanahira
ygopro-scripts
Commits
92130b02
Commit
92130b02
authored
Nov 08, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/patch-dice' into develop
parents
5127eece
668f055a
Changes
56
Show whitespace changes
Inline
Side-by-side
Showing
56 changed files
with
17 additions
and
61 deletions
+17
-61
c10960419.lua
c10960419.lua
+0
-1
c11808215.lua
c11808215.lua
+0
-1
c12148078.lua
c12148078.lua
+0
-1
c126218.lua
c126218.lua
+0
-1
c15521027.lua
c15521027.lua
+0
-1
c15744417.lua
c15744417.lua
+0
-1
c16135253.lua
c16135253.lua
+0
-1
c17530001.lua
c17530001.lua
+0
-1
c22802010.lua
c22802010.lua
+0
-1
c30707994.lua
c30707994.lua
+0
-1
c31863912.lua
c31863912.lua
+0
-1
c32015116.lua
c32015116.lua
+0
-1
c3280747.lua
c3280747.lua
+0
-1
c3493058.lua
c3493058.lua
+0
-1
c3549275.lua
c3549275.lua
+0
-1
c35606858.lua
c35606858.lua
+0
-1
c35772782.lua
c35772782.lua
+0
-1
c35798491.lua
c35798491.lua
+0
-1
c35975813.lua
c35975813.lua
+0
-1
c36708764.lua
c36708764.lua
+0
-1
c38082437.lua
c38082437.lua
+0
-1
c38299233.lua
c38299233.lua
+0
-1
c41139112.lua
c41139112.lua
+0
-1
c42421606.lua
c42421606.lua
+0
-1
c43061293.lua
c43061293.lua
+0
-1
c46303688.lua
c46303688.lua
+0
-1
c47292920.lua
c47292920.lua
+3
-3
c47558785.lua
c47558785.lua
+0
-2
c53154400.lua
c53154400.lua
+0
-1
c5641251.lua
c5641251.lua
+0
-1
c61370518.lua
c61370518.lua
+0
-1
c62893810.lua
c62893810.lua
+0
-1
c69170403.lua
c69170403.lua
+0
-1
c71459017.lua
c71459017.lua
+0
-1
c72192100.lua
c72192100.lua
+0
-1
c73219648.lua
c73219648.lua
+0
-1
c74137509.lua
c74137509.lua
+0
-1
c76895648.lua
c76895648.lua
+0
-1
c77994337.lua
c77994337.lua
+0
-2
c82308875.lua
c82308875.lua
+0
-1
c83241722.lua
c83241722.lua
+0
-1
c84046493.lua
c84046493.lua
+0
-2
c84290642.lua
c84290642.lua
+0
-1
c84397023.lua
c84397023.lua
+0
-1
c84813516.lua
c84813516.lua
+0
-1
c85704698.lua
c85704698.lua
+0
-1
c8581705.lua
c8581705.lua
+0
-1
c86154370.lua
c86154370.lua
+0
-1
c87897777.lua
c87897777.lua
+0
-1
c8868767.lua
c8868767.lua
+0
-1
c93078761.lua
c93078761.lua
+1
-2
c93542102.lua
c93542102.lua
+0
-1
c96015976.lua
c96015976.lua
+0
-1
c9603356.lua
c9603356.lua
+0
-1
c97642679.lua
c97642679.lua
+0
-1
utility.lua
utility.lua
+13
-0
No files found.
c10960419.lua
View file @
92130b02
...
@@ -19,7 +19,6 @@ function c10960419.initial_effect(c)
...
@@ -19,7 +19,6 @@ function c10960419.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
c10960419
.
material_race
=
RACE_SPELLCASTER
c10960419
.
material_race
=
RACE_SPELLCASTER
c10960419
.
toss_dice
=
true
function
c10960419
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c10960419
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsFaceup
()
and
chkc
~=
e
:
GetHandler
()
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsFaceup
()
and
chkc
~=
e
:
GetHandler
()
end
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
...
c11808215.lua
View file @
92130b02
...
@@ -20,7 +20,6 @@ function c11808215.initial_effect(c)
...
@@ -20,7 +20,6 @@ function c11808215.initial_effect(c)
e2
:
SetOperation
(
c11808215
.
diceop
)
e2
:
SetOperation
(
c11808215
.
diceop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
c11808215
.
toss_dice
=
true
function
c11808215
.
thfilter
(
c
)
function
c11808215
.
thfilter
(
c
)
return
c
:
IsCode
(
47292920
)
and
c
:
IsAbleToHand
()
return
c
:
IsCode
(
47292920
)
and
c
:
IsAbleToHand
()
end
end
...
...
c12148078.lua
View file @
92130b02
...
@@ -12,7 +12,6 @@ function c12148078.initial_effect(c)
...
@@ -12,7 +12,6 @@ function c12148078.initial_effect(c)
e1
:
SetOperation
(
c12148078
.
activate
)
e1
:
SetOperation
(
c12148078
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c12148078
.
toss_dice
=
true
function
c12148078
.
cfilter
(
c
,
e
,
tp
)
function
c12148078
.
cfilter
(
c
,
e
,
tp
)
return
c
:
IsDiscardable
()
return
c
:
IsDiscardable
()
and
Duel
.
IsExistingMatchingCard
(
c12148078
.
spfilter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
c
,
e
,
tp
,
6
)
and
Duel
.
IsExistingMatchingCard
(
c12148078
.
spfilter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
c
,
e
,
tp
,
6
)
...
...
c126218.lua
View file @
92130b02
...
@@ -13,7 +13,6 @@ function c126218.initial_effect(c)
...
@@ -13,7 +13,6 @@ function c126218.initial_effect(c)
e1
:
SetOperation
(
c126218
.
activate
)
e1
:
SetOperation
(
c126218
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c126218
.
toss_dice
=
true
function
c126218
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c126218
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DICE
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DICE
,
nil
,
0
,
tp
,
1
)
...
...
c15521027.lua
View file @
92130b02
...
@@ -35,7 +35,6 @@ function c15521027.initial_effect(c)
...
@@ -35,7 +35,6 @@ function c15521027.initial_effect(c)
e3
:
SetOperation
(
c15521027
.
opd
)
e3
:
SetOperation
(
c15521027
.
opd
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
c15521027
.
toss_dice
=
true
function
c15521027
.
spfilter
(
c
)
function
c15521027
.
spfilter
(
c
)
return
c
:
IsSetCard
(
0x26
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemoveAsCost
()
return
c
:
IsSetCard
(
0x26
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemoveAsCost
()
end
end
...
...
c15744417.lua
View file @
92130b02
...
@@ -12,7 +12,6 @@ function c15744417.initial_effect(c)
...
@@ -12,7 +12,6 @@ function c15744417.initial_effect(c)
e1
:
SetOperation
(
c15744417
.
operation
)
e1
:
SetOperation
(
c15744417
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c15744417
.
toss_dice
=
true
function
c15744417
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c15744417
.
target
(
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_DICE
,
nil
,
0
,
tp
,
3
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DICE
,
nil
,
0
,
tp
,
3
)
...
...
c16135253.lua
View file @
92130b02
...
@@ -12,7 +12,6 @@ function c16135253.initial_effect(c)
...
@@ -12,7 +12,6 @@ function c16135253.initial_effect(c)
e1
:
SetOperation
(
c16135253
.
operation
)
e1
:
SetOperation
(
c16135253
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c16135253
.
toss_dice
=
true
function
c16135253
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c16135253
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
)
and
e
:
GetHandler
():
IsReason
(
REASON_BATTLE
)
return
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
)
and
e
:
GetHandler
():
IsReason
(
REASON_BATTLE
)
end
end
...
...
c17530001.lua
View file @
92130b02
...
@@ -12,7 +12,6 @@ function c17530001.initial_effect(c)
...
@@ -12,7 +12,6 @@ function c17530001.initial_effect(c)
e1
:
SetOperation
(
c17530001
.
operation
)
e1
:
SetOperation
(
c17530001
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c17530001
.
toss_dice
=
true
function
c17530001
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c17530001
.
target
(
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_DICE
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DICE
,
nil
,
0
,
tp
,
1
)
...
...
c22802010.lua
View file @
92130b02
...
@@ -11,7 +11,6 @@ function c22802010.initial_effect(c)
...
@@ -11,7 +11,6 @@ function c22802010.initial_effect(c)
e1
:
SetOperation
(
c22802010
.
activate
)
e1
:
SetOperation
(
c22802010
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c22802010
.
toss_dice
=
true
function
c22802010
.
filter
(
c
,
lv
)
function
c22802010
.
filter
(
c
,
lv
)
return
c
:
IsFaceup
()
and
(
c
:
IsLevelBelow
(
lv
)
or
c
:
IsRankBelow
(
lv
))
return
c
:
IsFaceup
()
and
(
c
:
IsLevelBelow
(
lv
)
or
c
:
IsRankBelow
(
lv
))
end
end
...
...
c30707994.lua
View file @
92130b02
...
@@ -12,7 +12,6 @@ function c30707994.initial_effect(c)
...
@@ -12,7 +12,6 @@ function c30707994.initial_effect(c)
e1
:
SetOperation
(
c30707994
.
operation
)
e1
:
SetOperation
(
c30707994
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c30707994
.
toss_dice
=
true
function
c30707994
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c30707994
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_ADVANCE
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_ADVANCE
)
end
end
...
...
c31863912.lua
View file @
92130b02
...
@@ -20,7 +20,6 @@ function c31863912.initial_effect(c)
...
@@ -20,7 +20,6 @@ function c31863912.initial_effect(c)
e2
:
SetLabel
(
1
)
e2
:
SetLabel
(
1
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
c31863912
.
toss_dice
=
true
function
c31863912
.
cfilter
(
c
,
sp
)
function
c31863912
.
cfilter
(
c
,
sp
)
return
c
:
IsFaceup
()
and
c
:
IsSummonPlayer
(
sp
)
return
c
:
IsFaceup
()
and
c
:
IsSummonPlayer
(
sp
)
end
end
...
...
c32015116.lua
View file @
92130b02
...
@@ -20,7 +20,6 @@ function c32015116.initial_effect(c)
...
@@ -20,7 +20,6 @@ function c32015116.initial_effect(c)
e2
:
SetOperation
(
c32015116
.
rdop
)
e2
:
SetOperation
(
c32015116
.
rdop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
c32015116
.
toss_dice
=
true
function
c32015116
.
rdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c32015116
.
rdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
==
Duel
.
GetTurnPlayer
()
return
tp
==
Duel
.
GetTurnPlayer
()
end
end
...
...
c3280747.lua
View file @
92130b02
...
@@ -10,7 +10,6 @@ function c3280747.initial_effect(c)
...
@@ -10,7 +10,6 @@ function c3280747.initial_effect(c)
e1
:
SetOperation
(
c3280747
.
activate
)
e1
:
SetOperation
(
c3280747
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c3280747
.
toss_dice
=
true
function
c3280747
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c3280747
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>=
6
end
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>=
6
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DICE
,
nil
,
0
,
tp
,
2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DICE
,
nil
,
0
,
tp
,
2
)
...
...
c3493058.lua
View file @
92130b02
...
@@ -11,7 +11,6 @@ function c3493058.initial_effect(c)
...
@@ -11,7 +11,6 @@ function c3493058.initial_effect(c)
e1
:
SetOperation
(
c3493058
.
activate
)
e1
:
SetOperation
(
c3493058
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c3493058
.
toss_dice
=
true
function
c3493058
.
filter
(
c
)
function
c3493058
.
filter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
end
...
...
c3549275.lua
View file @
92130b02
...
@@ -9,7 +9,6 @@ function c3549275.initial_effect(c)
...
@@ -9,7 +9,6 @@ function c3549275.initial_effect(c)
e1
:
SetOperation
(
c3549275
.
operation
)
e1
:
SetOperation
(
c3549275
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c3549275
.
toss_dice
=
true
function
c3549275
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c3549275
.
target
(
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_DICE
,
nil
,
0
,
PLAYER_ALL
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DICE
,
nil
,
0
,
PLAYER_ALL
,
1
)
...
...
c35606858.lua
View file @
92130b02
...
@@ -40,7 +40,6 @@ function c35606858.initial_effect(c)
...
@@ -40,7 +40,6 @@ function c35606858.initial_effect(c)
e3
:
SetOperation
(
c35606858
.
dcop
)
e3
:
SetOperation
(
c35606858
.
dcop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
c35606858
.
toss_dice
=
true
function
c35606858
.
mtcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c35606858
.
mtcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
return
Duel
.
GetTurnPlayer
()
==
tp
end
end
...
...
c35772782.lua
View file @
92130b02
...
@@ -26,7 +26,6 @@ function c35772782.initial_effect(c)
...
@@ -26,7 +26,6 @@ function c35772782.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
aux
.
xyz_number
[
35772782
]
=
67
aux
.
xyz_number
[
35772782
]
=
67
c35772782
.
toss_dice
=
true
function
c35772782
.
dccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c35772782
.
dccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
end
end
...
...
c35798491.lua
View file @
92130b02
...
@@ -19,7 +19,6 @@ function c35798491.initial_effect(c)
...
@@ -19,7 +19,6 @@ function c35798491.initial_effect(c)
e2
:
SetOperation
(
c35798491
.
disop
)
e2
:
SetOperation
(
c35798491
.
disop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
c35798491
.
toss_dice
=
true
function
c35798491
.
mtcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c35798491
.
mtcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
return
Duel
.
GetTurnPlayer
()
==
tp
end
end
...
...
c35975813.lua
View file @
92130b02
...
@@ -35,7 +35,6 @@ function c35975813.initial_effect(c)
...
@@ -35,7 +35,6 @@ function c35975813.initial_effect(c)
e5
:
SetOperation
(
c35975813
.
disop2
)
e5
:
SetOperation
(
c35975813
.
disop2
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
c35975813
.
toss_dice
=
true
function
c35975813
.
exfilter
(
c
)
function
c35975813
.
exfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x45
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x45
)
end
end
...
...
c36708764.lua
View file @
92130b02
...
@@ -11,7 +11,6 @@ function c36708764.initial_effect(c)
...
@@ -11,7 +11,6 @@ function c36708764.initial_effect(c)
e1
:
SetOperation
(
c36708764
.
activate
)
e1
:
SetOperation
(
c36708764
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c36708764
.
toss_dice
=
true
function
c36708764
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c36708764
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
return
ep
~=
tp
end
end
...
...
c38082437.lua
View file @
92130b02
...
@@ -24,7 +24,6 @@ function c38082437.initial_effect(c)
...
@@ -24,7 +24,6 @@ function c38082437.initial_effect(c)
e2
:
SetOperation
(
c38082437
.
opd
)
e2
:
SetOperation
(
c38082437
.
opd
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
c38082437
.
toss_dice
=
true
function
c38082437
.
cona
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c38082437
.
cona
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsAttackPos
()
return
e
:
GetHandler
():
IsAttackPos
()
end
end
...
...
c38299233.lua
View file @
92130b02
...
@@ -20,7 +20,6 @@ function c38299233.initial_effect(c)
...
@@ -20,7 +20,6 @@ function c38299233.initial_effect(c)
e2
:
SetOperation
(
c38299233
.
rdop
)
e2
:
SetOperation
(
c38299233
.
rdop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
c38299233
.
toss_dice
=
true
function
c38299233
.
rdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c38299233
.
rdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
==
Duel
.
GetTurnPlayer
()
return
tp
==
Duel
.
GetTurnPlayer
()
end
end
...
...
c41139112.lua
View file @
92130b02
...
@@ -12,7 +12,6 @@ function c41139112.initial_effect(c)
...
@@ -12,7 +12,6 @@ function c41139112.initial_effect(c)
e1
:
SetOperation
(
c41139112
.
activate
)
e1
:
SetOperation
(
c41139112
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c41139112
.
toss_dice
=
true
function
c41139112
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c41139112
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
1000
)
end
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
1000
)
end
Duel
.
PayLPCost
(
tp
,
1000
)
Duel
.
PayLPCost
(
tp
,
1000
)
...
...
c42421606.lua
View file @
92130b02
...
@@ -22,7 +22,6 @@ function c42421606.initial_effect(c)
...
@@ -22,7 +22,6 @@ function c42421606.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
aux
.
xyz_number
[
42421606
]
=
85
aux
.
xyz_number
[
42421606
]
=
85
c42421606
.
toss_dice
=
true
function
c42421606
.
efcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c42421606
.
efcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
...
...
c43061293.lua
View file @
92130b02
...
@@ -12,7 +12,6 @@ function c43061293.initial_effect(c)
...
@@ -12,7 +12,6 @@ function c43061293.initial_effect(c)
e1
:
SetOperation
(
c43061293
.
damop
)
e1
:
SetOperation
(
c43061293
.
damop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c43061293
.
toss_dice
=
true
function
c43061293
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c43061293
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
==
0
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
==
0
end
end
...
...
c46303688.lua
View file @
92130b02
...
@@ -12,7 +12,6 @@ function c46303688.initial_effect(c)
...
@@ -12,7 +12,6 @@ function c46303688.initial_effect(c)
e1
:
SetOperation
(
c46303688
.
activate
)
e1
:
SetOperation
(
c46303688
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c46303688
.
toss_dice
=
true
function
c46303688
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c46303688
.
target
(
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_DICE
,
nil
,
0
,
tp
,
2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DICE
,
nil
,
0
,
tp
,
2
)
...
...
c47292920.lua
View file @
92130b02
...
@@ -13,7 +13,7 @@ function c47292920.initial_effect(c)
...
@@ -13,7 +13,7 @@ function c47292920.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c47292920
.
cfilter
(
c
)
function
c47292920
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
.
toss_dice
return
c
:
IsFaceup
()
and
c
:
IsEffectProperty
(
aux
.
EffectCategoryFilter
(
CATEGORY_DICE
))
end
end
function
c47292920
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c47292920
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c47292920
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c47292920
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
...
@@ -28,8 +28,8 @@ function c47292920.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -28,8 +28,8 @@ function c47292920.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Release
(
g
,
REASON_COST
)
Duel
.
Release
(
g
,
REASON_COST
)
end
end
function
c47292920
.
spfilter
(
c
,
e
,
tp
)
function
c47292920
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
Is
CanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
Is
EffectProperty
(
aux
.
MonsterEffectCategoryFilter
(
CATEGORY_DICE
)
)
and
c
.
toss_dice
and
not
c
.
toss_dice_in_pendulum_only
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c47292920
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c47292920
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
...
...
c47558785.lua
View file @
92130b02
...
@@ -14,8 +14,6 @@ function c47558785.initial_effect(c)
...
@@ -14,8 +14,6 @@ function c47558785.initial_effect(c)
e1
:
SetOperation
(
c47558785
.
scop
)
e1
:
SetOperation
(
c47558785
.
scop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c47558785
.
toss_dice
=
true
c47558785
.
toss_dice_in_pendulum_only
=
true
function
c47558785
.
sctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c47558785
.
sctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
GetLeftScale
()
>
1
end
if
chk
==
0
then
return
e
:
GetHandler
():
GetLeftScale
()
>
1
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DICE
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DICE
,
nil
,
0
,
tp
,
1
)
...
...
c53154400.lua
View file @
92130b02
...
@@ -21,7 +21,6 @@ function s.initial_effect(c)
...
@@ -21,7 +21,6 @@ function s.initial_effect(c)
e2
:
SetOperation
(
s
.
spop
)
e2
:
SetOperation
(
s
.
spop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
s
.
toss_dice
=
true
function
s
.
dictg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
dictg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DICE
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DICE
,
nil
,
0
,
tp
,
1
)
...
...
c5641251.lua
View file @
92130b02
...
@@ -29,7 +29,6 @@ function c5641251.initial_effect(c)
...
@@ -29,7 +29,6 @@ function c5641251.initial_effect(c)
e3
:
SetOperation
(
c5641251
.
lvlop
)
e3
:
SetOperation
(
c5641251
.
lvlop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
c5641251
.
toss_dice
=
true
function
c5641251
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c5641251
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
and
Duel
.
GetAttackTarget
()
==
nil
return
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
and
Duel
.
GetAttackTarget
()
==
nil
end
end
...
...
c61370518.lua
View file @
92130b02
...
@@ -19,7 +19,6 @@ function c61370518.initial_effect(c)
...
@@ -19,7 +19,6 @@ function c61370518.initial_effect(c)
e2
:
SetOperation
(
c61370518
.
disop
)
e2
:
SetOperation
(
c61370518
.
disop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
c61370518
.
toss_dice
=
true
function
c61370518
.
mtcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c61370518
.
mtcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
return
Duel
.
GetTurnPlayer
()
==
tp
end
end
...
...
c62893810.lua
View file @
92130b02
...
@@ -11,7 +11,6 @@ function c62893810.initial_effect(c)
...
@@ -11,7 +11,6 @@ function c62893810.initial_effect(c)
e1
:
SetOperation
(
c62893810
.
operation
)
e1
:
SetOperation
(
c62893810
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c62893810
.
toss_dice
=
true
function
c62893810
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c62893810
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g1
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_HAND
,
LOCATION_HAND
)
local
g1
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_HAND
,
LOCATION_HAND
)
if
chk
==
0
then
return
g1
:
GetCount
()
~=
0
end
if
chk
==
0
then
return
g1
:
GetCount
()
~=
0
end
...
...
c69170403.lua
View file @
92130b02
...
@@ -22,7 +22,6 @@ function c69170403.initial_effect(c)
...
@@ -22,7 +22,6 @@ function c69170403.initial_effect(c)
e2
:
SetOperation
(
c69170403
.
dcop
)
e2
:
SetOperation
(
c69170403
.
dcop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
c69170403
.
toss_dice
=
true
function
c69170403
.
spfilter
(
c
,
e
,
tp
)
function
c69170403
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsLevelBelow
(
4
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
return
c
:
IsLevelBelow
(
4
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
end
...
...
c71459017.lua
View file @
92130b02
...
@@ -55,7 +55,6 @@ function c71459017.initial_effect(c)
...
@@ -55,7 +55,6 @@ function c71459017.initial_effect(c)
e8
:
SetOperation
(
c71459017
.
diceop
)
e8
:
SetOperation
(
c71459017
.
diceop
)
c
:
RegisterEffect
(
e8
)
c
:
RegisterEffect
(
e8
)
end
end
c71459017
.
toss_dice
=
true
function
c71459017
.
fuslimit
(
e
,
c
,
sumtype
)
function
c71459017
.
fuslimit
(
e
,
c
,
sumtype
)
return
sumtype
&
SUMMON_TYPE_FUSION
==
SUMMON_TYPE_FUSION
return
sumtype
&
SUMMON_TYPE_FUSION
==
SUMMON_TYPE_FUSION
end
end
...
...
c72192100.lua
View file @
92130b02
...
@@ -31,7 +31,6 @@ function c72192100.initial_effect(c)
...
@@ -31,7 +31,6 @@ function c72192100.initial_effect(c)
e3
:
SetOperation
(
c72192100
.
spop
)
e3
:
SetOperation
(
c72192100
.
spop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
c72192100
.
toss_dice
=
true
function
c72192100
.
mtcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c72192100
.
mtcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
return
Duel
.
GetTurnPlayer
()
==
tp
end
end
...
...
c73219648.lua
View file @
92130b02
...
@@ -27,7 +27,6 @@ function c73219648.initial_effect(c)
...
@@ -27,7 +27,6 @@ function c73219648.initial_effect(c)
e3
:
SetValue
(
c73219648
.
atktg
)
e3
:
SetValue
(
c73219648
.
atktg
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
c73219648
.
toss_dice
=
true
function
c73219648
.
mtcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c73219648
.
mtcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
return
Duel
.
GetTurnPlayer
()
==
tp
end
end
...
...
c74137509.lua
View file @
92130b02
...
@@ -13,7 +13,6 @@ function c74137509.initial_effect(c)
...
@@ -13,7 +13,6 @@ function c74137509.initial_effect(c)
e1
:
SetOperation
(
c74137509
.
activate
)
e1
:
SetOperation
(
c74137509
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c74137509
.
toss_dice
=
true
function
c74137509
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c74137509
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DICE
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DICE
,
nil
,
0
,
tp
,
1
)
...
...
c76895648.lua
View file @
92130b02
...
@@ -19,7 +19,6 @@ function c76895648.initial_effect(c)
...
@@ -19,7 +19,6 @@ function c76895648.initial_effect(c)
e2
:
SetOperation
(
c76895648
.
operation
)
e2
:
SetOperation
(
c76895648
.
operation
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
c76895648
.
toss_dice
=
true
function
c76895648
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c76895648
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
==
Duel
.
GetTurnPlayer
()
return
tp
==
Duel
.
GetTurnPlayer
()
end
end
...
...
c77994337.lua
View file @
92130b02
...
@@ -14,8 +14,6 @@ function c77994337.initial_effect(c)
...
@@ -14,8 +14,6 @@ function c77994337.initial_effect(c)
e1
:
SetOperation
(
c77994337
.
lvop
)
e1
:
SetOperation
(
c77994337
.
lvop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c77994337
.
toss_dice
=
true
c77994337
.
toss_dice_in_pendulum_only
=
true
function
c77994337
.
lvfilter
(
c
)
function
c77994337
.
lvfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
GetLevel
()
>
0
return
c
:
IsFaceup
()
and
c
:
GetLevel
()
>
0
end
end
...
...
c82308875.lua
View file @
92130b02
...
@@ -16,7 +16,6 @@ function c82308875.initial_effect(c)
...
@@ -16,7 +16,6 @@ function c82308875.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
aux
.
xyz_number
[
82308875
]
=
7
aux
.
xyz_number
[
82308875
]
=
7
c82308875
.
toss_dice
=
true
function
c82308875
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c82308875
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
...
...
c83241722.lua
View file @
92130b02
...
@@ -8,7 +8,6 @@ function c83241722.initial_effect(c)
...
@@ -8,7 +8,6 @@ function c83241722.initial_effect(c)
e1
:
SetOperation
(
c83241722
.
regop
)
e1
:
SetOperation
(
c83241722
.
regop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c83241722
.
toss_dice
=
true
function
c83241722
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c83241722
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
...
c84046493.lua
View file @
92130b02
...
@@ -14,8 +14,6 @@ function c84046493.initial_effect(c)
...
@@ -14,8 +14,6 @@ function c84046493.initial_effect(c)
e1
:
SetOperation
(
c84046493
.
scop
)
e1
:
SetOperation
(
c84046493
.
scop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c84046493
.
toss_dice
=
true
c84046493
.
toss_dice_in_pendulum_only
=
true
function
c84046493
.
sctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c84046493
.
sctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
GetLeftScale
()
<
10
end
if
chk
==
0
then
return
e
:
GetHandler
():
GetLeftScale
()
<
10
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DICE
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DICE
,
nil
,
0
,
tp
,
1
)
...
...
c84290642.lua
View file @
92130b02
...
@@ -13,7 +13,6 @@ function c84290642.initial_effect(c)
...
@@ -13,7 +13,6 @@ function c84290642.initial_effect(c)
e1
:
SetOperation
(
c84290642
.
activate
)
e1
:
SetOperation
(
c84290642
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c84290642
.
toss_dice
=
true
function
c84290642
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c84290642
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
...
...
c84397023.lua
View file @
92130b02
...
@@ -9,7 +9,6 @@ function c84397023.initial_effect(c)
...
@@ -9,7 +9,6 @@ function c84397023.initial_effect(c)
e1
:
SetOperation
(
c84397023
.
op
)
e1
:
SetOperation
(
c84397023
.
op
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c84397023
.
toss_dice
=
true
function
c84397023
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c84397023
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
TYPE_MONSTER
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
TYPE_MONSTER
)
end
end
end
...
...
c84813516.lua
View file @
92130b02
...
@@ -36,7 +36,6 @@ function c84813516.initial_effect(c)
...
@@ -36,7 +36,6 @@ function c84813516.initial_effect(c)
e3
:
SetOperation
(
c84813516
.
thop
)
e3
:
SetOperation
(
c84813516
.
thop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
c84813516
.
toss_dice
=
true
function
c84813516
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c84813516
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
...
...
c85704698.lua
View file @
92130b02
...
@@ -22,7 +22,6 @@ function c85704698.initial_effect(c)
...
@@ -22,7 +22,6 @@ function c85704698.initial_effect(c)
e2
:
SetOperation
(
c85704698
.
synop
)
e2
:
SetOperation
(
c85704698
.
synop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
c85704698
.
toss_dice
=
true
function
c85704698
.
filter
(
c
,
e
,
tp
)
function
c85704698
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x2016
)
and
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x2016
)
and
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
...
...
c8581705.lua
View file @
92130b02
...
@@ -30,7 +30,6 @@ function c8581705.initial_effect(c)
...
@@ -30,7 +30,6 @@ function c8581705.initial_effect(c)
e3
:
SetOperation
(
c8581705
.
atkop
)
e3
:
SetOperation
(
c8581705
.
atkop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
c8581705
.
toss_dice
=
true
function
c8581705
.
mtcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c8581705
.
mtcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
return
Duel
.
GetTurnPlayer
()
==
tp
end
end
...
...
c86154370.lua
View file @
92130b02
...
@@ -27,7 +27,6 @@ function c86154370.initial_effect(c)
...
@@ -27,7 +27,6 @@ function c86154370.initial_effect(c)
e2
:
SetOperation
(
c86154370
.
spop
)
e2
:
SetOperation
(
c86154370
.
spop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
c86154370
.
toss_dice
=
true
c86154370
.
material_type
=
TYPE_SYNCHRO
c86154370
.
material_type
=
TYPE_SYNCHRO
function
c86154370
.
sfilter
(
c
)
function
c86154370
.
sfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
c
:
IsType
(
TYPE_SYNCHRO
)
return
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
c
:
IsType
(
TYPE_SYNCHRO
)
...
...
c87897777.lua
View file @
92130b02
...
@@ -36,7 +36,6 @@ function c87897777.initial_effect(c)
...
@@ -36,7 +36,6 @@ function c87897777.initial_effect(c)
e3
:
SetOperation
(
c87897777
.
mvop
)
e3
:
SetOperation
(
c87897777
.
mvop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
c87897777
.
toss_dice
=
true
function
c87897777
.
cfilter
(
c
)
function
c87897777
.
cfilter
(
c
)
return
c
:
IsSetCard
(
0x17d
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsFaceup
()
return
c
:
IsSetCard
(
0x17d
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsFaceup
()
end
end
...
...
c8868767.lua
View file @
92130b02
...
@@ -11,7 +11,6 @@ function c8868767.initial_effect(c)
...
@@ -11,7 +11,6 @@ function c8868767.initial_effect(c)
e1
:
SetOperation
(
c8868767
.
activate
)
e1
:
SetOperation
(
c8868767
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c8868767
.
toss_dice
=
true
function
c8868767
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c8868767
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
Duel
.
GetTurnPlayer
()
==
tp
then
if
Duel
.
GetTurnPlayer
()
==
tp
then
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
c93078761.lua
View file @
92130b02
...
@@ -11,9 +11,8 @@ function c93078761.initial_effect(c)
...
@@ -11,9 +11,8 @@ function c93078761.initial_effect(c)
e1
:
SetOperation
(
c93078761
.
activate
)
e1
:
SetOperation
(
c93078761
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c93078761
.
toss_dice
=
true
function
c93078761
.
filter
(
c
)
function
c93078761
.
filter
(
c
)
return
c
.
toss_dice
and
c
:
IsAbleToHand
()
return
c
:
IsEffectProperty
(
aux
.
EffectCategoryFilter
(
CATEGORY_DICE
))
and
c
:
IsAbleToHand
()
end
end
function
c93078761
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c93078761
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c93078761
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c93078761
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c93542102.lua
View file @
92130b02
...
@@ -23,7 +23,6 @@ function c93542102.initial_effect(c)
...
@@ -23,7 +23,6 @@ function c93542102.initial_effect(c)
e2
:
SetOperation
(
c93542102
.
opd
)
e2
:
SetOperation
(
c93542102
.
opd
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
c93542102
.
toss_dice
=
true
function
c93542102
.
cona
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c93542102
.
cona
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
IsDisabled
()
and
e
:
GetHandler
():
IsAttackPos
()
return
not
e
:
GetHandler
():
IsDisabled
()
and
e
:
GetHandler
():
IsAttackPos
()
end
end
...
...
c96015976.lua
View file @
92130b02
...
@@ -18,7 +18,6 @@ function c96015976.initial_effect(c)
...
@@ -18,7 +18,6 @@ function c96015976.initial_effect(c)
e2
:
SetOperation
(
c96015976
.
operation
)
e2
:
SetOperation
(
c96015976
.
operation
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
c96015976
.
toss_dice
=
true
function
c96015976
.
filter
(
c
)
function
c96015976
.
filter
(
c
)
local
lv
=
c
:
GetLevel
()
local
lv
=
c
:
GetLevel
()
local
olv
=
c
:
GetOriginalLevel
()
local
olv
=
c
:
GetOriginalLevel
()
...
...
c9603356.lua
View file @
92130b02
...
@@ -25,7 +25,6 @@ function c9603356.initial_effect(c)
...
@@ -25,7 +25,6 @@ function c9603356.initial_effect(c)
e3
:
SetValue
(
aux
.
ChangeBattleDamage
(
1
,
HALF_DAMAGE
))
e3
:
SetValue
(
aux
.
ChangeBattleDamage
(
1
,
HALF_DAMAGE
))
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
c9603356
.
toss_dice
=
true
function
c9603356
.
mtcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c9603356
.
mtcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
return
Duel
.
GetTurnPlayer
()
==
tp
end
end
...
...
c97642679.lua
View file @
92130b02
...
@@ -13,7 +13,6 @@ function c97642679.initial_effect(c)
...
@@ -13,7 +13,6 @@ function c97642679.initial_effect(c)
e1
:
SetOperation
(
c97642679
.
operation
)
e1
:
SetOperation
(
c97642679
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c97642679
.
toss_dice
=
true
function
c97642679
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c97642679
.
target
(
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_DICE
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DICE
,
nil
,
0
,
tp
,
1
)
...
...
utility.lua
View file @
92130b02
...
@@ -1883,3 +1883,16 @@ function Auxiliary.BecomeOriginalCode(c,tc,reset)
...
@@ -1883,3 +1883,16 @@ function Auxiliary.BecomeOriginalCode(c,tc,reset)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
return
e1
return
e1
end
end
---@param category integer
---@return function
function
Auxiliary
.
EffectCategoryFilter
(
category
)
return
aux
.
FilterBoolFunction
(
Effect
.
IsHasCategory
,
category
)
end
---@param category integer
---@return function
function
Auxiliary
.
MonsterEffectCategoryFilter
(
category
)
---@param e Effect
return
function
(
e
)
return
e
:
IsHasCategory
(
category
)
and
not
e
:
IsHasRange
(
LOCATION_PZONE
)
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