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
3
Merge Requests
3
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
af65e5ae
Commit
af65e5ae
authored
Dec 23, 2023
by
wind2009
Committed by
GitHub
Dec 23, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 白の循環礁
parent
7d1235d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
11 deletions
+48
-11
c21579049.lua
c21579049.lua
+48
-11
No files found.
c21579049.lua
View file @
af65e5ae
...
@@ -59,24 +59,61 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -59,24 +59,61 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
s
.
tdfilter
(
c
,
e
,
tp
)
function
s
.
tdfilter
(
c
,
e
,
tp
)
return
c
:
Is
AbleToDeck
()
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsRace
(
RACE_FISH
)
return
c
:
Is
CanBeEffectTarget
(
e
)
and
c
:
IsRace
(
RACE_FISH
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsCode
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
c
,
c
:
GetCode
()
)
end
end
function
s
.
tdfilter2
(
c
,
g
)
function
s
.
fselect
(
g
,
e
,
tp
)
return
g
:
IsExists
(
Card
.
IsCode
,
1
,
c
,
c
:
GetCode
())
return
g
:
GetClassCount
(
Card
.
GetCode
)
==
1
and
g
:
IsExists
(
s
.
fcheck
,
1
,
nil
,
g
,
e
,
tp
)
end
function
s
.
fcheck
(
c
,
g
,
e
,
tp
)
return
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
g
:
IsExists
(
s
.
fcheck2
,
1
,
c
)
end
function
s
.
fcheck2
(
c
)
return
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsAbleToDeck
()
end
end
function
s
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
s
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
s
.
tdfilter2
(
chkc
,
g
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
s
.
tdfilter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
g
:
IsExists
(
s
.
tdfilter2
,
1
,
nil
,
g
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
g
:
CheckSubGroup
(
s
.
fselect
,
2
,
2
,
e
,
tp
)
end
Duel
.
SelectTarget
(
tp
,
s
.
tdfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
2
,
nil
,
g
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
s
.
fselect
,
false
,
2
,
2
,
e
,
tp
)
Duel
.
SetTargetCard
(
sg
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
end
end
function
s
.
cfilter
(
c
,
e
,
tp
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsLocation
(
LOCATION_GRAVE
)
end
function
s
.
cfilter2
(
c
,
e
,
tp
)
return
not
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsAbleToDeck
()
end
function
s
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
if
not
g
or
g
:
FilterCount
(
Card
.
IsRelateToEffect
,
nil
,
e
)
~=
2
then
return
end
if
not
g
or
g
:
FilterCount
(
Card
.
IsRelateToEffect
,
nil
,
e
)
~=
2
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
local
tc1
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
sc
=
nil
Duel
.
SpecialSummon
(
tc1
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
dc
=
nil
Duel
.
SendtoDeck
((
g
-
tc1
):
GetFirst
(),
nil
,
SEQ_DECKBOTTOM
,
REASON_EFFECT
)
if
g
and
g
:
GetCount
()
==
2
then
end
if
g
:
FilterCount
(
s
.
cfilter
,
nil
,
e
,
tp
)
==
2
then
\ No newline at end of file
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
dc
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
sc
=
(
g
-
dc
):
GetFirst
()
Duel
.
SendtoDeck
(
dc
,
nil
,
SEQ_DECKBOTTOM
,
REASON_EFFECT
)
local
sg
=
Duel
.
GetOperatedGroup
()
if
sg
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_DECK
)
or
sg
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_EXTRA
)
then
Duel
.
SpecialSummon
(
sc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
dc
=
g
:
FilterSelect
(
tp
,
s
.
cfilter2
,
1
,
1
,
nil
,
e
,
tp
)
local
sc
=
(
g
-
dc
):
GetFirst
()
Duel
.
SendtoDeck
(
dc
,
nil
,
SEQ_DECKBOTTOM
,
REASON_EFFECT
)
local
sg
=
Duel
.
GetOperatedGroup
()
if
sg
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_DECK
)
or
sg
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_EXTRA
)
then
Duel
.
SpecialSummon
(
sc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
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