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
Soulgamer
ygopro-222DIY-cards
Commits
0cb55ce3
Commit
0cb55ce3
authored
Feb 12, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ybb
parent
1160495f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
expansions/script/c64832008.lua
expansions/script/c64832008.lua
+10
-8
No files found.
expansions/script/c64832008.lua
View file @
0cb55ce3
...
@@ -75,20 +75,22 @@ function c64832008.costfil(c)
...
@@ -75,20 +75,22 @@ function c64832008.costfil(c)
return
c
:
IsSetCard
(
0x6410
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsDiscardable
(
REASON_COST
)
return
c
:
IsSetCard
(
0x6410
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsDiscardable
(
REASON_COST
)
end
end
function
c64832008
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c64832008
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
(
REASON_COST
)
and
Duel
.
IsExistingMatchingCard
(
c64832008
.
costfil
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
e
:
SetLabel
(
100
)
return
true
end
function
c64832008
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
e
:
GetLabel
()
~=
100
then
return
false
end
e
:
SetLabel
(
0
)
return
ft
>-
1
and
e
:
GetHandler
():
IsDiscardable
(
REASON_COST
)
and
Duel
.
IsExistingMatchingCard
(
c64832008
.
costfil
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
and
Duel
.
IsPlayerCanDraw
(
tp
,
2
)
end
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c64832008
.
costfil
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
e
:
GetHandler
())
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c64832008
.
costfil
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
e
:
GetHandler
())
if
g
:
GetFirst
():
IsCode
(
65010094
,
65010095
)
then
e
:
SetLabel
(
1
)
end
if
g
:
GetFirst
():
IsCode
(
65010094
,
65010095
)
then
Duel
.
SetChainLimit
(
c64832008
.
chlimit
)
end
g
:
AddCard
(
e
:
GetHandler
())
g
:
AddCard
(
e
:
GetHandler
())
Duel
.
SendtoGrave
(
g
,
REASON_COST
+
REASON_DISCARD
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
+
REASON_DISCARD
)
end
function
c64832008
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
2
)
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
2
)
Duel
.
SetTargetParam
(
2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
2
)
if
e
:
GetLabel
()
==
1
then
Duel
.
SetChainLimit
(
c64832008
.
chlimit
)
end
end
end
function
c64832008
.
chlimit
(
e
,
ep
,
tp
)
function
c64832008
.
chlimit
(
e
,
ep
,
tp
)
return
tp
==
ep
return
tp
==
ep
...
...
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