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
2b0b498c
Commit
2b0b498c
authored
Feb 17, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/alstroemeria-silentlove/ygopro-222DIY-cards
parents
b7ce9d62
dea3d2d4
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
1000 additions
and
1003 deletions
+1000
-1003
expansions/script/c1150042.lua
expansions/script/c1150042.lua
+1
-0
expansions/script/c12006001.lua
expansions/script/c12006001.lua
+72
-73
expansions/script/c12006004.lua
expansions/script/c12006004.lua
+95
-96
expansions/script/c12006006.lua
expansions/script/c12006006.lua
+64
-65
expansions/script/c12006008.lua
expansions/script/c12006008.lua
+56
-57
expansions/script/c12006009.lua
expansions/script/c12006009.lua
+107
-108
expansions/script/c12006020.lua
expansions/script/c12006020.lua
+105
-106
expansions/script/c12006021.lua
expansions/script/c12006021.lua
+63
-64
expansions/script/c12006022.lua
expansions/script/c12006022.lua
+82
-83
expansions/script/c12008030.lua
expansions/script/c12008030.lua
+113
-112
expansions/script/c12010026.lua
expansions/script/c12010026.lua
+125
-122
expansions/script/c12011000.lua
expansions/script/c12011000.lua
+117
-117
No files found.
expansions/script/c1150042.lua
View file @
2b0b498c
...
@@ -60,6 +60,7 @@ function c1150042.op2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -60,6 +60,7 @@ function c1150042.op2(e,tp,eg,ep,ev,re,r,rp)
end
end
--
--
function
c1150042
.
op3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c1150042
.
op3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
e3_1
=
Effect
.
CreateEffect
(
c
)
local
e3_1
=
Effect
.
CreateEffect
(
c
)
e3_1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3_1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3_1
:
SetCode
(
EVENT_DAMAGE
)
e3_1
:
SetCode
(
EVENT_DAMAGE
)
...
...
expansions/script/c12006001.lua
View file @
2b0b498c
...
@@ -54,7 +54,6 @@ function c12006001.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -54,7 +54,6 @@ function c12006001.condition(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
(
c
:
IsReason
(
REASON_BATTLE
)
return
(
c
:
IsReason
(
REASON_BATTLE
)
or
rp
==
1
-
tp
and
c
:
IsReason
(
REASON_DESTROY
))
or
rp
==
1
-
tp
and
c
:
IsReason
(
REASON_DESTROY
))
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
end
function
c12006001
.
filter
(
c
,
e
,
tp
)
function
c12006001
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x8fbd
)
and
not
c
:
IsCode
(
12006001
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x8fbd
)
and
not
c
:
IsCode
(
12006001
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
expansions/script/c12006004.lua
View file @
2b0b498c
...
@@ -61,7 +61,6 @@ function c12006004.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -61,7 +61,6 @@ function c12006004.condition(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
(
c
:
IsReason
(
REASON_BATTLE
)
return
(
c
:
IsReason
(
REASON_BATTLE
)
or
rp
==
1
-
tp
and
c
:
IsReason
(
REASON_DESTROY
))
or
rp
==
1
-
tp
and
c
:
IsReason
(
REASON_DESTROY
))
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
end
function
c12006004
.
filter
(
c
,
e
,
tp
)
function
c12006004
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x8fbd
)
and
not
c
:
IsCode
(
12006004
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x8fbd
)
and
not
c
:
IsCode
(
12006004
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
expansions/script/c12006006.lua
View file @
2b0b498c
...
@@ -46,7 +46,6 @@ function c12006006.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -46,7 +46,6 @@ function c12006006.condition(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
(
c
:
IsReason
(
REASON_BATTLE
)
return
(
c
:
IsReason
(
REASON_BATTLE
)
or
rp
==
1
-
tp
and
c
:
IsReason
(
REASON_DESTROY
))
or
rp
==
1
-
tp
and
c
:
IsReason
(
REASON_DESTROY
))
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
end
function
c12006006
.
filter
(
c
,
e
,
tp
)
function
c12006006
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x8fbd
)
and
not
c
:
IsCode
(
12006006
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x8fbd
)
and
not
c
:
IsCode
(
12006006
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
expansions/script/c12006008.lua
View file @
2b0b498c
...
@@ -25,7 +25,6 @@ function c12006008.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -25,7 +25,6 @@ function c12006008.condition(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
(
c
:
IsReason
(
REASON_BATTLE
)
return
(
c
:
IsReason
(
REASON_BATTLE
)
or
rp
==
1
-
tp
and
c
:
IsReason
(
REASON_DESTROY
))
or
rp
==
1
-
tp
and
c
:
IsReason
(
REASON_DESTROY
))
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
end
function
c12006008
.
filter
(
c
,
e
,
tp
)
function
c12006008
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x8fbd
)
and
not
c
:
IsCode
(
12006008
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x8fbd
)
and
not
c
:
IsCode
(
12006008
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
expansions/script/c12006009.lua
View file @
2b0b498c
...
@@ -72,7 +72,6 @@ function c12006009.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -72,7 +72,6 @@ function c12006009.condition(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
(
c
:
IsReason
(
REASON_BATTLE
)
return
(
c
:
IsReason
(
REASON_BATTLE
)
or
rp
==
1
-
tp
and
c
:
IsReason
(
REASON_DESTROY
))
or
rp
==
1
-
tp
and
c
:
IsReason
(
REASON_DESTROY
))
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
end
function
c12006009
.
filter3
(
c
,
e
,
tp
)
function
c12006009
.
filter3
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x8fbd
)
and
not
c
:
IsCode
(
12006009
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x8fbd
)
and
not
c
:
IsCode
(
12006009
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
expansions/script/c12006020.lua
View file @
2b0b498c
...
@@ -87,7 +87,6 @@ function c12006020.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -87,7 +87,6 @@ function c12006020.condition(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
(
c
:
IsReason
(
REASON_BATTLE
)
return
(
c
:
IsReason
(
REASON_BATTLE
)
or
rp
==
1
-
tp
and
c
:
IsReason
(
REASON_DESTROY
))
or
rp
==
1
-
tp
and
c
:
IsReason
(
REASON_DESTROY
))
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
end
function
c12006020
.
filter1
(
c
,
e
,
tp
)
function
c12006020
.
filter1
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x8fbd
)
and
not
c
:
IsCode
(
12006020
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x8fbd
)
and
not
c
:
IsCode
(
12006020
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
expansions/script/c12006021.lua
View file @
2b0b498c
...
@@ -45,7 +45,6 @@ function c12006021.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -45,7 +45,6 @@ function c12006021.condition(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
(
c
:
IsReason
(
REASON_BATTLE
)
return
(
c
:
IsReason
(
REASON_BATTLE
)
or
rp
==
1
-
tp
and
c
:
IsReason
(
REASON_DESTROY
))
or
rp
==
1
-
tp
and
c
:
IsReason
(
REASON_DESTROY
))
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
end
function
c12006021
.
filter
(
c
,
e
,
tp
)
function
c12006021
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x8fbd
)
and
not
c
:
IsCode
(
12006021
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x8fbd
)
and
not
c
:
IsCode
(
12006021
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
expansions/script/c12006022.lua
View file @
2b0b498c
...
@@ -63,7 +63,6 @@ function c12006022.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -63,7 +63,6 @@ function c12006022.condition(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
(
c
:
IsReason
(
REASON_BATTLE
)
return
(
c
:
IsReason
(
REASON_BATTLE
)
or
rp
==
1
-
tp
and
c
:
IsReason
(
REASON_DESTROY
))
or
rp
==
1
-
tp
and
c
:
IsReason
(
REASON_DESTROY
))
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
end
function
c12006022
.
filter1
(
c
,
e
,
tp
)
function
c12006022
.
filter1
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x8fbd
)
and
not
c
:
IsCode
(
12006022
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x8fbd
)
and
not
c
:
IsCode
(
12006022
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
expansions/script/c12008030.lua
View file @
2b0b498c
...
@@ -27,11 +27,12 @@ function c12008030.initial_effect(c)
...
@@ -27,11 +27,12 @@ function c12008030.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e
2
:
SetDescription
(
aux
.
Stringid
(
12008030
,
1
))
e
1
:
SetDescription
(
aux
.
Stringid
(
12008030
,
1
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_QUICK_O
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_QUICK_O
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCode
(
EVENT_BATTLE_DESTROYED
)
e1
:
SetCode
(
EVENT_BATTLE_DESTROYED
)
e1
:
SetCondition
(
aux
.
exccon
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCost
(
aux
.
exccon
)
e1
:
SetCondition
(
c12008030
.
condition
)
e1
:
SetCondition
(
c12008030
.
condition
)
e1
:
SetTarget
(
c12008030
.
target
)
e1
:
SetTarget
(
c12008030
.
target
)
e1
:
SetOperation
(
c12008030
.
operation
)
e1
:
SetOperation
(
c12008030
.
operation
)
...
@@ -75,7 +76,7 @@ function c12008030.spop1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -75,7 +76,7 @@ function c12008030.spop1(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFacedown
()
or
not
tc
:
IsRelateToEffect
(
e
)
or
tc
:
IsControler
(
1
-
tp
)
or
tc
:
IsImmuneToEffect
(
e
)
then
return
end
if
tc
:
IsFacedown
()
or
not
tc
:
IsRelateToEffect
(
e
)
or
tc
:
IsControler
(
1
-
tp
)
or
tc
:
IsImmuneToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c12008030
.
spfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
,
tc
:
Get
Level
())
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c12008030
.
spfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
,
tc
:
Get
Attribute
())
local
sc
=
g
:
GetFirst
()
local
sc
=
g
:
GetFirst
()
if
sc
then
if
sc
then
local
mg
=
tc
:
GetOverlayGroup
()
local
mg
=
tc
:
GetOverlayGroup
()
...
...
expansions/script/c12010026.lua
View file @
2b0b498c
...
@@ -113,7 +113,10 @@ function c12010026.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -113,7 +113,10 @@ function c12010026.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
end
end
function
c12010026
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c12010026
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
SpecialSummon
(
e
:
GetHandler
(),
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
...
...
expansions/script/c12011000.lua
View file @
2b0b498c
...
@@ -63,10 +63,10 @@ function c12011000.efop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -63,10 +63,10 @@ function c12011000.efop(e,tp,eg,ep,ev,re,r,rp)
rc
:
RegisterEffect
(
e2
,
true
)
rc
:
RegisterEffect
(
e2
,
true
)
end
end
end
end
function
c12011000
.
target
(
e
,
c
)
function
c12011000
.
target
(
e
,
rc
)
local
g
,
te
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
,
CHAININFO_TRIGGERING_EFFECT
)
local
g
,
te
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
,
CHAININFO_TRIGGERING_EFFECT
)
return
not
(
te
and
te
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
))
return
not
(
te
and
te
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
))
or
not
(
g
and
g
:
IsContains
(
c
))
or
not
(
g
and
g
:
IsContains
(
rc
))
end
end
function
c12011000
.
efilter
(
e
,
te
)
function
c12011000
.
efilter
(
e
,
te
)
return
te
:
GetOwnerPlayer
()
~=
e
:
GetHandlerPlayer
()
return
te
:
GetOwnerPlayer
()
~=
e
:
GetHandlerPlayer
()
...
...
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