Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
Soulgamer
ygopro-222DIY-cards
Commits
3ef354c1
Commit
3ef354c1
authored
Feb 01, 2021
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wdnmd
parent
68f3eabe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
expansions/script/c16200001.lua
expansions/script/c16200001.lua
+11
-8
No files found.
expansions/script/c16200001.lua
View file @
3ef354c1
...
...
@@ -64,8 +64,8 @@ end
function
c16200001
.
efilter
(
e
,
c
)
return
aux
.
IsCodeListed
(
c
,
16200003
)
and
c
:
IsFaceup
()
end
function
c16200001
.
efilter1
(
e
,
c
t
)
return
aux
.
IsCodeListed
(
e
:
GetHandler
(),
16200003
)
and
e
:
GetHandler
()
:
IsFaceup
()
function
c16200001
.
efilter1
(
e
,
c
)
return
aux
.
IsCodeListed
(
c
,
16200003
)
and
c
:
IsFaceup
()
end
function
c16200001
.
efilter2
(
e
,
re
)
return
e
:
GetOwnerPlayer
()
~=
re
:
GetOwnerPlayer
()
...
...
@@ -96,10 +96,12 @@ function c16200001.op1(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
gn
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
gn
:
GetCount
()
<
1
then
return
end
local
num
=
Duel
.
SendtoDeck
(
gn
,
nil
,
2
,
REASON_EFFECT
)
Duel
.
SendtoDeck
(
gn
,
nil
,
0
,
REASON_EFFECT
)
local
g
=
Duel
.
GetOperatedGroup
()
Duel
.
ShuffleDeck
(
tp
)
if
num
<
1
then
return
end
if
Duel
.
IsPlayerCanDraw
(
tp
,
2
)
then
local
ct
=
g
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_DECK
+
LOCATION_EXTRA
)
if
ct
==
gn
:
GetCount
()
then
Duel
.
BreakEffect
()
Duel
.
Draw
(
tp
,
2
,
REASON_EFFECT
)
end
end
...
...
@@ -123,8 +125,8 @@ function c16200001.tg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
2
)
end
--
function
c16200001
.
tfilter3
(
c
)
return
c
:
IsAbleToRemove
()
function
c16200001
.
tfilter3
(
c
,
tp
)
return
c
:
IsAbleToRemove
(
tp
,
POS_FACEDOWN
,
REASON_EFFECT
)
end
function
c16200001
.
op2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
@@ -132,6 +134,7 @@ function c16200001.op2(e,tp,eg,ep,ev,re,r,rp)
if
gn
:
GetCount
()
<
1
then
return
end
local
num
=
Duel
.
Destroy
(
gn
,
REASON_EFFECT
)
if
num
<
1
then
return
end
local
g
=
Duel
.
SelectTarget
(
tp
,
c16200001
.
tfilter3
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
num
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c16200001
.
tfilter3
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
num
,
nil
,
tp
)
Duel
.
Remove
(
g
,
POS_FACEDOWN
,
REASON_EFFECT
)
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