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
344d4dc4
Commit
344d4dc4
authored
Jan 25, 2025
by
Huangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
2a91154b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
expansions/script/c75600021.lua
expansions/script/c75600021.lua
+5
-11
No files found.
expansions/script/c75600021.lua
View file @
344d4dc4
...
@@ -67,7 +67,7 @@ function c75600021.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -67,7 +67,7 @@ function c75600021.target(e,tp,eg,ep,ev,re,r,rp,chk)
local
mg
=
c
:
GetOverlayGroup
()
local
mg
=
c
:
GetOverlayGroup
()
if
chk
==
0
and
c
:
GetFlagEffect
(
75600021
)
==
0
then
if
chk
==
0
and
c
:
GetFlagEffect
(
75600021
)
==
0
then
local
sel
=
0
local
sel
=
0
if
e
:
GetHandler
():
IsType
(
TYPE_XYZ
)
and
Duel
.
IsExistingMatchingCard
(
c75600021
.
mfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
then
sel
=
sel
+
1
end
if
e
:
GetHandler
():
IsType
(
TYPE_XYZ
)
and
Duel
.
IsExistingMatchingCard
(
c75600021
.
mfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
)
then
sel
=
sel
+
1
end
if
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
1
,
nil
)
if
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
then
sel
=
sel
+
2
end
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
then
sel
=
sel
+
2
end
e
:
SetLabel
(
sel
)
e
:
SetLabel
(
sel
)
...
@@ -78,13 +78,12 @@ function c75600021.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -78,13 +78,12 @@ function c75600021.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EFFECT
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EFFECT
)
sel
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
75600021
,
1
),
aux
.
Stringid
(
75600021
,
2
))
+
1
sel
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
75600021
,
1
),
aux
.
Stringid
(
75600021
,
2
))
+
1
elseif
sel
==
1
then
elseif
sel
==
1
then
sel
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
75600021
,
1
))
sel
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
75600021
,
1
))
+
1
else
else
sel
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
75600021
,
2
))
sel
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
75600021
,
2
))
end
end
e
:
SetLabel
(
sel
)
e
:
SetLabel
(
sel
)
if
sel
~=
1
then
if
sel
~=
1
then
local
ct
=
Duel
.
GetFlagEffect
(
e
:
GetOwnerPlayer
(),
75600021
)
e
:
SetCategory
(
CATEGORY_REMOVE
)
e
:
SetCategory
(
CATEGORY_REMOVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
0
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
0
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
)
end
end
...
@@ -92,11 +91,11 @@ function c75600021.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -92,11 +91,11 @@ function c75600021.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c75600021
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c75600021
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
sel
=
e
:
GetLabel
()
local
sel
=
e
:
GetLabel
()
if
sel
==
1
then
if
sel
==
1
then
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c75600021
.
mfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c75600021
.
mfilter
),
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
Overlay
(
c
,
g
)
Duel
.
Overlay
(
c
,
g
)
end
end
...
@@ -111,11 +110,6 @@ function c75600021.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -111,11 +110,6 @@ function c75600021.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Remove
(
g1
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
g1
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
end
end
function
c75600021
.
atkval
(
e
,
c
)
local
ct
=
Duel
.
GetFlagEffect
(
e
:
GetOwnerPlayer
(),
5600013
)
return
ct
*
1000
end
function
c75600021
.
filter
(
c
)
function
c75600021
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_MONSTER
)
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