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
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
Vee4
ygopro-scripts-888
Commits
a3a886f5
Commit
a3a886f5
authored
Jul 30, 2022
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use IsRelateToChain
https://github.com/Fluorohydride/ygopro/issues/2389
parent
ee531f5a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
12 deletions
+6
-12
c28226490.lua
c28226490.lua
+1
-2
c37961969.lua
c37961969.lua
+1
-2
c572850.lua
c572850.lua
+1
-2
c73956664.lua
c73956664.lua
+1
-2
c74078255.lua
c74078255.lua
+1
-2
c99456344.lua
c99456344.lua
+1
-2
No files found.
c28226490.lua
View file @
a3a886f5
...
...
@@ -70,13 +70,12 @@ function c28226490.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingMatchingCard
(
c28226490
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
c
:
RegisterFlagEffect
(
99456344
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_CHAIN
,
0
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c28226490
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateTo
Effect
(
e
)
and
c
:
GetFlagEffect
(
99456344
)
~=
0
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
then
if
c
:
IsRelateTo
Chain
()
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c28226490
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
#
g
>
0
then
...
...
c37961969.lua
View file @
a3a886f5
...
...
@@ -69,13 +69,12 @@ function c37961969.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
return
res
end
e
:
GetHandler
():
RegisterFlagEffect
(
99456344
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_CHAIN
,
0
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
function
c37961969
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
chkf
=
tp
if
not
c
:
IsRelateTo
Effect
(
e
)
or
c
:
GetFlagEffect
(
99456344
)
==
0
or
c
:
IsImmuneToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateTo
Chain
()
or
c
:
IsImmuneToEffect
(
e
)
then
return
end
local
mg
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
c37961969
.
filter0
),
tp
,
LOCATION_HAND
+
LOCATION_MZONE
+
LOCATION_GRAVE
,
0
,
nil
,
e
)
local
sg1
=
Duel
.
GetMatchingGroup
(
c37961969
.
filter1
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg
,
nil
,
chkf
)
local
mg2
=
nil
...
...
c572850.lua
View file @
a3a886f5
...
...
@@ -76,13 +76,12 @@ function c572850.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
return
res
end
e
:
GetHandler
():
RegisterFlagEffect
(
99456344
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_CHAIN
,
0
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
function
c572850
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
chkf
=
tp
if
not
c
:
IsRelateTo
Effect
(
e
)
or
c
:
GetFlagEffect
(
99456344
)
==
0
or
c
:
IsImmuneToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateTo
Chain
()
or
c
:
IsImmuneToEffect
(
e
)
then
return
end
local
mg
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
c572850
.
filter0
),
tp
,
LOCATION_HAND
+
LOCATION_MZONE
+
LOCATION_GRAVE
,
0
,
nil
,
e
)
local
sg1
=
Duel
.
GetMatchingGroup
(
c572850
.
filter1
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg
,
nil
,
chkf
)
local
mg2
=
nil
...
...
c73956664.lua
View file @
a3a886f5
...
...
@@ -52,13 +52,12 @@ function c73956664.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingMatchingCard
(
c73956664
.
tgfilter2
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
c
:
RegisterFlagEffect
(
99456344
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_CHAIN
,
0
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
function
c73956664
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateTo
Effect
(
e
)
and
c
:
GetFlagEffect
(
99456344
)
~=
0
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
then
if
c
:
IsRelateTo
Chain
()
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_LEAVE_FIELD_REDIRECT
)
...
...
c74078255.lua
View file @
a3a886f5
...
...
@@ -63,13 +63,12 @@ function c74078255.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
return
res
end
e
:
GetHandler
():
RegisterFlagEffect
(
99456344
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_CHAIN
,
0
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
function
c74078255
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
chkf
=
tp
if
not
c
:
IsRelateTo
Effect
(
e
)
or
c
:
GetFlagEffect
(
99456344
)
==
0
or
c
:
IsImmuneToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateTo
Chain
()
or
c
:
IsImmuneToEffect
(
e
)
then
return
end
local
mg
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
c74078255
.
filter0
),
tp
,
LOCATION_HAND
+
LOCATION_MZONE
+
LOCATION_GRAVE
,
0
,
nil
,
e
)
local
sg1
=
Duel
.
GetMatchingGroup
(
c74078255
.
filter1
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg
,
nil
,
chkf
)
local
mg2
=
nil
...
...
c99456344.lua
View file @
a3a886f5
...
...
@@ -67,11 +67,10 @@ end
function
c99456344
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
e
:
GetHandler
():
RegisterFlagEffect
(
99456344
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_CHAIN
,
0
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c99456344
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateTo
Effect
(
e
)
or
c
:
GetFlagEffect
(
99456344
)
==
0
then
return
end
if
not
c
:
IsRelateTo
Chain
()
then
return
end
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
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