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
917e606d
Commit
917e606d
authored
Mar 04, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ybb
parent
48a6d343
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
12 deletions
+20
-12
expansions/script/c16104415.lua
expansions/script/c16104415.lua
+17
-9
expansions/script/c16104419.lua
expansions/script/c16104419.lua
+1
-1
expansions/script/c16104421.lua
expansions/script/c16104421.lua
+2
-2
No files found.
expansions/script/c16104415.lua
View file @
917e606d
...
...
@@ -30,20 +30,28 @@ function cm.filter3(c)
return
c
:
IsSetCard
(
0xccb
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
e
:
GetHandler
())
local
g1
=
Duel
.
GetMatchingGroup
(
cm
.
filter3
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
chk
==
0
then
return
g
:
GetCount
()
>
0
and
g
:
FilterCount
(
cm
.
filter
,
nil
)
==
g
:
GetCount
()
and
g1
:
GetCount
()
>
0
and
g
:
FilterCount
(
cm
.
filter
,
nil
)
<=
g1
:
GetCount
()
end
Duel
.
Release
(
g
,
REASON_COST
)
e
:
SetLabel
(
g
:
GetCount
())
e
:
SetLabel
(
1
)
return
true
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter3
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
e
:
GetLabel
(),
tp
,
LOCATION_DECK
)
local
rg
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
e
:
GetHandler
())
local
cg
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_ONFIELD
,
0
,
e
:
GetHandler
())
local
thg
=
Duel
.
GetMatchingGroup
(
cm
.
filter3
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
chk
==
0
then
if
e
:
GetLabel
()
==
1
then
return
rg
:
GetCount
()
>
0
and
rg
:
GetCount
()
==
cg
:
GetCount
()
and
rg
:
GetCount
()
<=
thg
:
GetCount
()
else
return
false
end
end
Duel
.
Release
(
rg
,
REASON_COST
)
Duel
.
SetTargetParam
(
rg
:
GetCount
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
rg
:
GetCount
(),
tp
,
LOCATION_DECK
)
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
num
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PARAM
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
filter3
,
tp
,
LOCATION_DECK
,
0
,
e
:
GetLabel
(),
e
:
GetLabel
()
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
filter3
,
tp
,
LOCATION_DECK
,
0
,
num
,
num
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
...
...
expansions/script/c16104419.lua
View file @
917e606d
...
...
@@ -47,7 +47,7 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e4
)
end
function
cm
.
fuscheck
(
c
)
return
c
:
IsSummonType
(
SUMMON_TYPE_ADVANCE
)
return
c
:
IsSummonType
(
SUMMON_TYPE_ADVANCE
)
and
c
:
IsSetCard
(
0xccb
)
end
function
cm
.
splimit
(
e
,
c
)
return
not
(
c
:
IsSetCard
(
0xccb
,
0xccd
)
or
c
:
IsRace
(
RACE_FAIRY
))
...
...
expansions/script/c16104421.lua
View file @
917e606d
...
...
@@ -52,13 +52,13 @@ function cm.splimit(e,c)
return
not
(
c
:
IsSetCard
(
0xccb
,
0xccd
)
or
c
:
IsRace
(
RACE_FAIRY
))
end
function
cm
.
xyztarget
(
c
,
tp
)
return
c
:
IsCanOverlay
()
and
Duel
.
GetMZoneCount
(
tp
,
c
)
return
c
:
IsCanOverlay
()
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
end
function
cm
.
ptarget
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
and
Duel
.
IsExistingTarget
(
cm
.
xyztarget
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
g
=
Duel
.
SelectTarget
(
cm
.
xyztarget
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
c
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
xyztarget
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
c
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
tp
,
LOCATION_PZONE
)
end
function
cm
.
poperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
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