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
fc37bad9
Commit
fc37bad9
authored
Nov 25, 2024
by
花桃白音
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix--0004 directattack nil and deck shuffle#07&13
parent
4e8def35
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
expansions/script/c4204007.lua
expansions/script/c4204007.lua
+2
-1
expansions/script/c4204013.lua
expansions/script/c4204013.lua
+4
-1
No files found.
expansions/script/c4204007.lua
View file @
fc37bad9
...
@@ -87,7 +87,8 @@ function cm.initial_effect(c)
...
@@ -87,7 +87,8 @@ function cm.initial_effect(c)
.
e
(
"SetCondition"
,
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
.
e
(
"SetCondition"
,
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetAttacker
()
local
tc
=
Duel
.
GetAttacker
()
local
ta
=
Duel
.
GetAttackTarget
()
local
ta
=
Duel
.
GetAttackTarget
()
return
(
tc
or
ta
)
and
(
tc
:
IsCode
(
4204000
)
or
ta
:
IsCode
(
4204000
))
return
(
tc
and
{
tc
:
IsCode
(
4204000
)}
or
{
false
})[
1
]
oe
(
ta
and
{
ta
:
IsCode
(
4204000
)}
or
{
false
})[
1
]
end
)
end
)
.
e
(
"SetCountLimit"
,
1
,
m
)
.
e
(
"SetCountLimit"
,
1
,
m
)
.
e
(
"SetTarget"
,
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
.
e
(
"SetTarget"
,
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
expansions/script/c4204013.lua
View file @
fc37bad9
...
@@ -26,11 +26,14 @@ function cm.initial_effect(c)
...
@@ -26,11 +26,14 @@ function cm.initial_effect(c)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
thfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
thfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
if
#
g
>
0
and
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
>
0
then
if
#
g
>
0
and
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
>
0
then
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ShuffleDeck
(
tp
)
end
end
if
Duel
.
IsExistingMatchingCard
(
function
(
c
)
return
c
:
IsCode
(
4204000
)
end
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
then
if
Duel
.
IsExistingMatchingCard
(
function
(
c
)
return
c
:
IsCode
(
4204000
)
end
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
then
if
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
function
(
c
)
return
c
:
IsAbleToDeck
()
end
),
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
4204013
,
0
))
then
if
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
function
(
c
)
return
c
:
IsAbleToDeck
()
end
),
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
4204013
,
0
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
function
(
c
)
return
c
:
IsAbleToDeck
()
end
),
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
function
(
c
)
return
c
:
IsAbleToDeck
()
end
),
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
#
g
>
0
then
if
#
g
>
0
then
Duel
.
BreakEffect
()
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKTOP
,
REASON_EFFECT
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKTOP
,
REASON_EFFECT
)
end
end
end
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