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
Reinen
ygopro-scripts
Commits
f9665ccd
Commit
f9665ccd
authored
Feb 09, 2021
by
mercury233
Committed by
GitHub
Feb 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Lair of Darkness vs Hex-Sealed Fusion (#1547)
parent
96cd651f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
4 deletions
+40
-4
c15717011.lua
c15717011.lua
+13
-1
c52101615.lua
c52101615.lua
+13
-1
c59160188.lua
c59160188.lua
+1
-1
c88696724.lua
c88696724.lua
+13
-1
No files found.
c15717011.lua
View file @
f9665ccd
...
@@ -28,6 +28,9 @@ end
...
@@ -28,6 +28,9 @@ end
function
c15717011
.
mfilter
(
c
,
tp
)
function
c15717011
.
mfilter
(
c
,
tp
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsCanBeFusionMaterial
()
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsCanBeFusionMaterial
()
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
end
function
c15717011
.
fcheck
(
tp
,
sg
,
fc
)
return
Duel
.
CheckReleaseGroup
(
tp
,
Auxiliary
.
IsInGroup
,
#
sg
,
nil
,
sg
)
end
function
c15717011
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c15717011
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
1
)
e
:
SetLabel
(
1
)
return
true
return
true
...
@@ -39,12 +42,21 @@ function c15717011.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -39,12 +42,21 @@ function c15717011.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
e
:
GetLabel
()
~=
1
then
return
false
end
if
e
:
GetLabel
()
~=
1
then
return
false
end
e
:
SetLabel
(
0
)
e
:
SetLabel
(
0
)
local
mg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c15717011
.
mfilter
,
nil
,
tp
)
local
mg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c15717011
.
mfilter
,
nil
,
tp
)
return
Duel
.
IsExistingMatchingCard
(
c15717011
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg
,
c
,
chkf
)
Auxiliary
.
FCheckAdditional
=
c15717011
.
fcheck
if
c59160188
then
c59160188
.
re_activated
=
true
end
local
res
=
Duel
.
IsExistingMatchingCard
(
c15717011
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg
,
c
,
chkf
)
Auxiliary
.
FCheckAdditional
=
nil
if
c59160188
then
c59160188
.
re_activated
=
false
end
return
res
end
end
local
mg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c15717011
.
mfilter
,
nil
,
tp
)
local
mg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c15717011
.
mfilter
,
nil
,
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Auxiliary
.
FCheckAdditional
=
c15717011
.
fcheck
if
c59160188
then
c59160188
.
re_activated
=
true
end
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c15717011
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
mg
,
c
,
chkf
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c15717011
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
mg
,
c
,
chkf
)
local
mat
=
Duel
.
SelectFusionMaterial
(
tp
,
g
:
GetFirst
(),
mg
,
c
,
chkf
)
local
mat
=
Duel
.
SelectFusionMaterial
(
tp
,
g
:
GetFirst
(),
mg
,
c
,
chkf
)
Auxiliary
.
FCheckAdditional
=
nil
if
c59160188
then
c59160188
.
re_activated
=
false
end
Duel
.
Release
(
mat
,
REASON_COST
)
Duel
.
Release
(
mat
,
REASON_COST
)
e
:
SetLabel
(
g
:
GetFirst
():
GetCode
())
e
:
SetLabel
(
g
:
GetFirst
():
GetCode
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
...
...
c52101615.lua
View file @
f9665ccd
...
@@ -28,6 +28,9 @@ end
...
@@ -28,6 +28,9 @@ end
function
c52101615
.
mfilter
(
c
,
tp
)
function
c52101615
.
mfilter
(
c
,
tp
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsCanBeFusionMaterial
()
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsCanBeFusionMaterial
()
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
end
function
c52101615
.
fcheck
(
tp
,
sg
,
fc
)
return
Duel
.
CheckReleaseGroup
(
tp
,
Auxiliary
.
IsInGroup
,
#
sg
,
nil
,
sg
)
end
function
c52101615
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c52101615
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
1
)
e
:
SetLabel
(
1
)
return
true
return
true
...
@@ -39,12 +42,21 @@ function c52101615.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -39,12 +42,21 @@ function c52101615.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
e
:
GetLabel
()
~=
1
then
return
false
end
if
e
:
GetLabel
()
~=
1
then
return
false
end
e
:
SetLabel
(
0
)
e
:
SetLabel
(
0
)
local
mg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c52101615
.
mfilter
,
nil
,
tp
)
local
mg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c52101615
.
mfilter
,
nil
,
tp
)
return
Duel
.
IsExistingMatchingCard
(
c52101615
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg
,
c
,
chkf
)
Auxiliary
.
FCheckAdditional
=
c52101615
.
fcheck
if
c59160188
then
c59160188
.
re_activated
=
true
end
local
res
=
Duel
.
IsExistingMatchingCard
(
c52101615
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg
,
c
,
chkf
)
Auxiliary
.
FCheckAdditional
=
nil
if
c59160188
then
c59160188
.
re_activated
=
false
end
return
res
end
end
local
mg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c52101615
.
mfilter
,
nil
,
tp
)
local
mg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c52101615
.
mfilter
,
nil
,
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Auxiliary
.
FCheckAdditional
=
c52101615
.
fcheck
if
c59160188
then
c59160188
.
re_activated
=
true
end
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c52101615
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
mg
,
c
,
chkf
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c52101615
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
mg
,
c
,
chkf
)
local
mat
=
Duel
.
SelectFusionMaterial
(
tp
,
g
:
GetFirst
(),
mg
,
c
,
chkf
)
local
mat
=
Duel
.
SelectFusionMaterial
(
tp
,
g
:
GetFirst
(),
mg
,
c
,
chkf
)
Auxiliary
.
FCheckAdditional
=
nil
if
c59160188
then
c59160188
.
re_activated
=
false
end
Duel
.
Release
(
mat
,
REASON_COST
)
Duel
.
Release
(
mat
,
REASON_COST
)
e
:
SetLabel
(
g
:
GetFirst
():
GetCode
())
e
:
SetLabel
(
g
:
GetFirst
():
GetCode
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
...
...
c59160188.lua
View file @
f9665ccd
...
@@ -43,7 +43,7 @@ function c59160188.initial_effect(c)
...
@@ -43,7 +43,7 @@ function c59160188.initial_effect(c)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
function
c59160188
.
relval
(
e
,
re
,
r
,
rp
)
function
c59160188
.
relval
(
e
,
re
,
r
,
rp
)
return
re
:
IsActivated
(
)
and
bit
.
band
(
r
,
REASON_COST
)
~=
0
return
(
c59160188
.
re_activated
or
re
:
IsActivated
()
)
and
bit
.
band
(
r
,
REASON_COST
)
~=
0
end
end
function
c59160188
.
regfilter
(
c
)
function
c59160188
.
regfilter
(
c
)
return
c
:
GetPreviousTypeOnField
()
&
TYPE_MONSTER
>
0
return
c
:
GetPreviousTypeOnField
()
&
TYPE_MONSTER
>
0
...
...
c88696724.lua
View file @
f9665ccd
...
@@ -28,6 +28,9 @@ end
...
@@ -28,6 +28,9 @@ end
function
c88696724
.
mfilter
(
c
,
tp
)
function
c88696724
.
mfilter
(
c
,
tp
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsCanBeFusionMaterial
()
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsCanBeFusionMaterial
()
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
end
function
c88696724
.
fcheck
(
tp
,
sg
,
fc
)
return
Duel
.
CheckReleaseGroup
(
tp
,
Auxiliary
.
IsInGroup
,
#
sg
,
nil
,
sg
)
end
function
c88696724
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c88696724
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
1
)
e
:
SetLabel
(
1
)
return
true
return
true
...
@@ -39,12 +42,21 @@ function c88696724.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -39,12 +42,21 @@ function c88696724.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
e
:
GetLabel
()
~=
1
then
return
false
end
if
e
:
GetLabel
()
~=
1
then
return
false
end
e
:
SetLabel
(
0
)
e
:
SetLabel
(
0
)
local
mg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c88696724
.
mfilter
,
nil
,
tp
)
local
mg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c88696724
.
mfilter
,
nil
,
tp
)
return
Duel
.
IsExistingMatchingCard
(
c88696724
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg
,
c
,
chkf
)
Auxiliary
.
FCheckAdditional
=
c88696724
.
fcheck
if
c59160188
then
c59160188
.
re_activated
=
true
end
local
res
=
Duel
.
IsExistingMatchingCard
(
c88696724
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg
,
c
,
chkf
)
Auxiliary
.
FCheckAdditional
=
nil
if
c59160188
then
c59160188
.
re_activated
=
false
end
return
res
end
end
local
mg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c88696724
.
mfilter
,
nil
,
tp
)
local
mg
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c88696724
.
mfilter
,
nil
,
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Auxiliary
.
FCheckAdditional
=
c88696724
.
fcheck
if
c59160188
then
c59160188
.
re_activated
=
true
end
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c88696724
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
mg
,
c
,
chkf
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c88696724
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
mg
,
c
,
chkf
)
local
mat
=
Duel
.
SelectFusionMaterial
(
tp
,
g
:
GetFirst
(),
mg
,
c
,
chkf
)
local
mat
=
Duel
.
SelectFusionMaterial
(
tp
,
g
:
GetFirst
(),
mg
,
c
,
chkf
)
Auxiliary
.
FCheckAdditional
=
nil
if
c59160188
then
c59160188
.
re_activated
=
false
end
Duel
.
Release
(
mat
,
REASON_COST
)
Duel
.
Release
(
mat
,
REASON_COST
)
e
:
SetLabel
(
g
:
GetFirst
():
GetCode
())
e
:
SetLabel
(
g
:
GetFirst
():
GetCode
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
...
...
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