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
alstroemeria-silentlove
ygopro-222DIY-cards
Commits
7e7c000b
Commit
7e7c000b
authored
Jun 09, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
得得得得得
parent
133e91b9
Pipeline
#13499
passed with stages
in 24 minutes and 54 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
7 deletions
+37
-7
expansions/script/c12899012.lua
expansions/script/c12899012.lua
+6
-3
expansions/script/c16101035.lua
expansions/script/c16101035.lua
+2
-2
expansions/script/c33400347.lua
expansions/script/c33400347.lua
+29
-2
No files found.
expansions/script/c12899012.lua
View file @
7e7c000b
...
...
@@ -22,7 +22,7 @@ function cm.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCondition
(
cm
.
condition
)
e2
:
SetCondition
(
cm
.
condition
2
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
...
...
@@ -69,7 +69,10 @@ function cm.matop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
condition2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
(
not
Duel
.
IsExistingMatchingCard
(
cm
.
ckfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
))
and
e
:
GetHandler
():
GetOverlayGroup
():
GetCount
()
>
0
end
...
...
expansions/script/c16101035.lua
View file @
7e7c000b
...
...
@@ -54,11 +54,11 @@ function cm.spcon(e,c)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
rg
=
Duel
.
GetReleaseGroup
(
tp
)
return
rg
:
CheckSubGroup
(
cm
.
gfilter
,
1
,
#
g
,
tp
,
c
)
return
rg
:
CheckSubGroup
(
cm
.
gfilter
,
1
,
#
r
g
,
tp
,
c
)
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
rg
=
Duel
.
GetReleaseGroup
(
tp
)
local
g
=
rg
:
SelectSubGroup
(
tp
,
cm
.
gfilter
,
false
,
1
,
#
g
,
tp
,
c
)
local
g
=
rg
:
SelectSubGroup
(
tp
,
cm
.
gfilter
,
false
,
1
,
#
r
g
,
tp
,
c
)
c
:
SetMaterial
(
g
)
Duel
.
Release
(
g
,
REASON_COST
)
end
...
...
expansions/script/c33400347.lua
View file @
7e7c000b
...
...
@@ -14,6 +14,7 @@ function cm.initial_effect(c)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetRange
(
LOCATION_SZONE
)
e1
:
SetCountLimit
(
1
,
m
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetOperation
(
cm
.
cpop
)
c
:
RegisterEffect
(
e1
)
--
...
...
@@ -37,14 +38,40 @@ function cm.initial_effect(c)
e9
:
SetCondition
(
cm
.
backon
)
e9
:
SetOperation
(
cm
.
backop
)
c
:
RegisterEffect
(
e9
)
--
if
not
cm
.
check_for_self
then
cm
.
check_for_self
=
true
cm
.
table_self_0
=
{}
cm
.
table_self_1
=
{}
for
i
=
33400300
,
33400328
do
table.insert
(
cm
.
table_self_0
,
i
)
table.insert
(
cm
.
table_self_1
,
i
)
end
end
end
function
cm
.
condition
(
e
,
tp
)
return
#
cm
[
"table_self_"
..
tp
]
>
0
end
function
cm
.
cfilter
(
c
)
return
c
:
IsSetCard
(
0x3342
)
and
c
:
IsAbleToGraveAsCost
()
end
function
cm
.
cpop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
getmetatable
(
e
:
GetHandler
()).
announce_filter
=
{
0x5341
,
OPCODE_ISSETCARD
,
TYPE_SPELL
+
TYPE_TRAP
,
OPCODE_ISTYPE
,
OPCODE_NOT
,
OPCODE_AND
}
local
ac
=
Duel
.
AnnounceCard
(
tp
,
table.unpack
(
getmetatable
(
e
:
GetHandler
()).
announce_filter
))
Debug
.
Message
(
#
cm
[
"table_self_"
..
tp
])
local
rt
=
{
cm
[
"table_self_"
..
tp
][
1
],
OPCODE_ISCODE
}
for
i
=
2
,
#
cm
[
"table_self_"
..
tp
]
do
table.insert
(
rt
,
cm
[
"table_self_"
..
tp
][
i
])
table.insert
(
rt
,
OPCODE_ISCODE
)
table.insert
(
rt
,
OPCODE_OR
)
end
local
ac
=
Duel
.
AnnounceCard
(
tp
,
table.unpack
(
rt
))
local
temp
=
{}
for
i
=
1
,
#
cm
[
"table_self_"
..
tp
]
do
if
cm
[
"table_self_"
..
tp
][
i
]
~=
ac
then
table.insert
(
temp
,
cm
[
"table_self_"
..
tp
][
i
])
end
end
cm
[
"table_self_"
..
tp
]
=
temp
--effect gain
local
key
=
1
local
tg
=
Duel
.
GetMatchingGroup
(
Card
.
IsOriginalCodeRule
,
tp
,
LOCATION_ONFIELD
+
LOCATION_EXTRA
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
nil
,
33400329
)
...
...
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