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
33d30cbe
Commit
33d30cbe
authored
Oct 30, 2023
by
Huangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
fb758c5b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
35 deletions
+14
-35
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c77765002.lua
expansions/script/c77765002.lua
+5
-12
expansions/script/c77765004.lua
expansions/script/c77765004.lua
+3
-10
expansions/script/c77765007.lua
expansions/script/c77765007.lua
+2
-9
expansions/script/c77765030.lua
expansions/script/c77765030.lua
+3
-3
expansions/script/c77765040.lua
expansions/script/c77765040.lua
+1
-1
No files found.
expansions/222DIY.cdb
View file @
33d30cbe
No preview for this file type
expansions/script/c77765002.lua
View file @
33d30cbe
...
...
@@ -14,18 +14,18 @@ function c77765002.initial_effect(c)
--
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetCategory
(
CATEGORY_TOGRAVE
)
e1
:
SetCategory
(
CATEGORY_TOGRAVE
)
e1
:
SetRange
(
LOCATION_FZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetTarget
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_SZONE
,
tp
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c77765002
.
filter1
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
nil
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
LOCATION_DECK
+
LOCATION_HAND
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
LOCATION_DECK
+
LOCATION_HAND
,
tp
)
end
)
e1
:
SetOperation
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_SZONE
,
tp
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c77765002
.
filter1
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
tp
)
if
#
g
==
0
then
return
end
if
#
g
==
0
then
return
end
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
local
sc
=
g
:
GetFirst
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
...
...
@@ -53,15 +53,8 @@ function c77765002.initial_effect(c)
c
:
RegisterEffect
(
e2
)
local
function
KaguyaFilter
(
c
,
e
,
tp
,
cc
)
local
p
=
c
:
GetControler
()
local
code
=
c
.
dfc_front_side
Duel
.
DisableActionCheck
(
true
)
local
tc
=
Duel
.
CreateToken
(
tp
,
code
)
Duel
.
DisableActionCheck
(
false
)
if
tc
then
return
c
:
IsFaceup
()
and
c
:
IsCode
(
77765001
)
and
Duel
.
GetLocationCount
(
p
,
LOCATION_SZONE
,
tp
)
>
0
and
tc
:
CheckEquipTarget
(
c
)
else
return
false
end
local
tc
=
Senya
.
GetDFCBackSideCard
(
cc
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
77765001
)
and
Duel
.
GetLocationCount
(
p
,
LOCATION_SZONE
,
tp
)
>
0
and
tc
:
CheckEquipTarget
(
c
)
end
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_TRIGGER_F
+
EFFECT_TYPE_SINGLE
)
...
...
expansions/script/c77765004.lua
View file @
33d30cbe
...
...
@@ -34,7 +34,7 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
--e1:SetCode(EVENT_FREE_CHAIN)
--e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER)
e1
:
SetRange
(
LOCATION_SZONE
)
e1
:
SetRange
(
LOCATION_SZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetTarget
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
...
...
@@ -70,15 +70,8 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e1
)
local
function
KaguyaFilter
(
c
,
e
,
tp
,
cc
)
local
p
=
c
:
GetControler
()
local
code
=
c
.
dfc_front_side
Duel
.
DisableActionCheck
(
true
)
local
tc
=
Duel
.
CreateToken
(
tp
,
code
)
Duel
.
DisableActionCheck
(
false
)
if
tc
then
return
c
:
IsFaceup
()
and
c
:
IsCode
(
77765001
)
and
Duel
.
GetLocationCount
(
p
,
LOCATION_SZONE
,
tp
)
>
0
and
tc
:
CheckEquipTarget
(
c
)
else
return
false
end
local
tc
=
Senya
.
GetDFCBackSideCard
(
cc
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
77765001
)
and
Duel
.
GetLocationCount
(
p
,
LOCATION_SZONE
,
tp
)
>
0
and
tc
:
CheckEquipTarget
(
c
)
end
local
function
DifficultyFilter
(
c
,
e
,
tp
)
return
Kaguya
.
IsDifficulty
(
c
)
and
Senya
.
IsDFCTransformable
(
c
)
and
Duel
.
IsExistingMatchingCard
(
KaguyaFilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
e
,
tp
,
c
)
...
...
expansions/script/c77765007.lua
View file @
33d30cbe
...
...
@@ -8,15 +8,7 @@ function cm.initial_effect(c)
end
local
function
KaguyaFilter
(
c
,
e
,
tp
,
cc
)
local
p
=
c
:
GetControler
()
local
code
=
c
.
dfc_front_side
Duel
.
DisableActionCheck
(
true
)
local
tc
=
Duel
.
CreateToken
(
tp
,
code
)
Duel
.
DisableActionCheck
(
false
)
if
tc
then
return
c
:
IsFaceup
()
and
c
:
IsCode
(
77765001
)
and
Duel
.
GetLocationCount
(
p
,
LOCATION_SZONE
,
tp
)
>
0
and
tc
:
CheckEquipTarget
(
c
)
else
return
false
end
local
tc
=
Senya
.
GetDFCBackSideCard
(
cc
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
77765001
)
and
Duel
.
GetLocationCount
(
p
,
LOCATION_SZONE
,
tp
)
>
0
and
tc
:
CheckEquipTarget
(
c
)
and
(
cc
:
IsControler
(
c
:
GetControler
())
or
c
:
IsAbleToChangeControler
())
end
local
function
DifficultyFilter
(
c
,
e
,
tp
)
...
...
@@ -99,6 +91,7 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCountLimit
(
1
,
m
)
e1
:
SetCondition
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
function
(
c
)
return
Kaguya
.
IsDifficulty
(
c
)
and
c
:
IsFaceup
()
...
...
expansions/script/c77765030.lua
View file @
33d30cbe
...
...
@@ -76,7 +76,7 @@ function cm.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_SSET_COST
)
e3
:
SetCost
(
function
(
e
,
c
,
tp
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToChangeControler
,
tp
,
LOCATION_HAND
,
0
,
1
,
c
)
and
tp
==
e
:
GetLabelObject
():
GetHandlerPlayer
()
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToChangeControler
,
tp
,
LOCATION_HAND
,
0
,
1
,
c
)
and
tp
==
e
:
GetLabelObject
():
GetHandlerPlayer
()
end
)
e3
:
SetOperation
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_CARD
,
0
,
m
)
...
...
@@ -93,11 +93,11 @@ function cm.initial_effect(c)
e3_
:
SetRange
(
LOCATION_SZONE
)
e3_
:
SetProperty
(
EFFECT_TYPE_IGNORE_RANGE
)
e3_
:
SetTargetRange
(
0xff
,
0
)
e3
:
SetLabelObject
(
e3_
)
e3
:
SetLabelObject
(
e3_
)
e3_
:
SetLabelObject
(
e3
)
c
:
RegisterEffect
(
e3_
)
local
e3__
=
e3_
:
Clone
()
e5
:
SetLabelObject
(
e3__
)
e5
:
SetLabelObject
(
e3__
)
e3__
:
SetLabelObject
(
e5
)
c
:
RegisterEffect
(
e3__
)
if
not
cm
.
gchk
then
...
...
expansions/script/c77765040.lua
View file @
33d30cbe
...
...
@@ -20,7 +20,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_REMOVE
)
e1
:
SetCondition
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
function
(
c
)
return
not
c
:
IsReason
(
REASON_DRAW
)
and
c
:
GetReasonPlayer
()
==
tp
and
c
:
IsControler
(
tp
)
return
not
c
:
IsReason
(
REASON_DRAW
)
and
c
:
GetReasonPlayer
()
==
tp
and
c
:
IsControler
(
tp
)
end
,
1
,
nil
)
end
)
e1
:
SetTarget
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
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