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
4af35d02
Commit
4af35d02
authored
Apr 25, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sign out
parent
4151834f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
18 deletions
+19
-18
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c12301666.lua
expansions/script/c12301666.lua
+19
-18
No files found.
expansions/222DIY.cdb
View file @
4af35d02
No preview for this file type
expansions/script/c12301666.lua
View file @
4af35d02
...
@@ -94,7 +94,10 @@ end
...
@@ -94,7 +94,10 @@ end
function
c12301666
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c12301666
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
che
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
)
local
che
=
nil
--adjust
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
)
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_REVERSE_DECK
):
GetHandlerPlayer
()
==
tp
then
che
=
1
end
local
gof
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToHand
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
)
local
gof
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToHand
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
)
if
gof
then
if
gof
then
local
ghfc
=
Duel
.
GetMatchingGroupCount
(
c12301666
.
filthh
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
nil
)
local
ghfc
=
Duel
.
GetMatchingGroupCount
(
c12301666
.
filthh
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
nil
)
...
@@ -107,25 +110,23 @@ function c12301666.tdop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -107,25 +110,23 @@ function c12301666.tdop(e,tp,eg,ep,ev,re,r,rp)
local
gh
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_HAND
,
0
)
local
gh
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_HAND
,
0
)
while
#
gh
>
0
do
while
#
gh
>
0
do
local
tc
=
gh
:
RandomSelect
(
1
-
tp
,
1
):
GetFirst
()
local
tc
=
gh
:
RandomSelect
(
1
-
tp
,
1
):
GetFirst
()
Duel
.
SendtoDeck
(
tc
,
nil
,
1
,
REASON_EFFECT
)
if
#
gh
==
1
then
Duel
.
ConfirmCards
(
tp
,
tc
)
if
#
gh
==
1
then
Duel
.
ConfirmCards
(
tp
,
tc
)
end
Duel
.
SendtoDeck
(
tc
,
nil
,
1
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
tc
:
ReverseInDeck
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
12301666
,
1
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetRange
(
LOCATION_DECK
)
e1
:
SetCountLimit
(
1
)
e1
:
SetTarget
(
c12301666
.
destg
)
e1
:
SetOperation
(
c12301666
.
desop
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
else
Duel
.
SendtoDeck
(
tc
,
nil
,
1
,
REASON_EFFECT
)
end
gh
:
RemoveCard
(
tc
)
gh
:
RemoveCard
(
tc
)
end
end
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_DECK
,
0
)
tc
=
g
:
GetMinGroup
(
Card
.
GetSequence
):
GetFirst
()
if
not
tc
then
return
end
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
tc
:
ReverseInDeck
()
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
12301666
,
1
))
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e2
:
SetRange
(
LOCATION_DECK
)
e2
:
SetCountLimit
(
1
)
e2
:
SetTarget
(
c12301666
.
destg
)
e2
:
SetOperation
(
c12301666
.
desop
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e2
)
end
end
function
c12301666
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c12301666
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsFaceup
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsFaceup
()
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