Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
no81cards
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
Nemo Ma
no81cards
Commits
6e9ce44f
Commit
6e9ce44f
authored
May 11, 2025
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c33720310.lua
parent
13988944
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
71 additions
and
10 deletions
+71
-10
expansions/script/c33720310.lua
expansions/script/c33720310.lua
+71
-10
No files found.
expansions/script/c33720310.lua
View file @
6e9ce44f
...
...
@@ -47,6 +47,42 @@ function s.initial_effect(c)
e2
:
SetValue
(
s
.
repval
)
e2
:
SetOperation
(
s
.
repop
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetCode
(
id
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
1
,
0
)
c
:
RegisterEffect
(
e3
)
if
not
s
.
global_check
then
s
.
global_check
=
true
local
_DiscardDeck
=
Duel
.
DiscardDeck
function
Duel
.
DiscardDeck
(
p
,
v
,
r
)
local
g
=
Duel
.
GetDecktopGroup
(
p
,
v
)
local
eset
=
{
Duel
.
IsPlayerAffectedByEffect
(
p
,
id
)}
for
_
,
e
in
ipairs
(
eset
)
do
if
s
.
reptg
(
e
,
p
,
g
,
p
,
0
,
self_reference_effect
,
r
,
p
,
0
)
then
local
eg
=
g
:
Filter
(
s
.
repfilter
,
nil
)
if
#
eg
>
0
then
Duel
.
ConfirmCards
(
p
,
eg
)
end
local
rg
=
s
.
reptg
(
e
,
p
,
g
,
p
,
0
,
self_reference_effect
,
r
,
p
,
id
)
if
aux
.
GetValueType
(
rg
)
==
"Group"
then
g
:
Sub
(
rg
)
if
#
g
>
0
then
s
.
donotapply
=
true
local
ct
=
Duel
.
SendtoGrave
(
g
,
r
,
self_reference_tp
)
s
.
donotapply
=
false
Duel
.
Draw
(
p
,
1
,
REASON_EFFECT
)
return
ct
end
end
end
end
return
_DiscardDeck
(
p
,
v
,
r
)
end
end
if
not
s
.
MergedDelayedEventInfotable
then
s
.
MergedDelayedEventInfotable
=
{}
local
ge1
=
Effect
.
GlobalEffect
()
...
...
@@ -57,6 +93,8 @@ function s.initial_effect(c)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
s
.
donotapply
=
false
function
s
.
resetop
()
aux
.
ClearTableRecursive
(
s
.
MergedDelayedEventInfotable
)
end
...
...
@@ -100,28 +138,42 @@ end
--E2
function
s
.
repfilter
(
c
)
return
not
c
:
IsLocation
(
LOCATION_SZONE
|
LOCATION_DECK
)
and
c
:
GetDestination
()
==
LOCATION_GRAVE
and
(
c
:
IsMonster
()
or
c
:
IsLocation
(
LOCATION_MZONE
))
and
c
:
IsSetCard
(
ARCHE_BRAND_810
)
and
c
:
IsAbleToDeck
()
and
(
not
c
:
IsOnField
()
or
c
:
IsFaceup
())
local
deckchk
=
c
:
IsLocation
(
LOCATION_DECK
)
local
dest
=
c
:
GetDestination
()
return
not
c
:
IsLocation
(
LOCATION_SZONE
)
and
(
dest
==
LOCATION_GRAVE
or
(
deckchk
and
c
:
DestinationRedirect
(
LOCATION_GRAVE
)
==
0
))
and
c
:
IsFaceupEx
()
and
(
c
:
IsMonster
()
or
c
:
IsLocation
(
LOCATION_MZONE
))
and
c
:
IsSetCard
(
ARCHE_BRAND_810
)
and
(
c
:
IsAbleToDeck
()
or
deckchk
)
end
function
s
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
r
&
(
REASON_BATTLE
|
REASON_EFFECT
)
>
0
and
eg
:
IsExists
(
s
.
repfilter
,
1
,
nil
)
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
if
chk
==
0
then
return
not
s
.
donotapply
and
r
&
(
REASON_BATTLE
|
REASON_EFFECT
)
>
0
and
eg
:
IsExists
(
s
.
repfilter
,
1
,
nil
)
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
if
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
())
then
Duel
.
Hint
(
HINT_CARD
,
tp
,
id
)
local
c
=
e
:
GetHandler
()
local
g
=
eg
:
Filter
(
s
.
repfilter
,
nil
)
local
ct
=#
g
local
fid
=
e
:
GetFieldID
()
e
:
SetLabel
(
fid
)
if
ct
>
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
RTOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
TODECK
)
g
=
g
:
Select
(
tp
,
1
,
ct
,
nil
)
end
for
tc
in
aux
.
Next
(
g
)
do
tc
:
RegisterFlagEffect
(
FLAG_REDIRECTED
,
0
,
0
,
1
,
fid
)
if
chk
~=
id
then
for
tc
in
aux
.
Next
(
g
)
do
tc
:
RegisterFlagEffect
(
FLAG_REDIRECTED
,
0
,
0
,
1
,
fid
)
end
end
local
seq
=#
g
==
1
and
SEQ_DECKBOTTOM
or
SEQ_DECKTOP
if
Duel
.
SendtoDeck
(
g
,
nil
,
seq
,
REASON_EFFECT
)
>
0
then
local
dg
=
g
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_DECK
)
if
#
dg
>
0
then
Duel
.
ConfirmCards
(
1
-
tp
,
dg
)
end
local
tg
=
g
:
Filter
(
aux
.
TRUE
,
dg
)
Duel
.
HintSelection
(
tg
)
local
ct
=
Duel
.
SendtoDeck
(
tg
,
nil
,
seq
,
REASON_EFFECT
)
if
ct
>
0
or
#
dg
>
0
then
local
rg
=
Duel
.
GetGroupOperatedByThisEffect
(
e
):
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_DECK
)
local
check
=#
rg
==
0
rg
:
Merge
(
dg
)
if
#
rg
>
1
then
local
og
=
rg
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_DECK
)
local
ct1
=
og
:
FilterCount
(
Card
.
IsControler
,
nil
,
tp
)
...
...
@@ -144,11 +196,20 @@ function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
MoveSequence
(
tc
,
SEQ_DECKBOTTOM
)
end
end
elseif
check
then
local
tc
=
rg
:
GetFirst
()
Duel
.
MoveSequence
(
tc
,
SEQ_DECKBOTTOM
)
end
if
chk
==
id
then
return
rg
else
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
return
true
else
return
false
end
else
return
false
end
end
function
s
.
repval
(
e
,
c
)
return
c
:
HasFlagEffectLabel
(
FLAG_REDIRECTED
,
e
:
GetLabel
())
...
...
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