Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-THC-cards
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
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
HiiragiGuardians
ygopro-THC-cards
Commits
941ea884
Commit
941ea884
authored
Aug 22, 2023
by
GuGu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c999501.lua 与卡名复制的联动bug
parent
12aca202
Pipeline
#23244
passed with stage
in 1 minute and 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
+15
-10
script/c999501.lua
script/c999501.lua
+15
-10
No files found.
script/c999501.lua
View file @
941ea884
...
...
@@ -60,8 +60,10 @@ function M.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local
g
=
Duel
.
GetMatchingGroup
(
M
.
costfilter
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
nil
)
if
chk
==
0
then
return
g
:
GetCount
()
>=
2
and
M
[
tp
]
end
local
rg
=
g
:
Select
(
tp
,
2
,
2
,
nil
)
if
e
:
GetLabelObject
()
then
e
:
GetLabelObject
():
DeleteGroup
()
end
e
:
SetLabelObject
(
rg
)
if
e
:
GetLabel
()
then
e
:
SetLabel
(
nil
)
end
local
code1
=
rg
:
GetFirst
():
GetCode
()
local
code2
=
rg
:
GetNext
():
GetCode
()
e
:
SetLabel
(
code1
,
code2
)
rg
:
KeepAlive
()
Duel
.
Remove
(
rg
,
POS_FACEUP
,
REASON_COST
)
...
...
@@ -96,14 +98,17 @@ function M.operation(e,tp,eg,ep,ev,re,r,rp)
local
rpz
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
4
)
if
lpz
or
rpz
then
return
end
local
rg
=
e
:
GetLabelObject
()
local
fc
=
rg
:
GetFirst
()
while
fc
do
local
code
=
fc
:
GetCode
()
-
25020
+
999502
local
token
=
Duel
.
CreateToken
(
tp
,
code
)
Duel
.
MoveToField
(
token
,
tp
,
tp
,
LOCATION_PZONE
,
POS_FACEUP
,
true
)
fc
=
rg
:
GetNext
()
end
local
code1
,
code2
=
e
:
GetLabel
()
if
code1
then
local
code
=
code1
-
25020
+
999502
local
token
=
Duel
.
CreateToken
(
tp
,
code
)
Duel
.
MoveToField
(
token
,
tp
,
tp
,
LOCATION_PZONE
,
POS_FACEUP
,
true
)
end
if
code2
then
local
code
=
code2
-
25020
+
999502
local
token
=
Duel
.
CreateToken
(
tp
,
code
)
Duel
.
MoveToField
(
token
,
tp
,
tp
,
LOCATION_PZONE
,
POS_FACEUP
,
true
)
end
end
function
M
.
drcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
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