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
Nguyễn Anh Kiệt
ygopro-222DIY-cards
Commits
a9368196
Commit
a9368196
authored
May 01, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tnndx
parent
d57679e6
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
23 deletions
+26
-23
expansions/script/c20100000.lua
expansions/script/c20100000.lua
+5
-8
expansions/script/c20100501.lua
expansions/script/c20100501.lua
+5
-4
expansions/script/c20100512.lua
expansions/script/c20100512.lua
+8
-3
expansions/script/c20100517.lua
expansions/script/c20100517.lua
+5
-5
expansions/script/c20100518.lua
expansions/script/c20100518.lua
+2
-2
expansions/script/c81007006.lua
expansions/script/c81007006.lua
+1
-1
No files found.
expansions/script/c20100000.lua
View file @
a9368196
...
@@ -1162,17 +1162,14 @@ function C9.KomachiMonster(c,num)
...
@@ -1162,17 +1162,14 @@ function C9.KomachiMonster(c,num)
if
c
:
GetOriginalCode
()
==
20100512
then
--傻逼写法,懒得写循环了
if
c
:
GetOriginalCode
()
==
20100512
then
--傻逼写法,懒得写循环了
local
he1
=
he
:
Clone
()
local
he1
=
he
:
Clone
()
he1
:
SetCode
(
EFFECT_UNRELEASABLE_NONSUM
)
he1
:
SetCode
(
EFFECT_UNRELEASABLE_NONSUM
)
local
he2
=
Effect
.
CreateEffect
(
c
)
local
he2
=
he
:
Clone
()
he2
:
SetType
(
EFFECT_TYPE_SINGLE
)
he2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
he2
:
SetCode
(
EFFECT_CANNOT_BE_FUSION_MATERIAL
)
he2
:
SetCode
(
EFFECT_CANNOT_BE_FUSION_MATERIAL
)
he2
:
SetValue
(
function
(
e
,
c
,
sumtype
)
return
sumtype
==
SUMMON_TYPE_FUSION
end
)
he2
:
SetValue
(
function
(
e
,
c
,
sumtype
)
return
sumtype
==
SUMMON_TYPE_FUSION
end
)
local
he3
=
he
2
:
Clone
()
local
he3
=
he
:
Clone
()
he3
:
SetCode
(
EFFECT_CANNOT_BE_SYNCHRO_MATERIAL
)
he3
:
SetCode
(
EFFECT_CANNOT_BE_SYNCHRO_MATERIAL
)
he3
:
SetValue
(
1
)
local
he4
=
he
:
Clone
()
local
he4
=
he3
:
Clone
()
he4
:
SetCode
(
EFFECT_CANNOT_BE_XYZ_MATERIAL
)
he4
:
SetCode
(
EFFECT_CANNOT_BE_XYZ_MATERIAL
)
local
he5
=
he
4
:
Clone
()
local
he5
=
he
:
Clone
()
he5
:
SetCode
(
EFFECT_CANNOT_BE_LINK_MATERIAL
)
he5
:
SetCode
(
EFFECT_CANNOT_BE_LINK_MATERIAL
)
local
ge1
=
e2
:
Clone
()
local
ge1
=
e2
:
Clone
()
ge1
:
SetLabelObject
(
he1
)
ge1
:
SetLabelObject
(
he1
)
...
@@ -1184,7 +1181,7 @@ function C9.KomachiMonster(c,num)
...
@@ -1184,7 +1181,7 @@ function C9.KomachiMonster(c,num)
ge4
:
SetLabelObject
(
he4
)
ge4
:
SetLabelObject
(
he4
)
local
ge5
=
e2
:
Clone
()
local
ge5
=
e2
:
Clone
()
ge5
:
SetLabelObject
(
he5
)
ge5
:
SetLabelObject
(
he5
)
C9
.
RegisterEffect_Batch
(
c
,
he1
,
he2
,
he3
,
he4
,
h
e5
)
C9
.
RegisterEffect_Batch
(
c
,
ge1
,
ge2
,
ge3
,
ge4
,
g
e5
)
end
end
--splimit
--splimit
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
...
...
expansions/script/c20100501.lua
View file @
a9368196
...
@@ -40,14 +40,15 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -40,14 +40,15 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
g
:
KeepAlive
()
g
:
KeepAlive
()
e
:
SetLabelObject
(
g
)
e
:
SetLabelObject
(
g
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
Card
.
IsCode
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
20100500
)
end
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPPO
)
if
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
local
sg0
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsCode
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
20100500
)
if
#
sg0
==
0
then
return
end
local
tc
=
sg0
:
GetFirst
()
if
not
tc
:
IsImmuneToEffect
(
e
)
then
local
gc
=
e
:
GetLabelObject
():
GetFirst
()
local
gc
=
e
:
GetLabelObject
():
GetFirst
()
local
m
=
_G
[
"c"
..
gc
:
GetCode
()]
local
m
=
_G
[
"c"
..
gc
:
GetCode
()]
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
expansions/script/c20100512.lua
View file @
a9368196
...
@@ -6,10 +6,11 @@ function cm.initial_effect(c)
...
@@ -6,10 +6,11 @@ function cm.initial_effect(c)
aux
.
AddCodeList
(
c
,
20100500
)
aux
.
AddCodeList
(
c
,
20100500
)
--huyuurei_effect
--huyuurei_effect
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetCode
(
EFFECT_UNRELEASABLE_SUM
)
e1
:
SetCode
(
EFFECT_UNRELEASABLE_SUM
)
e1
:
SetTarget
(
cm
.
htg
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
1
)
cm
.
huyuurei_effect
=
e1
cm
.
huyuurei_effect
=
e1
C9
.
KomachiMonster
(
c
,
m
)
C9
.
KomachiMonster
(
c
,
m
)
...
@@ -24,10 +25,14 @@ function cm.initial_effect(c)
...
@@ -24,10 +25,14 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
cm
.
htg
(
e
,
c
)
return
math.abs
(
e
:
GetHandler
():
GetSequence
()
-
c
:
GetSequence
())
==
1
end
function
cm
.
filter
(
c
,
tp
,
x1
,
y1
)
function
cm
.
filter
(
c
,
tp
,
x1
,
y1
)
if
c
:
IsLocation
(
LOCATION_FZONE
)
then
return
false
end
if
c
:
IsLocation
(
LOCATION_FZONE
)
then
return
false
end
local
x
,
y
=
C9
.
GetCoordinate
(
c
,
tp
)
local
x
,
y
=
C9
.
GetCoordinate
(
c
,
tp
)
return
math.abs
((
x
+
y
)
-
(
x1
+
y1
))
==
1
return
(
math.abs
(
x
-
x1
)
+
math.abs
(
y
-
y1
))
==
1
end
end
function
cm
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
cm
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
expansions/script/c20100517.lua
View file @
a9368196
...
@@ -33,8 +33,8 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -33,8 +33,8 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
cm
.
dfilter
(
c
,
seq1
,
seq2
)
function
cm
.
dfilter
(
c
,
seq1
,
seq2
)
if
c
:
IsDisabled
()
or
c
:
IsType
(
TYPE_NORMAL
)
then
return
false
end
return
C9
.
IsBetween
(
c
:
GetSequence
(),
seq1
,
seq2
)
return
C9
.
IsBetween
(
c
:
GetSequence
(),
seq1
,
seq2
)
and
(
not
c
:
IsDisabled
()
or
c
:
IsType
(
TYPE_TRAPMONSTER
))
and
not
(
c
:
IsType
(
TYPE_NORMAL
)
and
bit
.
band
(
c
:
GetOriginalType
(),
TYPE_NORMAL
))
end
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -52,22 +52,22 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
...
@@ -52,22 +52,22 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
local
dg
=
Duel
.
GetMatchingGroup
(
cm
.
dfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
seq1
,
seq2
)
local
dg
=
Duel
.
GetMatchingGroup
(
cm
.
dfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
seq1
,
seq2
)
local
nc
=
dg
:
GetFirst
()
local
nc
=
dg
:
GetFirst
()
while
nc
do
while
nc
do
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
t
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetReset
(
C9
.
S_Reset
)
nc
:
RegisterEffect
(
e1
)
nc
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetValue
(
RESET_TURN_SET
)
nc
:
RegisterEffect
(
e2
)
nc
:
RegisterEffect
(
e2
)
if
nc
:
IsType
(
TYPE_TRAPMONSTER
)
then
if
nc
:
IsType
(
TYPE_TRAPMONSTER
)
then
local
e3
=
e1
:
Clone
()
local
e3
=
e1
:
Clone
()
e3
:
SetCode
(
EFFECT_DISABLE_TRAPMONSTER
)
e3
:
SetCode
(
EFFECT_DISABLE_TRAPMONSTER
)
nc
:
RegisterEffect
(
e3
)
nc
:
RegisterEffect
(
e3
)
end
end
nc
=
n
g
:
GetNext
()
nc
=
d
g
:
GetNext
()
end
end
end
end
end
end
expansions/script/c20100518.lua
View file @
a9368196
...
@@ -19,7 +19,7 @@ end
...
@@ -19,7 +19,7 @@ end
function
cm
.
filter2
(
c
,
tp
,
x1
,
y1
,
distance
)
function
cm
.
filter2
(
c
,
tp
,
x1
,
y1
,
distance
)
if
c
:
IsLocation
(
LOCATION_FZONE
)
then
return
false
end
if
c
:
IsLocation
(
LOCATION_FZONE
)
then
return
false
end
local
x
,
y
=
C9
.
GetCoordinate
(
c
,
tp
)
local
x
,
y
=
C9
.
GetCoordinate
(
c
,
tp
)
return
math.abs
((
x
+
y
)
-
(
x1
+
y1
))
==
distance
return
(
math.abs
(
x
-
x1
)
+
math.abs
(
y
-
y1
))
==
distance
end
end
function
cm
.
filter1
(
c
,
tp
,
distance
)
function
cm
.
filter1
(
c
,
tp
,
distance
)
...
@@ -29,7 +29,7 @@ function cm.filter1(c,tp,distance)
...
@@ -29,7 +29,7 @@ function cm.filter1(c,tp,distance)
end
end
function
cm
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
cm
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
end
if
chkc
then
return
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
filter1
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
tp
,
2
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
filter1
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
tp
,
2
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
local
sh
=
Duel
.
SelectTarget
(
tp
,
cm
.
filter1
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
,
2
)
local
sh
=
Duel
.
SelectTarget
(
tp
,
cm
.
filter1
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
,
2
)
...
...
expansions/script/c81007006.lua
View file @
a9368196
...
@@ -62,7 +62,7 @@ function cm.splimit(e,c)
...
@@ -62,7 +62,7 @@ function cm.splimit(e,c)
return
not
c
:
IsRace
(
RACE_SPELLCASTER
)
return
not
c
:
IsRace
(
RACE_SPELLCASTER
)
end
end
function
cm
.
chainop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
chainop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
GetHandler
():
IsRace
(
RACE_SPELLCASTER
)
and
re
:
GetHandler
():
I
I
sType
(
TYPE_RITUAL
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
ep
==
tp
then
if
re
:
GetHandler
():
IsRace
(
RACE_SPELLCASTER
)
and
re
:
GetHandler
():
IsType
(
TYPE_RITUAL
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
ep
==
tp
then
Duel
.
SetChainLimit
(
cm
.
chainlm
)
Duel
.
SetChainLimit
(
cm
.
chainlm
)
end
end
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