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
6c651f67
Commit
6c651f67
authored
Oct 29, 2023
by
REIKAI
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
078451ce
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
11 deletions
+15
-11
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c16104409.lua
expansions/script/c16104409.lua
+2
-2
expansions/script/c16104427.lua
expansions/script/c16104427.lua
+7
-0
expansions/script/c16172004.lua
expansions/script/c16172004.lua
+1
-0
expansions/script/c16172026.lua
expansions/script/c16172026.lua
+1
-1
expansions/script/c16400099.lua
expansions/script/c16400099.lua
+4
-8
No files found.
expansions/222DIY.cdb
View file @
6c651f67
No preview for this file type
expansions/script/c16104409.lua
View file @
6c651f67
...
...
@@ -39,12 +39,12 @@ function cm.setfilter2(c,code)
and
not
c
:
IsCode
(
code
)
end
function
cm
.
togtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
cm
.
setfilter1
(
chkc
,
tp
)
end
if
chkc
then
return
chkc
:
IsOnField
()
and
c
hkc
:
IsControler
(
tp
)
and
c
m
.
setfilter1
(
chkc
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
setfilter1
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
cm
.
setfilter1
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOEXTRA
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SUMMON
,
c
,
1
,
tp
,
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
function
cm
.
togop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c16104427.lua
View file @
6c651f67
...
...
@@ -161,6 +161,13 @@ function cm.spcon(e,c)
return
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e0
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_OATH
)
e0
:
SetReset
(
RESET_EVENT
+
0x7e0000
)
e0
:
SetOperation
(
function
()
c
:
SetStatus
(
STATUS_PROC_COMPLETE
,
false
)
end
)
c
:
RegisterEffect
(
e0
)
e
:
GetLabelObject
():
Reset
()
end
function
cm
.
cfilter
(
c
)
...
...
expansions/script/c16172004.lua
View file @
6c651f67
...
...
@@ -4,6 +4,7 @@ local m,cm=rk.set(16172004)
cm
.
code
=
16172004
cm
.
side_code
=
16172005
function
cm
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
16172004
)
--Szone Activate
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
...
...
expansions/script/c16172026.lua
View file @
6c651f67
...
...
@@ -31,7 +31,7 @@ function cm.cfilter(c,tp)
return
c
:
IsSetCard
(
0xcc7
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
(
c
:
IsFaceup
()
or
c
:
IsControler
(
tp
))
and
(
c
:
IsReleasable
()
or
(
c
:
IsLocation
(
LOCATION_HAND
)
and
flag
))
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
0
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
()
,
tp
)
end
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
cfilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
0
,
1
,
1
,
e
:
GetHandler
(),
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
end
...
...
expansions/script/c16400099.lua
View file @
6c651f67
...
...
@@ -3,8 +3,7 @@ function c16400099.initial_effect(c)
--copy
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
16400099
,
1
))
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_SZONE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCountLimit
(
1
,
16400099
)
e1
:
SetCost
(
c16400099
.
cpcost
)
e1
:
SetTarget
(
c16400099
.
cptg
)
...
...
@@ -14,7 +13,6 @@ function c16400099.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_DRAW
+
CATEGORY_REMOVE
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetCountLimit
(
1
,
16400199
)
...
...
@@ -32,8 +30,7 @@ function c16400099.cpfilter(c,exc,e,tp,eg,ep,ev,re,r,rp)
end
function
c16400099
.
cpcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsAbleToRemoveAsCost
()
and
Duel
.
IsExistingMatchingCard
(
c16400099
.
cpfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
c
,
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c16400099
.
cpfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
c
,
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c16400099
.
cpfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
c
,
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
te
=
g
:
GetFirst
():
CheckActivateEffect
(
true
,
true
,
false
)
...
...
@@ -79,9 +76,8 @@ function c16400099.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
ct
)
end
function
c16400099
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
if
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
==
ct
then
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_ONFIELD
,
0
)
if
Duel
.
Draw
(
p
,
ct
,
REASON_EFFECT
)
==
ct
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_AVOID_BATTLE_DAMAGE
)
...
...
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