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
Nguyễn Anh Kiệt
ygopro-222DIY-cards
Commits
7042d612
Commit
7042d612
authored
Aug 30, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
byd
parent
58d641a8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
expansions/script/c81004007.lua
expansions/script/c81004007.lua
+1
-1
expansions/script/c81028015.lua
expansions/script/c81028015.lua
+6
-5
No files found.
expansions/script/c81004007.lua
View file @
7042d612
...
@@ -29,7 +29,7 @@ function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -29,7 +29,7 @@ function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
end
end
function
cm
.
thfilter
(
c
)
function
cm
.
thfilter
(
c
)
return
c
:
IsAttack
(
1550
)
and
c
:
IsDefense
(
1050
)
and
c
:
IsAbleToHand
()
and
c
:
IsFaceupEx
()
return
c
:
IsAttack
(
1550
)
and
c
:
IsDefense
(
1050
)
and
c
:
IsAbleToHand
()
and
c
:
IsFaceupEx
()
and
not
c
:
IsCode
(
m
)
end
end
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
...
...
expansions/script/c81028015.lua
View file @
7042d612
...
@@ -26,15 +26,16 @@ function cm.initial_effect(c)
...
@@ -26,15 +26,16 @@ function cm.initial_effect(c)
e4
:
SetOperation
(
cm
.
spop
)
e4
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
cm
.
d
filter
(
c
)
function
cm
.
sendtog
filter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsDiscardable
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsDiscardable
()
end
end
function
cm
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
local
c
=
e
:
GetHandler
()
and
Duel
.
IsExistingMatchingCard
(
cm
.
dfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
if
chk
==
0
then
return
c
:
IsDiscardable
()
and
Duel
.
IsExistingMatchingCard
(
cm
.
sendtogfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
c
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISCARD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISCARD
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
dfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
e
:
GetHandler
()
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
sendtogfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
c
)
g
:
AddCard
(
e
:
GetHandler
()
)
g
:
AddCard
(
c
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
+
REASON_DISCARD
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
+
REASON_DISCARD
)
end
end
function
cm
.
thfilter
(
c
,
e
,
tp
,
check
)
function
cm
.
thfilter
(
c
,
e
,
tp
,
check
)
...
...
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