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
Nguyễn Anh Kiệt
ygopro-222DIY-cards
Commits
4596497c
Commit
4596497c
authored
Sep 06, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
byd
parent
0849337c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
15 deletions
+14
-15
expansions/FiNALE.cdb
expansions/FiNALE.cdb
+0
-0
expansions/script/c53752002.lua
expansions/script/c53752002.lua
+13
-13
expansions/script/c60150607.lua
expansions/script/c60150607.lua
+0
-1
expansions/script/c96071034.lua
expansions/script/c96071034.lua
+1
-1
No files found.
expansions/FiNALE.cdb
View file @
4596497c
No preview for this file type
expansions/script/c53752002.lua
View file @
4596497c
...
...
@@ -149,12 +149,12 @@ function s.chtg(_tg)
return
_tg
(
e
,
c
,
...
)
end
end
function
s
.
GetSynMaterials
(
tp
,
syncard
)
function
s
.
SMatCatch
(
tp
,
syncard
)
local
g
=
aux
.
GetSynMaterials
(
tp
,
syncard
)
local
mg
=
Duel
.
GetMatchingGroup
(
s
.
IsCanBeSynchroMaterial
,
tp
,
0x10
,
0x1c
,
g
,
syncard
)
local
mg
=
Duel
.
GetMatchingGroup
(
s
.
SMatCheck
,
tp
,
0x10
,
0x1c
,
g
,
syncard
)
return
Group
.
__add
(
g
,
mg
)
end
function
s
.
IsCanBeSynchroMaterial
(
c
,
syncard
)
function
s
.
SMatCheck
(
c
,
syncard
)
if
not
(
c
:
IsCanBeSynchroMaterial
(
syncard
)
or
c
:
IsLevel
(
0
))
then
return
false
end
if
c
:
IsStatus
(
STATUS_FORBIDDEN
)
then
return
false
end
if
c
:
IsHasEffect
(
EFFECT_CANNOT_BE_SYNCHRO_MATERIAL
)
then
return
false
end
...
...
@@ -170,7 +170,7 @@ function s.IsCanBeSynchroMaterial(c,syncard)
else
return
false
end
return
true
end
function
s
.
GetSynchroLeve
l
(
c
,
sc
)
function
s
.
SLevelCa
l
(
c
,
sc
)
local
lv
=
c
:
GetSynchroLevel
(
sc
)
local
tp
=
sc
:
GetControler
()
local
b1
=
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsLevel
(
0
)
and
(
c
:
GetControler
()
~=
tp
or
sc
:
GetOriginalCode
()
==
53752002
)
...
...
@@ -186,7 +186,7 @@ function s.lindfilter(c)
end
function
s
.
lvs
(
c
,
syncard
)
if
not
c
then
return
0
end
local
lv
=
s
.
GetSynchroLeve
l
(
c
,
syncard
)
local
lv
=
s
.
SLevelCa
l
(
c
,
syncard
)
local
lv2
=
lv
>>
16
lv
=
lv
&
0xffff
if
lv2
>
0
then
return
lv
,
lv2
else
return
lv
end
...
...
@@ -260,21 +260,21 @@ function s.SynMixCondition(e,c,smat,mg1,min,max)
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
8173184
)
then
Duel
.
RegisterFlagEffect
(
tp
,
8173184
+
1
,
0
,
0
,
1
)
end
if
smat
and
not
s
.
IsCanBeSynchroMaterial
(
smat
,
c
)
then
if
smat
and
not
s
.
SMatCheck
(
smat
,
c
)
then
Duel
.
ResetFlagEffect
(
tp
,
8173184
+
1
)
return
false
end
local
mg
local
mgchk
=
false
if
mg1
then
mg
=
mg1
:
Filter
(
s
.
IsCanBeSynchroMaterial
,
nil
,
c
)
mg
=
mg1
:
Filter
(
s
.
SMatCheck
,
nil
,
c
)
mgchk
=
true
else
mg
=
s
.
GetSynMaterials
(
tp
,
c
)
mg
=
s
.
SMatCatch
(
tp
,
c
)
end
if
smat
~=
nil
then
mg
:
AddCard
(
smat
)
end
Auxiliary
.
SubGroupCaptured
=
Group
.
CreateGroup
()
SNNM
.
SubGroupParams
=
{
s
.
slfilter
,
s
.
GetSynchroLeve
l
,
nil
,
true
,
true
,{
c
},{
c
}}
SNNM
.
SubGroupParams
=
{
s
.
slfilter
,
s
.
SLevelCa
l
,
nil
,
true
,
true
,{
c
},{
c
}}
aux
.
GCheckAdditional
=
s
.
gcheck
(
c
)
local
res
=
SNNM
.
SelectSubGroup
(
mg
,
tp
,
s
.
syngoal
,
Duel
.
IsSummonCancelable
(),
2
,
#
mg
,
c
,
smat
,
tp
,
mgchk
)
aux
.
GCheckAdditional
=
nil
...
...
@@ -327,13 +327,13 @@ function s.SynMixTarget(e,tp,eg,ep,ev,re,r,rp,chk,c)
local
mg
local
mgchk
=
false
if
mg1
then
mg
=
mg1
:
Filter
(
s
.
IsCanBeSynchroMaterial
,
nil
,
c
)
mg
=
mg1
:
Filter
(
s
.
SMatCheck
,
nil
,
c
)
mgchk
=
true
else
mg
=
s
.
GetSynMaterials
(
tp
,
c
)
mg
=
s
.
SMatCatch
(
tp
,
c
)
end
if
smat
~=
nil
then
mg
:
AddCard
(
smat
)
end
SNNM
.
SubGroupParams
=
{
s
.
slfilter
,
s
.
GetSynchroLeve
l
,
nil
,
true
,
false
,{
c
},{
c
}}
SNNM
.
SubGroupParams
=
{
s
.
slfilter
,
s
.
SLevelCa
l
,
nil
,
true
,
false
,{
c
},{
c
}}
aux
.
GCheckAdditional
=
s
.
gcheck
(
c
)
local
sg
=
SNNM
.
SelectSubGroup
(
mg
,
tp
,
s
.
syngoal
,
Duel
.
IsSummonCancelable
(),
2
,
#
mg
,
c
,
smat
,
tp
,
mgchk
)
aux
.
GCheckAdditional
=
nil
...
...
@@ -421,7 +421,7 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
s
.
filter
(
c
,
tp
)
return
c
:
IsType
(
TYPE_FIELD
)
and
c
:
Is
OriginalCodeRule
(
22702055
)
and
c
:
GetActivateEffect
():
IsActivatable
(
tp
,
true
,
true
)
return
c
:
IsType
(
TYPE_FIELD
)
and
c
:
Is
Code
(
53752003
)
and
c
:
GetActivateEffect
():
IsActivatable
(
tp
,
true
,
true
)
end
function
s
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
tp
)
end
...
...
expansions/script/c60150607.lua
View file @
4596497c
...
...
@@ -20,7 +20,6 @@ function c60150607.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
0x1e0
)
e1
:
SetCountLimit
(
1
,
60150607
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetTarget
(
c60150607
.
target
)
e1
:
SetOperation
(
c60150607
.
activate
)
c
:
RegisterEffect
(
e1
)
...
...
expansions/script/c96071034.lua
View file @
4596497c
...
...
@@ -75,7 +75,7 @@ function cm.activate2(e,tp,eg,ep,ev,re,r,rp)
end
--set
function
cm
.
setcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rp
==
1
-
tp
and
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
aux
.
exccon
(
e
)
return
ep
~=
tp
and
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
aux
.
exccon
(
e
)
end
function
cm
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsSSetable
()
end
...
...
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