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
Ai
ygopro-222DIY-cards
Commits
95c90951
Commit
95c90951
authored
Mar 30, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
得得得得得
parent
7a74786e
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
33 additions
and
44 deletions
+33
-44
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c12006018.lua
expansions/script/c12006018.lua
+2
-3
expansions/script/c12025010.lua
expansions/script/c12025010.lua
+21
-23
expansions/script/c12025011.lua
expansions/script/c12025011.lua
+1
-3
expansions/script/c12085022.lua
expansions/script/c12085022.lua
+1
-1
expansions/script/c12300007.lua
expansions/script/c12300007.lua
+0
-1
expansions/script/c12300101.lua
expansions/script/c12300101.lua
+0
-1
expansions/script/c28316023.lua
expansions/script/c28316023.lua
+0
-1
expansions/script/c35100119.lua
expansions/script/c35100119.lua
+0
-1
expansions/script/c81053006.lua
expansions/script/c81053006.lua
+0
-1
expansions/script/c86590008.lua
expansions/script/c86590008.lua
+8
-9
No files found.
expansions/222DIY.cdb
View file @
95c90951
No preview for this file type
expansions/script/c12006018.lua
View file @
95c90951
...
...
@@ -10,8 +10,6 @@ function cm.initial_effect(c)
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetCode
(
EFFECT_SPSUMMON_COST
)
e0
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e0
:
SetTargetRange
(
1
,
0
)
e0
:
SetCost
(
cm
.
spcost
)
c
:
RegisterEffect
(
e0
)
--atkup
...
...
@@ -34,7 +32,8 @@ function cm.initial_effect(c)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
end
function
cm
.
spcost
(
e
,
c
,
tp
)
function
cm
.
spcost
(
e
,
c
,
tp
,
st
)
if
bit
.
band
(
st
,
SUMMON_TYPE_LINK
)
~=
SUMMON_TYPE_LINK
then
return
true
end
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsSetCard
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
0xfbd8
)
end
function
cm
.
matfilter
(
c
)
...
...
expansions/script/c12025010.lua
View file @
95c90951
...
...
@@ -9,18 +9,8 @@ function cm.initial_effect(c)
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetCode
(
EFFECT_SPSUMMON_COST
)
e0
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e0
:
SetTargetRange
(
1
,
0
)
e0
:
SetOperation
(
cm
.
costop
)
c
:
RegisterEffect
(
e0
)
if
not
cm
.
global_check
then
cm
.
global_check
=
true
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_DISCARD
)
ge1
:
SetOperation
(
cm
.
checkop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
--Recover
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
...
...
@@ -32,16 +22,16 @@ function cm.initial_effect(c)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
--search
local
e
1
=
Effect
.
CreateEffect
(
c
)
e
1
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e
1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e
1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e
1
:
SetCountLimit
(
1
,
m
)
e
1
:
SetRange
(
LOCATION_MZONE
)
e
1
:
SetCondition
(
cm
.
thcon
)
e
1
:
SetTarget
(
cm
.
thtg
)
e
1
:
SetOperation
(
cm
.
thop
)
c
:
RegisterEffect
(
e
1
)
local
e
2
=
Effect
.
CreateEffect
(
c
)
e
2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e
2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e
2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e
2
:
SetCountLimit
(
1
,
m
)
e
2
:
SetRange
(
LOCATION_MZONE
)
e
2
:
SetCondition
(
cm
.
thcon
)
e
2
:
SetTarget
(
cm
.
thtg
)
e
2
:
SetOperation
(
cm
.
thop
)
c
:
RegisterEffect
(
e
2
)
--discard deck
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
...
...
@@ -54,6 +44,14 @@ function cm.initial_effect(c)
e3
:
SetTarget
(
cm
.
target2
)
e3
:
SetOperation
(
cm
.
operation2
)
c
:
RegisterEffect
(
e3
)
if
not
cm
.
global_check
then
cm
.
global_check
=
true
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_DISCARD
)
ge1
:
SetOperation
(
cm
.
checkop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
function
cm
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
eg
then
return
end
...
...
@@ -62,10 +60,10 @@ function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
GetPreviousControler
()
==
tp
then
Duel
.
RegisterFlagEffect
(
tp
,
m
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
tc
=
eg
:
GetNext
()
tc
=
eg
:
GetNext
()
end
end
function
cm
.
spcost
(
e
,
c
,
tp
)
function
cm
.
spcost
(
e
,
c
,
tp
,
st
)
if
bit
.
band
(
st
,
SUMMON_TYPE_LINK
)
~=
SUMMON_TYPE_LINK
then
return
true
end
return
Duel
.
GetFlagEffect
(
tp
,
m
)
>
0
end
...
...
@@ -91,7 +89,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp,chk)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
)
e1
:
SetValue
(
ct
*
500
)
c
:
RegisterEffect
(
e1
)
end
...
...
expansions/script/c12025011.lua
View file @
95c90951
...
...
@@ -9,8 +9,6 @@ function cm.initial_effect(c)
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetCode
(
EFFECT_SPSUMMON_COST
)
e0
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e0
:
SetTargetRange
(
1
,
0
)
e0
:
SetOperation
(
cm
.
costop
)
c
:
RegisterEffect
(
e0
)
if
not
cm
.
global_check
then
...
...
@@ -68,7 +66,7 @@ function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
tc
=
eg
:
GetNext
()
end
end
function
cm
.
spcost
(
e
,
c
,
tp
)
function
cm
.
spcost
(
e
,
c
,
tp
,
st
)
if
bit
.
band
(
st
,
SUMMON_TYPE_LINK
)
~=
SUMMON_TYPE_LINK
then
return
true
end
return
Duel
.
GetFlagEffect
(
tp
,
m
)
>
0
end
...
...
expansions/script/c12085022.lua
View file @
95c90951
...
...
@@ -51,7 +51,7 @@ function cm.olop(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetHandler
():
GetBattleTarget
()
return
tc
and
tc
:
IsFaceup
()
and
tc
:
Get
Defense
()
>
0
return
tc
and
tc
:
IsFaceup
()
and
tc
:
Get
Attack
()
>
0
end
function
cm
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c12300007.lua
View file @
95c90951
...
...
@@ -7,7 +7,6 @@ function c12300007.initial_effect(c)
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetCode
(
EFFECT_SPSUMMON_COST
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e0
:
SetCost
(
c12300007
.
spcost
)
c
:
RegisterEffect
(
e0
)
--destroy replace
...
...
expansions/script/c12300101.lua
View file @
95c90951
...
...
@@ -7,7 +7,6 @@ function c12300101.initial_effect(c)
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetCode
(
EFFECT_SPSUMMON_COST
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e0
:
SetCost
(
c12300101
.
spcost
)
c
:
RegisterEffect
(
e0
)
--direct attack
...
...
expansions/script/c28316023.lua
View file @
95c90951
...
...
@@ -45,7 +45,6 @@ function cm.initial_effect(c)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
)
e5
:
SetCode
(
EFFECT_SPSUMMON_COST
)
e5
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e5
:
SetCost
(
cm
.
spcost
)
c
:
RegisterEffect
(
e5
)
end
...
...
expansions/script/c35100119.lua
View file @
95c90951
...
...
@@ -9,7 +9,6 @@ function cm.initial_effect(c)
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetCode
(
EFFECT_SPSUMMON_COST
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e0
:
SetCost
(
cm
.
spcost
)
c
:
RegisterEffect
(
e0
)
--atk gain
...
...
expansions/script/c81053006.lua
View file @
95c90951
...
...
@@ -9,7 +9,6 @@ function cm.initial_effect(c)
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetCode
(
EFFECT_SPSUMMON_COST
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e0
:
SetCost
(
cm
.
ssscost
)
c
:
RegisterEffect
(
e0
)
--search
...
...
expansions/script/c86590008.lua
View file @
95c90951
...
...
@@ -15,7 +15,6 @@ function cm.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_COST
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCost
(
cm
.
spcost
)
c
:
RegisterEffect
(
e1
)
--extra material
...
...
@@ -46,14 +45,14 @@ function cm.initial_effect(c)
e4
:
SetTargetRange
(
1
,
1
)
e4
:
SetTarget
(
cm
.
limittg
)
c
:
RegisterEffect
(
e4
)
local
e
t
=
Effect
.
CreateEffect
(
c
)
e
t
:
SetType
(
EFFECT_TYPE_FIELD
)
e
t
:
SetCode
(
EFFECT_LEFT_SPSUMMON_COUNT
)
e
t
:
SetRange
(
LOCATION_MZONE
)
e
t
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e
t
:
SetTargetRange
(
1
,
1
)
e
t
:
SetValue
(
cm
.
countval
)
c
:
RegisterEffect
(
e
t
)
local
e
8
=
Effect
.
CreateEffect
(
c
)
e
8
:
SetType
(
EFFECT_TYPE_FIELD
)
e
8
:
SetCode
(
EFFECT_LEFT_SPSUMMON_COUNT
)
e
8
:
SetRange
(
LOCATION_MZONE
)
e
8
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e
8
:
SetTargetRange
(
1
,
1
)
e
8
:
SetValue
(
cm
.
countval
)
c
:
RegisterEffect
(
e
8
)
--Effect 3
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
...
...
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