Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
P
pre-release-database-cdb
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
Amiya
pre-release-database-cdb
Commits
e2ec7436
Commit
e2ec7436
authored
Dec 22, 2023
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 白の循環礁
https://github.com/Fluorohydride/ygopro-pre-script/pull/1244
parent
3c42e8f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
10 deletions
+43
-10
script/c100214015.lua
script/c100214015.lua
+43
-10
No files found.
script/c100214015.lua
View file @
e2ec7436
...
@@ -59,24 +59,57 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -59,24 +59,57 @@ 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
if
g
:
FilterCount
(
s
.
cfilter
,
nil
,
e
,
tp
)
==
2
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
dc
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
sc
=
(
g
-
dc
):
GetFirst
()
if
Duel
.
SendtoDeck
(
dc
,
nil
,
SEQ_DECKBOTTOM
,
REASON_EFFECT
)
>
0
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
()
if
Duel
.
SendtoDeck
(
dc
,
nil
,
SEQ_DECKBOTTOM
,
REASON_EFFECT
)
>
0
then
Duel
.
SpecialSummon
(
sc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
end
end
end
\ No newline at end of file
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