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
07f05e84
Commit
07f05e84
authored
Mar 01, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ybb
parent
8a43c03b
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
23 additions
and
34 deletions
+23
-34
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c14800734.lua
expansions/script/c14800734.lua
+2
-2
expansions/script/c16104412.lua
expansions/script/c16104412.lua
+1
-3
expansions/script/c18019006.lua
expansions/script/c18019006.lua
+1
-1
expansions/script/c30005016.lua
expansions/script/c30005016.lua
+12
-24
expansions/script/c35700107.lua
expansions/script/c35700107.lua
+3
-0
expansions/script/c35700115.lua
expansions/script/c35700115.lua
+2
-2
expansions/script/c35700123.lua
expansions/script/c35700123.lua
+1
-1
expansions/script/c9330010.lua
expansions/script/c9330010.lua
+1
-1
No files found.
expansions/222DIY.cdb
View file @
07f05e84
No preview for this file type
expansions/script/c14800734.lua
View file @
07f05e84
...
...
@@ -33,7 +33,7 @@ end
function
cm
.
target
(
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
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
if
Duel
.
GetMatchingGroupCount
(
cm
.
checkfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
then
if
Duel
.
GetMatchingGroupCount
(
cm
.
checkfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
>
0
then
e
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
+
CATEGORY_DRAW
)
end
end
...
...
@@ -44,7 +44,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
if
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
Duel
.
GetMatchingGroupCount
(
cm
.
checkfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
and
Duel
.
GetMatchingGroupCount
(
cm
.
checkfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
ShuffleDeck
(
tp
)
...
...
expansions/script/c16104412.lua
View file @
07f05e84
...
...
@@ -145,9 +145,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
end
--Effect 3
function
cm
.
chainop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
ep
==
1
-
tp
then
Duel
.
SetChainLimit
(
aux
.
FALSE
)
end
Duel
.
SetChainLimit
(
function
(
e
,
ep
,
tp
)
return
ep
~=
e
:
GetHandlerPlayer
()
end
)
end
--Effect 4
function
cm
.
namecon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c18019006.lua
View file @
07f05e84
...
...
@@ -54,7 +54,7 @@ function cm.conf2(c,tp)
return
bit
.
band
(
c
:
GetType
(),
0x82
)
==
0x82
and
c
:
IsControler
(
tp
)
end
function
cm
.
con2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
cm
.
conf2
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
cm
.
conf2
,
1
,
nil
,
tp
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
end
function
cm
.
tgf2
(
c
)
return
bit
.
band
(
c
:
GetType
(),
0x82
)
==
0x82
and
c
:
IsAbleToHand
()
...
...
expansions/script/c30005016.lua
View file @
07f05e84
...
...
@@ -24,10 +24,13 @@ c:EnableReviveLimit()
c
:
RegisterEffect
(
e1
)
--activate
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetCode
(
EVENT_TO_GRAVE
)
e3
:
SetOperation
(
cm
.
regop
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e3
:
SetRange
(
LOCATION_GRAVE
)
e3
:
SetCost
(
cm
.
thcost
)
e3
:
SetTarget
(
cm
.
acttg
)
e3
:
SetOperation
(
cm
.
actop
)
c
:
RegisterEffect
(
e3
)
end
function
cm
.
matfilter
(
c
)
...
...
@@ -44,7 +47,7 @@ end
function
cm
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
cm
.
repfilter
,
1
,
nil
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
desfilter
,
tp
,
LOCATION_GRAVE
,
0
,
3
,
nil
,
e
,
tp
)
end
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
0
))
then
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
1
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
desfilter
,
tp
,
LOCATION_GRAVE
,
0
,
3
,
3
,
nil
,
e
,
tp
)
g
:
KeepAlive
()
...
...
@@ -58,27 +61,12 @@ function cm.desrepval(e,c)
end
function
cm
.
desrepop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
=
e
:
GetLabelObject
()
Duel
.
SendtoDeck
(
tg
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
end
function
cm
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetRange
(
LOCATION_GRAVE
)
--e1:SetCountLimit(1,m)
e1
:
SetCost
(
cm
.
thcost
)
e1
:
SetTarget
(
cm
.
acttg
)
e1
:
SetOperation
(
cm
.
actop
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
end
Duel
.
SendtoDeck
(
tg
,
nil
,
2
,
REASON_EFFECT
+
REASON_REPLACE
)
end
function
cm
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToExtraAsCost
()
end
Duel
.
SendtoDeck
(
e
:
GetHandler
(),
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFEC
T
)
Duel
.
SendtoDeck
(
e
:
GetHandler
(),
nil
,
2
,
REASON_COS
T
)
end
function
cm
.
actfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
...
...
@@ -94,4 +82,4 @@ function cm.actop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
end
\ No newline at end of file
expansions/script/c35700107.lua
View file @
07f05e84
...
...
@@ -29,6 +29,9 @@ function cm.initial_effect(c)
e3
:
SetCondition
(
cm
.
indcon
)
e3
:
SetValue
(
aux
.
ChangeBattleDamage
(
1
,
HALF_DAMAGE
))
c
:
RegisterEffect
(
e3
)
local
e4
=
e3
:
Clone
()
e4
:
SetValue
(
aux
.
ChangeBattleDamage
(
0
,
HALF_DAMAGE
))
c
:
RegisterEffect
(
e4
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
...
...
expansions/script/c35700115.lua
View file @
07f05e84
...
...
@@ -26,7 +26,7 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
cm
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xb71
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToGraveAsCost
()
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
3
b71
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToGraveAsCost
()
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
...
...
@@ -57,7 +57,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
filter1
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xb71
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
3
b71
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeckAsCost
()
end
function
cm
.
cost1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter1
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
...
...
expansions/script/c35700123.lua
View file @
07f05e84
...
...
@@ -12,7 +12,7 @@ function cm.initial_effect(c)
e0
:
SetType
(
EFFECT_TYPE_FIELD
)
e0
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e0
:
SetRange
(
LOCATION_EXTRA
)
e
2
:
SetCountLimit
(
1
,
m
+
EFFECT_COUNT_CODE_DUEL
)
e
0
:
SetCountLimit
(
1
,
m
+
EFFECT_COUNT_CODE_DUEL
)
e0
:
SetCondition
(
function
(
e
,
c
,
og
,
min
,
max
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
...
...
expansions/script/c9330010.lua
View file @
07f05e84
...
...
@@ -6,7 +6,7 @@ function c9330010.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
93300
09
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCountLimit
(
1
,
93300
10
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e1
:
SetTarget
(
c9330010
.
target
)
e1
:
SetOperation
(
c9330010
.
activate
)
...
...
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