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
e11acf07
Commit
e11acf07
authored
May 01, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:alstroemeria-silentlove/ygopro-222DIY-cards
parents
239b404f
c2dc0ad8
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
17 deletions
+21
-17
expansions/script/c12008027.lua
expansions/script/c12008027.lua
+1
-2
expansions/script/c12008033.lua
expansions/script/c12008033.lua
+2
-2
expansions/script/c34511110.lua
expansions/script/c34511110.lua
+1
-1
expansions/script/c34511160.lua
expansions/script/c34511160.lua
+10
-5
expansions/script/c34511170.lua
expansions/script/c34511170.lua
+2
-2
expansions/script/c75646956.lua
expansions/script/c75646956.lua
+3
-3
expansions/script/c75646959.lua
expansions/script/c75646959.lua
+2
-2
No files found.
expansions/script/c12008027.lua
View file @
e11acf07
...
...
@@ -77,8 +77,7 @@ end
function
c12008027
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
t
=
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
local
s
=
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToHand
,
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
1
,
nil
)
and
s
>
t
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_REMOVED
)
...
...
expansions/script/c12008033.lua
View file @
e11acf07
...
...
@@ -21,7 +21,7 @@ function cm.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_MUST_USE_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_EXTRA
,
LOCATION_EXTRA
)
e2
:
SetTargetRange
(
0
,
LOCATION_EXTRA
)
e2
:
SetCondition
(
cm
.
frccon
)
e2
:
SetValue
(
cm
.
frcval
)
c
:
RegisterEffect
(
e2
)
...
...
expansions/script/c34511110.lua
View file @
e11acf07
...
...
@@ -47,7 +47,7 @@ function c34511110.penop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c34511110
.
penfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
if
tc
then
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_
S
ZONE
,
POS_FACEUP
,
true
)
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_
P
ZONE
,
POS_FACEUP
,
true
)
end
end
end
...
...
expansions/script/c34511160.lua
View file @
e11acf07
...
...
@@ -8,6 +8,7 @@ function c34511160.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetCost
(
c34511160
.
atkcost
)
e2
:
SetCountLimit
(
1
,
34511160
)
e2
:
SetTarget
(
c34511160
.
ptg
)
e2
:
SetOperation
(
c34511160
.
pop
)
...
...
@@ -22,13 +23,17 @@ function c34511160.initial_effect(c)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
34511160
)
e3
:
SetCondition
(
c34511170
.
spcon
)
e3
:
SetTarget
(
c345111
70
.
s
ptg1
)
e3
:
SetOperation
(
c345111
70
.
s
pop1
)
e3
:
SetTarget
(
c345111
60
.
ptg1
)
e3
:
SetOperation
(
c345111
60
.
pop1
)
c
:
RegisterEffect
(
e3
)
end
function
c34511160
.
matfilter
(
c
)
return
c
:
IsXyzType
(
TYPE_PENDULUM
)
end
function
c34511160
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
end
function
c34511160
.
pfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsAbleToHand
()
end
...
...
@@ -65,13 +70,13 @@ function c34511160.spcon(e,tp,eg,ep,ev,re,r,rp)
end
-----------------------
function
c34511160
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0xac5
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0xac5
)
and
c
:
IsType
(
TYPE_SPELL
or
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
end
function
c34511160
.
s
ptg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c34511160
.
ptg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c34511160
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c34511160
.
s
pop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c34511160
.
pop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c34511160
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
...
...
expansions/script/c34511170.lua
View file @
e11acf07
...
...
@@ -46,7 +46,7 @@ function c34511170.penop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c34511170
.
penfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
if
tc
then
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_
S
ZONE
,
POS_FACEUP
,
true
)
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_
P
ZONE
,
POS_FACEUP
,
true
)
end
end
end
...
...
@@ -101,7 +101,7 @@ function c34511170.spop(e,tp,eg,ep,ev,re,r,rp)
end
----------------------------
if
ec
:
IsPreviousLocation
(
LOCATION_SZONE
)
and
ec
:
IsPreviousPosition
(
POS_FACEUP
)
and
(
not
ec
:
IsForbidden
())
and
ec
:
GetOriginalType
(
TYPE_PENDULUM
)
and
(
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
))
and
ec
:
GetPreviousControler
()
==
tp
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
34511170
,
4
))
then
Duel
.
MoveToField
(
ec
,
tp
,
tp
,
LOCATION_
S
ZONE
,
POS_FACEUP
,
true
)
Duel
.
MoveToField
(
ec
,
tp
,
tp
,
LOCATION_
P
ZONE
,
POS_FACEUP
,
true
)
end
------------------------
if
ec
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
(
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
))
and
ec
:
IsLocation
(
LOCATION_EXTRA
)
and
ec
:
GetOriginalType
(
TYPE_PENDULUM
)
and
ec
:
IsPreviousPosition
(
POS_FACEDOWN
)
and
ec
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
and
ec
:
GetPreviousControler
()
==
tp
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
34511170
,
1
))
then
...
...
expansions/script/c75646956.lua
View file @
e11acf07
...
...
@@ -38,7 +38,7 @@ function c75646956.efffilter(c,e,tp,eg,ep,ev,re,r,rp)
if
not
m
then
return
false
end
local
te
=
m
.
Seele_effect
if
not
te
then
return
false
end
tg
=
te
:
GetTarget
()
local
tg
=
te
:
GetTarget
()
return
not
tg
or
tg
and
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
0
)
end
function
c75646956
.
efftg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
@@ -53,7 +53,7 @@ function c75646956.efftg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
m
=
_G
[
"c"
..
tc
:
GetCode
()]
local
te
=
m
.
Seele_effect
if
not
te
then
return
false
end
tg
=
te
:
GetTarget
()
local
tg
=
te
:
GetTarget
()
if
tg
then
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
end
function
c75646956
.
effop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
expansions/script/c75646959.lua
View file @
e11acf07
...
...
@@ -15,7 +15,7 @@ function c75646959.initial_effect(c)
--tohand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
75646959
,
1
))
e2
:
SetCategory
(
CATEGORY_TOHAND
)
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
...
...
@@ -66,7 +66,7 @@ function c75646959.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c75646959
.
cfilter
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
,
tp
)
e
:
SetLabelObject
(
g
:
GetFirst
())
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
2
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
+
CATEGORY_SEARCH
,
nil
,
2
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
end
function
c75646959
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
sc
=
e
:
GetLabelObject
()
...
...
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