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
a6d86e6a
Commit
a6d86e6a
authored
Feb 19, 2024
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix?
parent
f07288ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
expansions/script/c33731002.lua
expansions/script/c33731002.lua
+10
-4
No files found.
expansions/script/c33731002.lua
View file @
a6d86e6a
...
...
@@ -46,12 +46,15 @@ end
function
s
.
xyzcheck
(
g
)
return
g
:
GetClassCount
(
Card
.
GetLevel
)
==
1
end
function
s
.
tgfilter
(
c
)
return
c
:
IsSetCard
(
0x442
)
and
c
:
IsAbleToGrave
()
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
filter
,
tp
,
LOCATION_HAND
,
0
,
nil
)
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
local
b1
=
g
:
CheckSubGroup
(
s
.
syncheck
,
1
,
#
g
,
e
,
tp
)
local
b2
=
g
:
CheckSubGroup
(
s
.
xyzcheck
,
2
,
2
)
and
Duel
.
IsExistingMatchingCard
(
s
.
xyzfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
local
b3
=
ct
>
0
and
Duel
.
Is
PlayerCanDiscardDeck
(
tp
,
ct
)
local
b3
=
ct
>
0
and
Duel
.
Is
ExistingMatchingCard
(
s
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
if
chk
==
0
then
return
b1
or
b2
or
b3
end
...
...
@@ -61,7 +64,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
local
b1
=
g
:
CheckSubGroup
(
s
.
syncheck
,
1
,
#
g
,
e
,
tp
)
local
b2
=
g
:
CheckSubGroup
(
s
.
xyzcheck
,
2
,
2
)
and
Duel
.
IsExistingMatchingCard
(
s
.
xyzfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
local
b3
=
ct
>
0
and
Duel
.
Is
PlayerCanDiscardDeck
(
tp
,
1
)
local
b3
=
ct
>
0
and
Duel
.
Is
ExistingMatchingCard
(
s
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
if
not
b1
and
not
b2
and
not
b3
then
return
end
local
opt
=
aux
.
Option
(
tp
,
id
,
2
,
b1
,
b2
,
b3
)
if
opt
==
0
then
...
...
@@ -98,8 +101,11 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
end
elseif
opt
==
2
then
local
n
=
Duel
.
AnnounceNumberMinMax
(
tp
,
1
,
ct
)
Duel
.
DiscardDeck
(
tp
,
n
,
REASON_EFFECT
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
ct
,
nil
)
if
#
g
>
0
then
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
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