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
0da07b20
Commit
0da07b20
authored
Nov 30, 2019
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua fix
parent
76386620
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
25 additions
and
25 deletions
+25
-25
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c17030012.lua
expansions/script/c17030012.lua
+1
-1
expansions/script/c17030031.lua
expansions/script/c17030031.lua
+1
-1
expansions/script/c17030034.lua
expansions/script/c17030034.lua
+1
-1
expansions/script/c17030035.lua
expansions/script/c17030035.lua
+1
-1
expansions/script/c17030036.lua
expansions/script/c17030036.lua
+1
-1
expansions/script/c17030037.lua
expansions/script/c17030037.lua
+2
-2
expansions/script/c17030038.lua
expansions/script/c17030038.lua
+1
-1
expansions/script/c17030039.lua
expansions/script/c17030039.lua
+1
-1
expansions/script/c17030040.lua
expansions/script/c17030040.lua
+1
-1
expansions/script/c17030041.lua
expansions/script/c17030041.lua
+2
-2
expansions/script/c17030044.lua
expansions/script/c17030044.lua
+2
-2
expansions/script/c17030045.lua
expansions/script/c17030045.lua
+2
-2
expansions/script/c17030046.lua
expansions/script/c17030046.lua
+1
-1
expansions/script/c17030047.lua
expansions/script/c17030047.lua
+1
-1
expansions/script/c17030048.lua
expansions/script/c17030048.lua
+1
-1
expansions/script/c17030049.lua
expansions/script/c17030049.lua
+1
-1
expansions/script/c17030053.lua
expansions/script/c17030053.lua
+2
-2
expansions/script/c17030054.lua
expansions/script/c17030054.lua
+2
-2
expansions/script/c17030056.lua
expansions/script/c17030056.lua
+1
-1
No files found.
expansions/222DIY.cdb
View file @
0da07b20
No preview for this file type
expansions/script/c17030012.lua
View file @
0da07b20
...
...
@@ -83,7 +83,7 @@ function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetTurnPlayer
()
==
tp
end
function
cm
.
filter
(
c
)
return
c
:
IsSetCard
(
0x
87f2
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x
37f4
)
and
c
:
IsAbleToHand
()
end
function
cm
.
thtg
(
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
...
...
expansions/script/c17030031.lua
View file @
0da07b20
...
...
@@ -26,7 +26,7 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
cm
.
spfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
87f2
)
and
c
:
IsAbleToDeckAsCost
()
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
37f4
)
and
c
:
IsAbleToDeckAsCost
()
end
function
cm
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
...
...
expansions/script/c17030034.lua
View file @
0da07b20
...
...
@@ -55,7 +55,7 @@ function cm.rmop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
damon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
and
re
:
GetHandler
():
IsSetCard
(
0x
f7f2
)
return
re
and
re
:
GetHandler
():
IsSetCard
(
0x
77f4
)
end
function
cm
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_CARD
,
0
,
17030034
)
...
...
expansions/script/c17030035.lua
View file @
0da07b20
...
...
@@ -13,7 +13,7 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
cm
.
filter
(
c
)
return
c
:
IsSetCard
(
0x
f7f2
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x
77f4
)
and
c
:
IsAbleToHand
()
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
...
...
expansions/script/c17030036.lua
View file @
0da07b20
...
...
@@ -13,7 +13,7 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
cm
.
cfilter
(
c
,
tp
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x
f7f2
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x
77f4
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
c
,
c
:
GetCode
())
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
expansions/script/c17030037.lua
View file @
0da07b20
...
...
@@ -24,7 +24,7 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
cm
.
filter
(
c
)
return
c
:
IsSetCard
(
0x
f7f2
)
and
c
:
IsAbleToDeck
()
and
not
c
:
IsPublic
()
return
c
:
IsSetCard
(
0x
77f4
)
and
c
:
IsAbleToDeck
()
and
not
c
:
IsPublic
()
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
)
...
...
@@ -45,7 +45,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x
f7f2
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x
77f4
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
expansions/script/c17030038.lua
View file @
0da07b20
...
...
@@ -19,7 +19,7 @@ function cm.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
400
)
end
function
cm
.
rccfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
f7f2
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
77f4
)
end
function
cm
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
...
...
expansions/script/c17030039.lua
View file @
0da07b20
...
...
@@ -34,7 +34,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
function
cm
.
indtg
(
e
,
c
)
return
c
:
IsSetCard
(
0x
f7f2
)
return
c
:
IsSetCard
(
0x
77f4
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
~=
tp
and
(
Duel
.
IsAbleToEnterBP
()
or
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
))
...
...
expansions/script/c17030040.lua
View file @
0da07b20
...
...
@@ -19,7 +19,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
end
function
cm
.
rccfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
f7f2
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
77f4
)
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
...
...
expansions/script/c17030041.lua
View file @
0da07b20
...
...
@@ -26,7 +26,7 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
cm
.
filter
(
c
)
return
c
:
IsSetCard
(
0x
f7f2
)
and
c
:
IsType
(
TYPE_SPELL
)
and
c
:
CheckActivateEffect
(
true
,
true
,
false
)
~=
nil
return
c
:
IsSetCard
(
0x
77f4
)
and
c
:
IsType
(
TYPE_SPELL
)
and
c
:
CheckActivateEffect
(
true
,
true
,
false
)
~=
nil
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
...
...
@@ -63,7 +63,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
negfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
f7f2
)
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_ONFIELD
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
77f4
)
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_ONFIELD
)
end
function
cm
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
rp
==
tp
then
return
false
end
...
...
expansions/script/c17030044.lua
View file @
0da07b20
...
...
@@ -31,7 +31,7 @@ function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
end
function
cm
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x
f7f2
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x
77f4
)
and
c
:
IsAbleToHand
()
end
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
cm
.
thfilter
(
chkc
)
end
...
...
@@ -50,7 +50,7 @@ function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetTurnPlayer
()
==
tp
end
function
cm
.
filter
(
c
)
return
c
:
IsSetCard
(
0x
f7f2
)
and
c
:
IsType
(
TYPE_SPELL
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x
77f4
)
and
c
:
IsType
(
TYPE_SPELL
)
and
c
:
IsAbleToHand
()
end
function
cm
.
thtg1
(
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
...
...
expansions/script/c17030045.lua
View file @
0da07b20
...
...
@@ -18,10 +18,10 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
cm
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
and
re
:
GetHandler
():
IsSetCard
(
0x
f7f2
)
return
re
and
re
:
GetHandler
():
IsSetCard
(
0x
77f4
)
end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x
f7f2
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x
77f4
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
expansions/script/c17030046.lua
View file @
0da07b20
...
...
@@ -30,7 +30,7 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_LINK
)
end
function
cm
.
lcheck
(
g
,
lc
)
return
g
:
IsExists
(
Card
.
IsLinkSetCard
,
1
,
nil
,
0x
f7f2
)
return
g
:
IsExists
(
Card
.
IsLinkSetCard
,
1
,
nil
,
0x
77f4
)
end
function
cm
.
linkcon
(
e
)
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c17030047.lua
View file @
0da07b20
...
...
@@ -20,7 +20,7 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
cm
.
spfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsSetCard
(
0x
f7f2
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsSetCard
(
0x
77f4
)
end
function
cm
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
cm
.
spfilter
,
1
,
nil
,
tp
)
...
...
expansions/script/c17030048.lua
View file @
0da07b20
...
...
@@ -36,7 +36,7 @@ function cm.spcon(e,c)
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
function
cm
.
thfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsSetCard
(
0x
f7f2
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsSetCard
(
0x
77f4
)
end
function
cm
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
cm
.
thfilter
,
1
,
nil
,
tp
)
...
...
expansions/script/c17030049.lua
View file @
0da07b20
...
...
@@ -12,5 +12,5 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
cm
.
val
(
e
,
c
)
return
Duel
.
GetMatchingGroupCount
(
Card
.
IsSetCard
,
c
:
GetControler
(),
LOCATION_GRAVE
,
0
,
nil
,
0x
f7f2
)
*
500
return
Duel
.
GetMatchingGroupCount
(
Card
.
IsSetCard
,
c
:
GetControler
(),
LOCATION_GRAVE
,
0
,
nil
,
0x
77f4
)
*
500
end
\ No newline at end of file
expansions/script/c17030053.lua
View file @
0da07b20
...
...
@@ -4,7 +4,7 @@ local cm=_G["c"..m]
function
cm
.
initial_effect
(
c
)
--fusion material
c
:
EnableReviveLimit
()
aux
.
AddFusionProcFunRep
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsFusionSetCard
,
0x
f7f2
),
2
,
true
)
aux
.
AddFusionProcFunRep
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsFusionSetCard
,
0x
77f4
),
2
,
true
)
--inactivatable
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
@@ -32,7 +32,7 @@ end
function
cm
.
effectfilter
(
e
,
ct
)
local
p
=
e
:
GetHandler
():
GetControler
()
local
te
,
tp
,
loc
=
Duel
.
GetChainInfo
(
ct
,
CHAININFO_TRIGGERING_EFFECT
,
CHAININFO_TRIGGERING_PLAYER
,
CHAININFO_TRIGGERING_LOCATION
)
return
p
==
tp
and
te
:
GetHandler
():
IsSetCard
(
0x
f7f2
)
and
bit
.
band
(
loc
,
LOCATION_ONFIELD
)
~=
0
return
p
==
tp
and
te
:
GetHandler
():
IsSetCard
(
0x
77f4
)
and
bit
.
band
(
loc
,
LOCATION_ONFIELD
)
~=
0
end
function
cm
.
thfilter
(
c
)
return
c
:
IsCode
(
17030035
)
and
c
:
IsAbleToHand
()
...
...
expansions/script/c17030054.lua
View file @
0da07b20
...
...
@@ -27,7 +27,7 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
cm
.
tgfilter
(
c
)
return
c
:
IsSetCard
(
0x
f7f2
)
and
c
:
IsAbleToGrave
()
return
c
:
IsSetCard
(
0x
77f4
)
and
c
:
IsAbleToGrave
()
end
function
cm
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
@@ -41,7 +41,7 @@ function cm.tgop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x
f7f2
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x
77f4
)
and
c
:
IsAbleToHand
()
end
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
...
...
expansions/script/c17030056.lua
View file @
0da07b20
...
...
@@ -13,7 +13,7 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
cm
.
cfilter
(
c
)
return
c
:
IsSetCard
(
0x
f7f2
)
return
c
:
IsSetCard
(
0x
77f4
)
end
function
cm
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
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