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
48a3e981
Commit
48a3e981
authored
Aug 24, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndyd
parent
5456076a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
9 deletions
+13
-9
expansions/script/c33502902.lua
expansions/script/c33502902.lua
+1
-1
expansions/script/c33502904.lua
expansions/script/c33502904.lua
+3
-3
expansions/script/c37901005.lua
expansions/script/c37901005.lua
+1
-1
expansions/script/c37901007.lua
expansions/script/c37901007.lua
+1
-1
expansions/script/c37901009.lua
expansions/script/c37901009.lua
+7
-3
No files found.
expansions/script/c33502902.lua
View file @
48a3e981
...
...
@@ -67,7 +67,7 @@ end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoDeck
(
tc
,
nil
,
2
,
REASON_EFFECT
)
~=
0
and
c
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoDeck
(
tc
,
nil
,
2
,
REASON_EFFECT
)
~=
0
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
end
end
\ No newline at end of file
expansions/script/c33502904.lua
View file @
48a3e981
...
...
@@ -50,17 +50,17 @@ end
function
cm
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
c
=
e
:
GetHandler
()
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
cm
.
thfilter
(
chkc
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToDeck
()
and
Duel
.
IsExistingTarget
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
and
c
:
GetFlagEffect
(
m
)
==
0
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToDeck
()
and
Duel
.
IsExistingTarget
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
e
:
GetHandler
()
)
and
c
:
GetFlagEffect
(
m
)
==
0
end
c
:
RegisterFlagEffect
(
m
,
RESET_CHAIN
,
0
,
1
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
e
:
GetHandler
()
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
1
,
0
,
0
)
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
then
local
g
=
Group
.
__band
(
c
,
tc
)
local
g
=
Group
.
FromCards
(
c
,
tc
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_EFFECT
)
end
end
\ No newline at end of file
expansions/script/c37901005.lua
View file @
48a3e981
...
...
@@ -78,5 +78,5 @@ function cm.tf1(c)
end
--e4
function
cm
.
tf4
(
c
)
return
c
:
IsSetCard
(
0x388
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x388
)
and
c
:
IsAbleToHand
()
and
c
:
IsFaceup
()
end
\ No newline at end of file
expansions/script/c37901007.lua
View file @
48a3e981
...
...
@@ -87,7 +87,7 @@ function cm.initial_effect(c)
end
--e3
function
cm
.
tf3
(
c
)
return
c
:
IsSetCard
(
0x388
)
and
c
:
IsAbleToDeck
()
return
c
:
IsSetCard
(
0x388
)
and
c
:
IsAbleToDeck
()
and
c
:
IsFaceup
()
end
--e4
function
cm
.
cof4
(
c
)
...
...
expansions/script/c37901009.lua
View file @
48a3e981
...
...
@@ -53,12 +53,12 @@ function cm.initial_effect(c)
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetRange
(
LOCATION_GRAVE
)
e4
:
SetTarget
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
tf
1
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
tf
1
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
tf
2
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
tf
2
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g
,
1
,
0
,
LOCATION_REMOVED
)
end
)
e4
:
SetOperation
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
tf
1
,
tp
,
LOCATION_REMOVED
,
0
,
e
:
GetHandler
())
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
tf
2
,
tp
,
LOCATION_REMOVED
,
0
,
e
:
GetHandler
())
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_EFFECT
)
~=
0
and
g
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
...
...
@@ -71,4 +71,8 @@ end
--e1
function
cm
.
tf1
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x388
)
and
c
:
IsAbleToGrave
()
and
c
:
IsType
(
TYPE_MONSTER
)
end
--e2
function
cm
.
tf2
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x388
)
and
c
:
IsAbleToGrave
()
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsFaceup
()
end
\ No newline at end of file
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