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
37b145da
Commit
37b145da
authored
Apr 10, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
efabedf5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
17 deletions
+19
-17
script/c46008667.lua
script/c46008667.lua
+4
-4
script/c71345905.lua
script/c71345905.lua
+4
-4
script/c83319610.lua
script/c83319610.lua
+4
-4
script/c93238626.lua
script/c93238626.lua
+7
-5
No files found.
script/c46008667.lua
View file @
37b145da
...
...
@@ -65,10 +65,10 @@ function c46008667.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c46008667
.
filter1
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsSetCard
(
0x107a
)
and
Duel
.
IsExistingMatchingCard
(
c46008667
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
c
:
GetCode
(),
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
c46008667
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
,
c
:
GetCode
()
)
end
function
c46008667
.
filter2
(
c
,
code
,
e
,
tp
)
return
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsSetCard
(
0x107a
)
and
not
c
:
IsCode
(
code
)
function
c46008667
.
filter2
(
c
,
e
,
tp
,
mc
,
code
)
return
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsSetCard
(
0x107a
)
and
not
c
:
IsCode
(
code
)
and
mc
:
IsCanBeXyzMaterial
(
c
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
end
function
c46008667
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
@@ -84,7 +84,7 @@ function c46008667.spop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
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
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c46008667
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
tc
:
GetCode
(),
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c46008667
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
,
tc
:
GetCode
()
)
local
sc
=
g
:
GetFirst
()
if
sc
then
local
mg
=
tc
:
GetOverlayGroup
()
...
...
script/c71345905.lua
View file @
37b145da
...
...
@@ -13,10 +13,10 @@ end
function
c71345905
.
filter1
(
c
,
e
,
tp
)
local
rk
=
c
:
GetRank
()
return
rk
>
1
and
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x7f
)
and
Duel
.
IsExistingMatchingCard
(
c71345905
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
rk
,
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
c71345905
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
,
rk
)
end
function
c71345905
.
filter2
(
c
,
rk
,
e
,
tp
)
return
c
:
IsRankBelow
(
rk
-
1
)
and
c
:
IsSetCard
(
0x7f
)
function
c71345905
.
filter2
(
c
,
e
,
tp
,
mc
,
rk
)
return
c
:
IsRankBelow
(
rk
-
1
)
and
c
:
IsSetCard
(
0x7f
)
and
mc
:
IsCanBeXyzMaterial
(
c
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
end
function
c71345905
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
@@ -32,7 +32,7 @@ function c71345905.activate(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
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
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c71345905
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
tc
:
GetRank
(),
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c71345905
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
,
tc
:
GetRank
()
)
local
sc
=
g
:
GetFirst
()
if
sc
then
local
mg
=
tc
:
GetOverlayGroup
()
...
...
script/c83319610.lua
View file @
37b145da
...
...
@@ -76,10 +76,10 @@ function c83319610.mtop(e,tp,eg,ep,ev,re,r,rp)
end
function
c83319610
.
spfilter1
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x58
)
and
c
:
IsType
(
TYPE_XYZ
)
and
Duel
.
IsExistingMatchingCard
(
c83319610
.
spfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
c
:
GetRank
()
+
1
,
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
c83319610
.
spfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
,
c
:
GetRank
()
+
1
)
end
function
c83319610
.
spfilter2
(
c
,
rk
,
e
,
tp
)
return
c
:
GetRank
()
==
rk
and
c
:
IsSetCard
(
0x58
)
function
c83319610
.
spfilter2
(
c
,
e
,
tp
,
mc
,
rk
)
return
c
:
GetRank
()
==
rk
and
c
:
IsSetCard
(
0x58
)
and
mc
:
IsCanBeXyzMaterial
(
c
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
end
function
c83319610
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
@@ -100,7 +100,7 @@ function c83319610.spop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
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
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c83319610
.
spfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
tc
:
GetRank
()
+
1
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c83319610
.
spfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
,
tc
:
GetRank
()
+
1
)
local
sc
=
g
:
GetFirst
()
if
sc
then
local
mg
=
tc
:
GetOverlayGroup
()
...
...
script/c93238626.lua
View file @
37b145da
...
...
@@ -65,13 +65,15 @@ function c93238626.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
end
function
c93238626
.
filter
(
c
,
e
,
tp
,
no
)
return
c
.
xyz_number
==
no
and
c
:
IsSetCard
(
0x1048
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
function
c93238626
.
filter
(
c
,
e
,
tp
,
mc
,
no
)
return
c
.
xyz_number
==
no
and
c
:
IsSetCard
(
0x1048
)
and
mc
:
IsCanBeXyzMaterial
(
c
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
end
function
c93238626
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
local
m
=
_G
[
"c"
..
Duel
.
GetAttackTarget
():
GetCode
()]
return
m
and
m
.
xyz_number
and
Duel
.
IsExistingMatchingCard
(
c93238626
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
m
.
xyz_number
)
local
at
=
Duel
.
GetAttackTarget
()
local
m
=
_G
[
"c"
..
at
:
GetCode
()]
return
m
and
m
.
xyz_number
and
Duel
.
IsExistingMatchingCard
(
c93238626
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
at
,
m
.
xyz_number
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
...
...
@@ -82,7 +84,7 @@ function c93238626.spop(e,tp,eg,ep,ev,re,r,rp)
local
m
=
_G
[
"c"
..
tc
:
GetCode
()]
if
tc
:
IsFacedown
()
or
not
tc
:
IsRelateToBattle
()
or
tc
:
IsControler
(
1
-
tp
)
or
tc
:
IsImmuneToEffect
(
e
)
or
not
m
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c93238626
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
m
.
xyz_number
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c93238626
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
,
m
.
xyz_number
)
local
sc
=
g
:
GetFirst
()
if
sc
then
local
mg
=
tc
:
GetOverlayGroup
()
...
...
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