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
6906a6c8
Commit
6906a6c8
authored
Feb 08, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ybb
parent
63e3db29
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
16 deletions
+26
-16
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c23003007.lua
expansions/script/c23003007.lua
+1
-1
expansions/script/c33711408.lua
expansions/script/c33711408.lua
+1
-1
expansions/script/c33720052.lua
expansions/script/c33720052.lua
+1
-1
expansions/script/c35700103.lua
expansions/script/c35700103.lua
+1
-1
expansions/script/c53716014.lua
expansions/script/c53716014.lua
+22
-12
No files found.
expansions/222DIY.cdb
View file @
6906a6c8
No preview for this file type
expansions/script/c23003007.lua
View file @
6906a6c8
...
...
@@ -26,7 +26,7 @@ end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
LOCATION_DECK
)
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c33711408.lua
View file @
6906a6c8
...
...
@@ -97,7 +97,7 @@ function cm.top(e,tp)
local
num
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsAbleToGrave
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
nil
)
if
num
<
1
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
sg1
=
Duel
.
SelectMatchingCard
(
Card
.
IsAbleToHand
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
0
,
num
,
#
sg
,
nil
)
local
sg1
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToHand
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
0
,
num
,
#
sg
,
nil
)
if
sg1
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
sg1
,
REASON_EFFECT
)
end
...
...
expansions/script/c33720052.lua
View file @
6906a6c8
...
...
@@ -39,7 +39,7 @@ function s.initial_effect(c)
end
function
s
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
for
p
=
0
,
1
do
if
eg
:
IsExists
(
Card
.
IsControler
,
1
,
nil
,
p
)
then
if
eg
:
IsExists
(
Card
.
IsControler
,
1
,
nil
,
p
)
and
Duel
.
GetTurnCount
(
p
)
+
Duel
.
GetTurnCount
(
1
-
p
)
>
0
then
Duel
.
RegisterFlagEffect
(
p
,
id
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
...
...
expansions/script/c35700103.lua
View file @
6906a6c8
...
...
@@ -55,7 +55,7 @@ function cm.filter(c)
return
c
:
IsSetCard
(
0xb71
)
and
not
c
:
IsCode
(
m
)
and
c
:
IsAbleToHand
()
end
function
cm
.
thtg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_
DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_
GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
end
function
cm
.
thop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c53716014.lua
View file @
6906a6c8
...
...
@@ -68,8 +68,8 @@ function cm.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
cg
=
rc
:
GetColumnGroup
()
cg
:
AddCard
(
rc
)
if
chkc
then
return
cm
.
filter
(
chkc
,
cg
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
cg
)
and
Duel
.
GetFlagEffect
(
tp
,
m
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
m
,
RESET_CHAIN
,
0
,
1
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
cg
)
and
e
:
GetHandler
():
GetFlagEffect
(
m
)
==
0
end
e
:
GetHandler
():
RegisterFlagEffect
(
m
,
RESET_CHAIN
,
0
,
1
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SELF
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
,
cg
)
Duel
.
SetTargetParam
(
500
)
...
...
@@ -81,15 +81,25 @@ end
function
cm
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PARAM
)
local
tc
=
Duel
.
GetFirstTarget
()
if
Duel
.
Recover
(
tp
,
d
,
REASON_EFFECT
)
~=
0
and
tc
:
IsRelateToEffect
(
e
)
then
local
b1
=
((
tc
:
IsLocation
(
LOCATION_MZONE
)
and
((
bit
.
band
(
tc
:
GetOriginalType
(),
TYPE_SPELL
+
TYPE_TRAP
)
~=
0
and
(
not
tc
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
tc
:
IsCanTurnSet
())
or
(
tc
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
tc
:
IsSSetable
()
and
tc
:
IsCanTurnSet
()))
or
(
bit
.
band
(
tc
:
GetOriginalType
(),
TYPE_SPELL
+
TYPE_TRAP
)
==
0
and
tc
:
IsCanTurnSet
())))
or
(
tc
:
IsLocation
(
LOCATION_SZONE
)
and
tc
:
IsSSetable
(
true
)))
and
not
(
tc
:
IsType
(
TYPE_PENDULUM
)
and
tc
:
IsLocation
(
LOCATION_PZONE
))
local
b2
=
Duel
.
IsExistingMatchingCard
(
cm
.
filter2
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
local
op
=
0
if
b1
and
b2
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
m
,
2
),
aux
.
Stringid
(
m
,
3
))
elseif
b1
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
m
,
2
))
elseif
b2
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
m
,
3
))
+
1
else
return
end
if
op
==
0
then
local
b1
=
((
tc
:
IsLocation
(
LOCATION_MZONE
)
and
((
bit
.
band
(
tc
:
GetOriginalType
(),
TYPE_SPELL
+
TYPE_TRAP
)
~=
0
and
(
not
tc
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
tc
:
IsCanTurnSet
())
or
(
tc
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
tc
:
IsSSetable
()
and
tc
:
IsCanTurnSet
()))
or
(
bit
.
band
(
tc
:
GetOriginalType
(),
TYPE_SPELL
+
TYPE_TRAP
)
==
0
and
tc
:
IsCanTurnSet
())))
or
(
tc
:
IsLocation
(
LOCATION_SZONE
)
and
tc
:
IsSSetable
(
true
)))
and
not
(
tc
:
IsType
(
TYPE_PENDULUM
)
and
tc
:
IsLocation
(
LOCATION_PZONE
))
local
b2
=
tc
:
IsReleasableByEffect
()
and
Duel
.
IsExistingMatchingCard
(
cm
.
filter2
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
if
Duel
.
Recover
(
tp
,
d
,
REASON_EFFECT
)
~=
0
and
(
b1
or
b2
)
and
tc
:
IsRelateToEffect
(
e
)
then
local
off
=
1
local
ops
,
opval
=
{},{}
if
b1
then
ops
[
off
]
=
aux
.
Stringid
(
m
,
2
)
opval
[
off
]
=
0
off
=
off
+
1
end
if
b2
then
ops
[
off
]
=
aux
.
Stringid
(
m
,
3
)
opval
[
off
]
=
1
off
=
off
+
1
end
ops
[
off
]
=
aux
.
Stringid
(
53718007
,
2
)
opval
[
off
]
=
2
local
op
=
Duel
.
SelectOption
(
tp
,
table.unpack
(
ops
))
+
1
if
opval
[
op
]
==
0
then
tc
:
CancelToGrave
()
Duel
.
ChangePosition
(
tc
,
POS_FACEDOWN
)
local
loc
=
0
...
...
@@ -97,7 +107,7 @@ function cm.disop(e,tp,eg,ep,ev,re,r,rp)
elseif
tc
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
then
loc
=
LOCATION_SZONE
end
if
tc
:
GetOriginalType
()
&
TYPE_MONSTER
==
0
and
tc
:
IsLocation
(
LOCATION_MZONE
)
then
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
loc
,
POS_FACEDOWN
,
false
)
end
if
tc
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
then
Duel
.
RaiseEvent
(
tc
,
EVENT_SSET
,
e
,
REASON_EFFECT
,
tp
,
tp
,
0
)
end
else
else
if
opval
[
op
]
==
1
then
if
Duel
.
Release
(
tc
,
REASON_EFFECT
)
~=
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
cm
.
filter2
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
...
...
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