Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
4
Merge Requests
4
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
MyCard
ygopro-scripts-888
Commits
3bcb1fab
You need to sign in or sign up before continuing.
Commit
3bcb1fab
authored
Mar 09, 2019
by
nekrozar
Committed by
nanahira
Mar 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix & update Chrysalis, Contact using aux.IsCodeListed (#1117)
* fix & update * fix
parent
579f44e7
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
24 additions
and
35 deletions
+24
-35
c16241441.lua
c16241441.lua
+1
-0
c16616620.lua
c16616620.lua
+8
-11
c17363041.lua
c17363041.lua
+1
-0
c29246354.lua
c29246354.lua
+1
-0
c42239546.lua
c42239546.lua
+1
-0
c42682609.lua
c42682609.lua
+1
-0
c43644025.lua
c43644025.lua
+4
-11
c43751755.lua
c43751755.lua
+1
-0
c56641453.lua
c56641453.lua
+6
-13
No files found.
c16241441.lua
View file @
3bcb1fab
...
@@ -12,6 +12,7 @@ function c16241441.initial_effect(c)
...
@@ -12,6 +12,7 @@ function c16241441.initial_effect(c)
e1
:
SetOperation
(
c16241441
.
spop
)
e1
:
SetOperation
(
c16241441
.
spop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c16241441
.
card_code_list
=
{
89621922
}
function
c16241441
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c16241441
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsEnvironment
(
42015635
)
return
Duel
.
IsEnvironment
(
42015635
)
end
end
...
...
c16616620.lua
View file @
3bcb1fab
...
@@ -9,31 +9,28 @@ function c16616620.initial_effect(c)
...
@@ -9,31 +9,28 @@ function c16616620.initial_effect(c)
e1
:
SetOperation
(
c16616620
.
activate
)
e1
:
SetOperation
(
c16616620
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c16616620
.
list
=
{[
42682609
]
=
17955766
,[
43751755
]
=
43237273
,[
17363041
]
=
54959865
,
[
29246354
]
=
17732278
,[
16241441
]
=
89621922
,[
42239546
]
=
80344569
}
function
c16616620
.
filter1
(
c
,
e
,
tp
)
function
c16616620
.
filter1
(
c
,
e
,
tp
)
local
code
=
c
:
GetCode
()
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x1e
)
and
Duel
.
IsExistingMatchingCard
(
c16616620
.
filter2
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
,
c
,
e
,
tp
)
local
tcode
=
c16616620
.
list
[
code
]
return
tcode
and
Duel
.
IsExistingMatchingCard
(
c16616620
.
filter2
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
,
tcode
,
e
,
tp
)
end
end
function
c16616620
.
filter2
(
c
,
tcode
,
e
,
tp
)
function
c16616620
.
filter2
(
c
,
mc
,
e
,
tp
)
return
c
:
Is
Code
(
tcode
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
return
c
:
Is
SetCard
(
0x1f
)
and
aux
.
IsCodeListed
(
mc
,
c
:
GetCode
()
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
end
end
function
c16616620
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c16616620
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingMatchingCard
(
c16616620
.
filter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c16616620
.
filter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
)
end
end
function
c16616620
.
filter3
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x1e
)
end
function
c16616620
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c16616620
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsSetCard
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
0x1e
)
local
g
=
Duel
.
GetMatchingGroup
(
c16616620
.
filter3
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
if
g
:
GetCount
()
==
0
then
return
end
if
g
:
GetCount
()
==
0
then
return
end
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
local
sg
=
Group
.
CreateGroup
()
local
sg
=
Group
.
CreateGroup
()
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
while
tc
do
while
tc
do
local
code
=
tc
:
GetCode
()
local
tg
=
Duel
.
GetMatchingGroup
(
c16616620
.
filter2
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
nil
,
tc
,
e
,
tp
)
local
tcode
=
c16616620
.
list
[
code
]
local
tg
=
Duel
.
GetMatchingGroup
(
c16616620
.
filter2
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
nil
,
tcode
,
e
,
tp
)
sg
:
Merge
(
tg
)
sg
:
Merge
(
tg
)
tc
=
g
:
GetNext
()
tc
=
g
:
GetNext
()
end
end
...
...
c17363041.lua
View file @
3bcb1fab
...
@@ -12,6 +12,7 @@ function c17363041.initial_effect(c)
...
@@ -12,6 +12,7 @@ function c17363041.initial_effect(c)
e1
:
SetOperation
(
c17363041
.
spop
)
e1
:
SetOperation
(
c17363041
.
spop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c17363041
.
card_code_list
=
{
54959865
}
function
c17363041
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c17363041
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsEnvironment
(
42015635
)
return
Duel
.
IsEnvironment
(
42015635
)
end
end
...
...
c29246354.lua
View file @
3bcb1fab
...
@@ -12,6 +12,7 @@ function c29246354.initial_effect(c)
...
@@ -12,6 +12,7 @@ function c29246354.initial_effect(c)
e1
:
SetOperation
(
c29246354
.
spop
)
e1
:
SetOperation
(
c29246354
.
spop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c29246354
.
card_code_list
=
{
17732278
}
function
c29246354
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c29246354
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsEnvironment
(
42015635
)
return
Duel
.
IsEnvironment
(
42015635
)
end
end
...
...
c42239546.lua
View file @
3bcb1fab
...
@@ -12,6 +12,7 @@ function c42239546.initial_effect(c)
...
@@ -12,6 +12,7 @@ function c42239546.initial_effect(c)
e1
:
SetOperation
(
c42239546
.
spop
)
e1
:
SetOperation
(
c42239546
.
spop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c42239546
.
card_code_list
=
{
80344569
}
function
c42239546
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c42239546
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsEnvironment
(
42015635
)
return
Duel
.
IsEnvironment
(
42015635
)
end
end
...
...
c42682609.lua
View file @
3bcb1fab
...
@@ -12,6 +12,7 @@ function c42682609.initial_effect(c)
...
@@ -12,6 +12,7 @@ function c42682609.initial_effect(c)
e1
:
SetOperation
(
c42682609
.
spop
)
e1
:
SetOperation
(
c42682609
.
spop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c42682609
.
card_code_list
=
{
17955766
}
function
c42682609
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c42682609
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsEnvironment
(
42015635
)
return
Duel
.
IsEnvironment
(
42015635
)
end
end
...
...
c43644025.lua
View file @
3bcb1fab
...
@@ -17,16 +17,11 @@ function c43644025.initial_effect(c)
...
@@ -17,16 +17,11 @@ function c43644025.initial_effect(c)
e2
:
SetOperation
(
c43644025
.
activate
)
e2
:
SetOperation
(
c43644025
.
activate
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
c43644025
.
list
=
{[
42682609
]
=
17955766
,[
43751755
]
=
43237273
,[
17363041
]
=
54959865
,
[
29246354
]
=
17732278
,[
16241441
]
=
89621922
,[
42239546
]
=
80344569
}
function
c43644025
.
filter1
(
c
,
e
,
tp
)
function
c43644025
.
filter1
(
c
,
e
,
tp
)
if
c
:
IsFacedown
()
then
return
false
end
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x1e
)
and
Duel
.
IsExistingTarget
(
c43644025
.
filter2
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
,
c
,
e
,
tp
)
local
code
=
c
:
GetCode
()
local
tcode
=
c43644025
.
list
[
code
]
return
tcode
and
Duel
.
IsExistingTarget
(
c43644025
.
filter2
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
,
tcode
,
e
,
tp
)
end
end
function
c43644025
.
filter2
(
c
,
tcode
,
e
,
tp
)
function
c43644025
.
filter2
(
c
,
mc
,
e
,
tp
)
return
c
:
Is
Code
(
tcode
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
return
c
:
Is
SetCard
(
0x1f
)
and
aux
.
IsCodeListed
(
mc
,
c
:
GetCode
()
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
end
end
function
c43644025
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c43644025
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
1
)
e
:
SetLabel
(
1
)
...
@@ -41,11 +36,9 @@ function c43644025.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -41,11 +36,9 @@ function c43644025.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
and
Duel
.
CheckReleaseGroup
(
tp
,
c43644025
.
filter1
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
CheckReleaseGroup
(
tp
,
c43644025
.
filter1
,
1
,
nil
,
e
,
tp
)
end
e
:
SetLabel
(
0
)
e
:
SetLabel
(
0
)
local
rg
=
Duel
.
SelectReleaseGroup
(
tp
,
c43644025
.
filter1
,
1
,
1
,
nil
,
e
,
tp
)
local
rg
=
Duel
.
SelectReleaseGroup
(
tp
,
c43644025
.
filter1
,
1
,
1
,
nil
,
e
,
tp
)
local
code
=
rg
:
GetFirst
():
GetCode
()
local
tcode
=
c43644025
.
list
[
code
]
Duel
.
Release
(
rg
,
REASON_COST
)
Duel
.
Release
(
rg
,
REASON_COST
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c43644025
.
filter2
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
tcode
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c43644025
.
filter2
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
rg
:
GetFirst
()
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
end
function
c43644025
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c43644025
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c43751755.lua
View file @
3bcb1fab
...
@@ -12,6 +12,7 @@ function c43751755.initial_effect(c)
...
@@ -12,6 +12,7 @@ function c43751755.initial_effect(c)
e1
:
SetOperation
(
c43751755
.
spop
)
e1
:
SetOperation
(
c43751755
.
spop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c43751755
.
card_code_list
=
{
43237273
}
function
c43751755
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c43751755
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsEnvironment
(
42015635
)
return
Duel
.
IsEnvironment
(
42015635
)
end
end
...
...
c56641453.lua
View file @
3bcb1fab
...
@@ -10,16 +10,11 @@ function c56641453.initial_effect(c)
...
@@ -10,16 +10,11 @@ function c56641453.initial_effect(c)
e1
:
SetOperation
(
c56641453
.
activate
)
e1
:
SetOperation
(
c56641453
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
c56641453
.
list
=
{[
42682609
]
=
17955766
,[
43751755
]
=
43237273
,[
17363041
]
=
54959865
,
[
29246354
]
=
17732278
,[
16241441
]
=
89621922
,[
42239546
]
=
80344569
}
function
c56641453
.
filter1
(
c
,
e
,
tp
)
function
c56641453
.
filter1
(
c
,
e
,
tp
)
if
c
:
IsFacedown
()
then
return
false
end
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x1e
)
and
Duel
.
IsExistingMatchingCard
(
c56641453
.
filter2
,
tp
,
0x13
,
0
,
1
,
nil
,
c
,
e
,
tp
)
local
code
=
c
:
GetCode
()
local
tcode
=
c56641453
.
list
[
code
]
return
tcode
and
Duel
.
IsExistingTarget
(
c56641453
.
filter2
,
tp
,
0x13
,
0
,
1
,
nil
,
tcode
,
e
,
tp
)
end
end
function
c56641453
.
filter2
(
c
,
tcode
,
e
,
tp
)
function
c56641453
.
filter2
(
c
,
mc
,
e
,
tp
)
return
c
:
Is
Code
(
tcode
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
return
c
:
Is
SetCard
(
0x1f
)
and
aux
.
IsCodeListed
(
mc
,
c
:
GetCode
()
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
end
end
function
c56641453
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c56641453
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
1
)
e
:
SetLabel
(
1
)
...
@@ -33,10 +28,8 @@ function c56641453.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -33,10 +28,8 @@ function c56641453.target(e,tp,eg,ep,ev,re,r,rp,chk)
and
Duel
.
CheckReleaseGroup
(
tp
,
c56641453
.
filter1
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
CheckReleaseGroup
(
tp
,
c56641453
.
filter1
,
1
,
nil
,
e
,
tp
)
end
e
:
SetLabel
(
0
)
e
:
SetLabel
(
0
)
local
rg
=
Duel
.
SelectReleaseGroup
(
tp
,
c56641453
.
filter1
,
1
,
1
,
nil
,
e
,
tp
)
local
rg
=
Duel
.
SelectReleaseGroup
(
tp
,
c56641453
.
filter1
,
1
,
1
,
nil
,
e
,
tp
)
local
code
=
rg
:
GetFirst
():
GetCode
()
local
tcode
=
c56641453
.
list
[
code
]
Duel
.
Release
(
rg
,
REASON_COST
)
Duel
.
Release
(
rg
,
REASON_COST
)
Duel
.
SetTarget
Param
(
tcode
)
Duel
.
SetTarget
Card
(
rg
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
0x13
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
0x13
)
end
end
function
c56641453
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c56641453
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -53,9 +46,9 @@ function c56641453.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -53,9 +46,9 @@ function c56641453.activate(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
tc
ode
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PARAM
)
local
tc
=
Duel
.
GetFirstTarget
(
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c56641453
.
filter2
),
tp
,
0x13
,
0
,
1
,
1
,
nil
,
tc
ode
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c56641453
.
filter2
),
tp
,
0x13
,
0
,
1
,
1
,
nil
,
tc
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
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