Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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
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
MyCard
ygopro-2pick
Commits
4869685a
Commit
4869685a
authored
Oct 27, 2017
by
Momobako
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Push by Appveyor
parent
27b30c11
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
29 deletions
+22
-29
expansions/script/c1150012.lua
expansions/script/c1150012.lua
+3
-3
expansions/script/c13254107.lua
expansions/script/c13254107.lua
+4
-4
expansions/script/c13257220.lua
expansions/script/c13257220.lua
+2
-2
expansions/script/c17060845.lua
expansions/script/c17060845.lua
+2
-9
expansions/script/c37564054.lua
expansions/script/c37564054.lua
+11
-11
No files found.
expansions/script/c1150012.lua
View file @
4869685a
...
...
@@ -23,7 +23,7 @@ function c1150012.initial_effect(c)
e3
:
SetRange
(
LOCATION_FZONE
)
e3
:
SetCondition
(
c1150012
.
con3
)
e3
:
SetTarget
(
c1150012
.
tg3
)
e3
:
SetOperation
(
c150012
.
op3
)
e3
:
SetOperation
(
c1
1
50012
.
op3
)
c
:
RegisterEffect
(
e3
)
--
local
e4
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -52,14 +52,14 @@ function c1150012.tfilter3(c,e,sp)
return
c
:
IsRace
(
RACE_AQUA
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
sp
,
false
,
false
)
and
c
:
GetLevel
()
<
5
and
not
c
:
IsType
(
TYPE_XYZ
)
end
function
c1150012
.
tg3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
Get
MZoneCount
(
tp
)
>
0
if
chk
==
0
then
return
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c1150012
.
tfilter3
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
--
function
c1150012
.
op3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
if
Duel
.
Get
MZoneCount
(
tp
)
>
0
then
if
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c1150012
.
tfilter3
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
...
...
expansions/script/c13254107.lua
View file @
4869685a
...
...
@@ -79,7 +79,7 @@ function c13254107.efilter(e,te)
return
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
function
c13254107
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_LINK
)
return
bit
.
band
(
e
:
GetHandler
():
GetSummonType
(),
SUMMON_TYPE_LINK
)
==
SUMMON_TYPE_LINK
end
function
c13254107
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x356
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
...
...
@@ -102,11 +102,11 @@ function c13254107.spfilter(c,e,tp)
end
function
c13254107
.
spcon
(
e
,
c
,
sg
,
og
)
local
tp
=
e
:
GetHandlerPlayer
()
return
Duel
.
Get
MZoneCount
(
tp
)
>
0
return
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c13254107
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
function
c13254107
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
,
sg
,
og
)
if
Duel
.
Get
MZoneCount
(
tp
)
<=
0
then
return
end
if
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c13254107
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
sg
:
Merge
(
g
)
...
...
@@ -133,7 +133,7 @@ function c13254107.splimit(e,c,sump,sumtype,sumpos,targetp)
return
not
c
:
IsSetCard
(
0x356
)
or
not
c
:
IsType
(
TYPE_MONSTER
)
end
function
c13254107
.
cfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0x356
)
and
c
:
GetPreviousControler
()
==
tp
return
c
:
IsSetCard
(
0x356
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
GetPreviousControler
()
==
tp
end
function
c13254107
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
eg
:
IsContains
(
e
:
GetHandler
())
and
eg
:
IsExists
(
c13254107
.
cfilter
,
1
,
nil
,
tp
)
...
...
expansions/script/c13257220.lua
View file @
4869685a
...
...
@@ -102,8 +102,8 @@ function c13257220.regop(e,tp,eg,ep,ev,re,r,rp)
end
function
c13257220
.
dreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsDisabled
()
end
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
13257220
,
1
))
then
if
chk
==
0
then
return
true
end
if
not
c
:
IsDisabled
()
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
13257220
,
1
))
then
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetCode
(
EFFECT_DISABLE
)
...
...
expansions/script/c17060845.lua
View file @
4869685a
...
...
@@ -96,13 +96,6 @@ end
function
c17060845
.
splimit
(
e
,
se
,
sp
,
st
)
return
bit
.
band
(
st
,
SUMMON_TYPE_FUSION
)
==
SUMMON_TYPE_FUSION
end
function
c17060845
.
spfilter1
(
c
,
tp
,
fc
)
return
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsCanBeFusionMaterial
(
fc
)
and
c
:
IsAbleToDeckOrExtraAsCost
()
end
function
c17060845
.
spfilter2
(
c
,
fc
)
return
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsCanBeFusionMaterial
(
fc
)
and
c
:
IsAbleToDeckOrExtraAsCost
()
end
function
c17060845
.
spfilter1
(
c
,
tp
,
g
)
return
g
:
IsExists
(
c17060845
.
spfilter2
,
1
,
c
,
tp
,
c
)
end
...
...
@@ -112,7 +105,7 @@ function c17060845.spfilter2(c,tp,mc)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
Group
.
FromCards
(
c
,
mc
))
>
0
end
function
c17060845
.
matfilter
(
c
)
return
((
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsRace
(
RACE_WARRIOR
))
or
c
:
IsFusionType
(
TYPE_PENDULUM
)
and
c
:
IsAbleToDeckOrExtraAsCost
()
return
((
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsRace
(
RACE_WARRIOR
))
or
c
:
IsFusionType
(
TYPE_PENDULUM
)
)
and
c
:
IsAbleToDeckOrExtraAsCost
()
end
function
c17060845
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
...
...
@@ -176,7 +169,7 @@ function c17060845.sptg1(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
function
c17060845
.
spop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
Get
MZoneCount
(
tp
)
<=
0
then
return
end
if
Duel
.
Get
LocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c17060845
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
...
...
expansions/script/c37564054.lua
View file @
4869685a
...
...
@@ -19,16 +19,17 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
0
,
tp
,
LOCATION_EXTRA
)
end
function
cm
.
sfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCanBeXyzMaterial
()
return
c
:
IsFaceup
()
and
c
:
IsCanBeXyzMaterial
(
nil
)
end
function
cm
.
filter
(
c
,
tg
,
tp
)
return
Duel
.
IsExistingMatchingCard
(
cm
.
xfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
tg
,
t
c
)
return
Duel
.
IsExistingMatchingCard
(
cm
.
xfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
tg
,
c
)
end
function
cm
.
xfilter
(
c
,
tg
,
tc
)
return
tg
:
IsExists
(
cm
.
mfilter
,
1
,
nil
,
c
,
tc
)
function
cm
.
gcheck
(
g
,
xyzc
)
local
ct
=
g
:
GetCount
()
return
xyzc
:
IsXyzSummonable
(
g
,
ct
,
ct
)
end
function
cm
.
mfilter
(
c
,
xyzc
,
ex
c
)
return
c
:
IsCanBeXyzMaterial
(
xyzc
)
and
exc
:
IsCanBeXyzMaterial
(
xyzc
)
and
xyzc
:
IsXyzSummonable
(
Group
.
FromCards
(
c
,
exc
),
2
,
2
)
function
cm
.
xfilter
(
c
,
tg
,
t
c
)
return
Senya
.
CheckGroup
(
tg
,
cm
.
gcheck
,
Group
.
FromCards
(
tc
),
2
,
63
,
c
)
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
)
...
...
@@ -36,15 +37,14 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetFieldGroup
(
p
,
0
,
LOCATION_HAND
)
if
g
:
GetCount
()
>
0
then
Duel
.
ConfirmCards
(
p
,
g
)
if
g
:
IsExists
(
cm
.
filter
,
1
,
nil
,
tg
,
p
)
and
Duel
.
SelectYesNo
(
p
,
37564007
*
16
)
then
if
g
:
IsExists
(
cm
.
filter
,
1
,
nil
,
tg
,
p
)
and
Duel
.
SelectYesNo
(
p
,
m
*
16
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
HINTMSG_XMATERIAL
)
local
g1
=
g
:
FilterSelect
(
p
,
cm
.
filter
,
1
,
1
,
nil
,
tg
,
p
)
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
HINTMSG_SPSUMMON
)
local
xyzc
=
Duel
.
SelectMatchingCard
(
p
,
cm
.
xfilter
,
p
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
tg
,
g1
:
GetFirst
()):
GetFirst
()
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
HINTMSG_XMATERIAL
)
local
g2
=
tg
:
FilterSelect
(
p
,
cm
.
mfilter
,
1
,
1
,
nil
,
xyzc
,
g1
:
GetFirst
())
g1
:
Merge
(
g2
)
Duel
.
XyzSummon
(
p
,
xyzc
,
g1
)
local
mg
=
Senya
.
SelectGroup
(
tp
,
HINTMSG_XMATERIAL
,
tg
,
cm
.
gcheck
,
g1
,
2
,
63
,
xyzc
)
Duel
.
XyzSummon
(
p
,
xyzc
,
mg
)
end
end
Duel
.
ShuffleHand
(
1
-
p
)
end
\ No newline at end of file
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