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
77c1b160
Commit
77c1b160
authored
Mar 02, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ybb
parent
af1b240f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
expansions/script/c9330018.lua
expansions/script/c9330018.lua
+7
-6
No files found.
expansions/script/c9330018.lua
View file @
77c1b160
...
...
@@ -37,6 +37,7 @@ function c9330018.initial_effect(c)
e4
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetCode
(
EVENT_FREE_CHAIN
)
e4
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_MAIN_END
)
e4
:
SetCountLimit
(
1
,
9330018
)
e4
:
SetCondition
(
c9330018
.
accon2
)
e4
:
SetTarget
(
c9330018
.
actg2
)
...
...
@@ -79,24 +80,24 @@ end
function
c9330018
.
filter
(
c
,
tp
)
return
c
:
IsSetCard
(
0xaf93
)
and
c
:
IsType
(
TYPE_FIELD
)
and
c
:
GetActivateEffect
():
IsActivatable
(
tp
,
true
,
true
)
end
function
c9330018
.
thfilter
(
c
,
tp
)
function
c9330018
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0xaf93
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
function
c9330018
.
actg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
p
=
e
:
GetHandlerPlayer
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c9330018
.
filter
,
p
,
LOCATION_HAND
+
LOCATION_GRAVE
+
LOCATION_DECK
,
0
,
1
,
nil
,
p
)
or
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
0
,
LOCATION_FZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c9330018
.
thfilter
,
p
,
LOCATION_DECK
,
0
,
1
,
nil
,
p
)
end
or
(
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
p
,
LOCATION_FZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c9330018
.
thfilter
,
p
,
LOCATION_DECK
,
0
,
1
,
nil
)
)
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
p
,
aux
.
Stringid
(
9330018
,
0
))
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
p
,
LOCATION_DECK
)
end
function
c9330018
.
acop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
=
e
:
GetHandlerPlayer
()
b
=
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
0
,
LOCATION_FZONE
,
0
,
1
,
nil
)
if
b
and
Duel
.
IsExistingMatchingCard
(
c9330018
.
thfilter
,
p
,
LOCATION_DECK
,
0
,
1
,
nil
,
p
)
and
(
not
Duel
.
IsExistingMatchingCard
(
c9330018
.
filter
,
p
,
LOCATION_DECK
,
0
,
1
,
nil
)
or
Duel
.
SelectYesNo
(
p
,
aux
.
Stringid
(
9330018
,
2
)))
then
b
=
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
p
,
LOCATION_FZONE
,
0
,
1
,
nil
)
if
b
and
Duel
.
IsExistingMatchingCard
(
c9330018
.
thfilter
,
p
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
(
not
Duel
.
IsExistingMatchingCard
(
c9330018
.
filter
,
p
,
LOCATION_DECK
,
0
,
1
,
nil
)
or
Duel
.
SelectYesNo
(
p
,
aux
.
Stringid
(
9330018
,
2
)))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
p
,
c9330018
.
thfilter
,
p
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
p
)
local
g
=
Duel
.
SelectMatchingCard
(
p
,
c9330018
.
thfilter
,
p
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
if
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
~=
0
and
tc
:
IsLocation
(
LOCATION_HAND
)
then
Duel
.
ConfirmCards
(
1
-
p
,
tc
)
...
...
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