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
xiaoye
ygopro-222DIY-cards
Commits
9ebc1aef
You need to sign in or sign up before continuing.
Commit
9ebc1aef
authored
Apr 13, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cctv
parent
e323f75c
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
22 additions
and
10 deletions
+22
-10
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c12029022.lua
expansions/script/c12029022.lua
+1
-1
expansions/script/c16100004.lua
expansions/script/c16100004.lua
+1
-1
expansions/script/c16100010.lua
expansions/script/c16100010.lua
+13
-3
expansions/script/c16100014.lua
expansions/script/c16100014.lua
+1
-0
expansions/script/c16100018.lua
expansions/script/c16100018.lua
+1
-0
expansions/script/c17049001.lua
expansions/script/c17049001.lua
+1
-1
expansions/script/c33500306.lua
expansions/script/c33500306.lua
+1
-1
expansions/script/c53799017.lua
expansions/script/c53799017.lua
+3
-3
No files found.
expansions/222DIY.cdb
View file @
9ebc1aef
No preview for this file type
expansions/script/c12029022.lua
View file @
9ebc1aef
...
...
@@ -46,7 +46,7 @@ end
function
c12029022
.
chcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
loc
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
return
((
re
:
IsActiveType
(
TYPE_MONSTER
)
and
loc
==
LOCATION_MZONE
)
or
((
re
:
GetActiveType
()
==
TYPE_SPELL
or
re
:
GetActiveType
()
==
TYPE_TRAP
)
))
and
Duel
.
IsExistingMatchingCard
(
c12029022
.
filter1
,
rp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
and
not
re
:
GetHandler
():
IsCode
(
12029022
)
or
((
re
:
GetActiveType
()
==
TYPE_SPELL
or
re
:
GetActiveType
()
==
TYPE_TRAP
)
))
and
Duel
.
IsExistingMatchingCard
(
c12029022
.
filter1
,
rp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
--
function
c12029022
.
chop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c16100004.lua
View file @
9ebc1aef
...
...
@@ -76,11 +76,11 @@ function c16100004.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
dc
:
RegisterEffect
(
e1
)
end
end
local
tc1
=
Duel
.
SelectMatchingCard
(
tp
,
c16100004
.
fil2
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
tc1
)
tc1
=
tc1
:
GetFirst
()
Duel
.
Remove
(
tc1
,
POS_FACEDOWN
,
REASON_EFFECT
)
end
end
--
function
c16100004
.
tgfilter
(
c
,
e
,
tp
)
...
...
expansions/script/c16100010.lua
View file @
9ebc1aef
...
...
@@ -37,6 +37,10 @@ function c16100010.filter(c)
return
c
:
IsSetCard
(
0xcc2
)
end
--
function
c16100010
.
filter0
(
c
)
return
c
:
IsSetCard
(
0xccd
)
and
c
:
IsAbleToHand
()
end
--
function
c16100010
.
filter1
(
c
)
return
c
:
IsSetCard
(
0xccd
)
and
c
:
IsControlerCanBeChanged
()
end
...
...
@@ -59,7 +63,7 @@ function c16100010.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
end
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
16100010
,
1
))
then
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c16100010
.
filter
1
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c16100010
.
filter
0
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
...
...
@@ -70,8 +74,14 @@ end
--
function
c16100010
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
HINTMSG_CONTROL
)
local
g
=
Duel
.
SelectMatchingCard
(
1
-
tp
,
c16100010
.
filter
1
,
1
-
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
1
-
tp
,
c16100010
.
filter
2
,
1
-
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
if
not
tc
then
return
end
Duel
.
GetControl
(
tc
,
tp
)
if
Duel
.
GetControl
(
tc
,
tp
)
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
,
true
)
end
end
\ No newline at end of file
expansions/script/c16100014.lua
View file @
9ebc1aef
...
...
@@ -95,6 +95,7 @@ function c16100014.op1(e,tp,eg,ep,ev,re,r,rp)
local
tg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
if
not
tg
or
tg
:
FilterCount
(
Card
.
IsRelateToEffect
,
nil
,
e
)
~=
3
then
return
end
Duel
.
SendtoDeck
(
tg
,
nil
,
0
,
REASON_EFFECT
)
Duel
.
ShuffleDeck
(
tp
)
local
g
=
Duel
.
GetOperatedGroup
()
local
ct0
=
g
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_DECK
+
LOCATION_EXTRA
)
if
ct0
==
3
then
...
...
expansions/script/c16100018.lua
View file @
9ebc1aef
...
...
@@ -14,6 +14,7 @@ function c16100018.initial_effect(c)
e1
:
SetRange
(
LOCATION_SZONE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCost
(
c16100018
.
cost
)
e1
:
SetOperation
(
c16100018
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
expansions/script/c17049001.lua
View file @
9ebc1aef
...
...
@@ -102,7 +102,7 @@ end
function
cm
.
value
(
e
,
c
)
local
tp
=
e
:
GetHandlerPlayer
()
local
att
=
0
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
e
:
GetHandler
())
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
e
:
GetHandler
())
local
tc
=
g
:
GetFirst
()
while
tc
do
att
=
bit
.
bor
(
att
,
tc
:
GetAttribute
())
...
...
expansions/script/c33500306.lua
View file @
9ebc1aef
...
...
@@ -20,7 +20,7 @@ function cm.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetCountLimit
(
1
,
m
)
e2
:
SetCountLimit
(
1
,
m
+
1000
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetCondition
(
cm
.
thcon
)
e2
:
SetTarget
(
cm
.
sptg
)
...
...
expansions/script/c53799017.lua
View file @
9ebc1aef
...
...
@@ -40,13 +40,13 @@ function c53799017.thfilter(c)
return
c
:
IsCode
(
53799005
)
and
c
:
IsAbleToHand
()
end
function
c53799017
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c53799017
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c53799017
.
thfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
PLAYER_ALL
,
4
)
end
function
c53799017
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c53799017
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c53799017
.
thfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
...
...
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