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
REIKAI
ygopro-222DIY-cards
Commits
625a450b
Commit
625a450b
authored
Dec 23, 2024
by
花桃白音
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 0004
parent
0b93fe62
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
expansions/script/c4204015.lua
expansions/script/c4204015.lua
+4
-3
expansions/script/c4204017.lua
expansions/script/c4204017.lua
+1
-1
No files found.
expansions/script/c4204015.lua
View file @
625a450b
...
...
@@ -8,7 +8,8 @@ function cm.initial_effect(c)
.
e
(
"SetType"
,
EFFECT_TYPE_ACTIVATE
)
.
e
(
"SetCode"
,
EVENT_FREE_CHAIN
)
.
e
(
"SetTarget"
,
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
dishdfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
dishdfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
c
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
if
Duel
.
IsExistingMatchingCard
(
function
(
c
)
return
c
:
IsCode
(
4204000
)
end
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
then
else
...
...
@@ -29,12 +30,12 @@ function cm.initial_effect(c)
if
Duel
.
IsExistingMatchingCard
(
function
(
c
)
return
c
:
IsCode
(
4204000
)
end
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_
TRA
P_ACT_IN_SET_TURN
)
e1
:
SetCode
(
EFFECT_
Q
P_ACT_IN_SET_TURN
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetTargetRange
(
LOCATION_SZONE
,
0
)
e1
:
SetCountLimit
(
7
)
e1
:
SetTarget
(
function
(
e
,
c
)
return
c
:
GetType
()
==
TYPE_QUICKPLAY
return
c
:
IsType
(
TYPE_QUICKPLAY
)
end
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
...
...
expansions/script/c4204017.lua
View file @
625a450b
...
...
@@ -56,7 +56,7 @@ function c4204017.initial_effect(c)
e3
:
SetOperation
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
if
Duel
.
IsExistingMatchingCard
(
c4204017
.
sumfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
2
))
then
if
Duel
.
IsExistingMatchingCard
(
c4204017
.
sumfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
4204017
,
2
))
then
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SUMMON
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c4204017
.
sumfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
...
...
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