Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
REIKAI
ygopro
Commits
d490c594
Commit
d490c594
authored
Mar 22, 2015
by
salix5
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1208 from Tianchenglipu/patch-6
"Xyz Number" judgement fixup
parents
4b33fc82
52eead24
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
6 deletions
+13
-6
script/c33252803.lua
script/c33252803.lua
+4
-2
script/c57734012.lua
script/c57734012.lua
+4
-2
script/c93238626.lua
script/c93238626.lua
+5
-2
No files found.
script/c33252803.lua
View file @
d490c594
...
...
@@ -11,8 +11,9 @@ function c33252803.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c33252803
.
filter1
(
c
,
e
,
tp
)
local
m
=
_G
[
"c"
..
c
:
GetCode
()]
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x48
)
and
not
c
:
IsSetCard
(
0x1048
)
and
Duel
.
IsExistingMatchingCard
(
c33252803
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
,
c
:
GetRank
()
+
1
,
c
.
xyz_number
)
and
Duel
.
IsExistingMatchingCard
(
c33252803
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
,
c
:
GetRank
()
+
1
,
m
.
xyz_number
)
end
function
c33252803
.
filter2
(
c
,
e
,
tp
,
mc
,
rk
,
no
)
return
c
:
GetRank
()
==
rk
and
c
:
IsSetCard
(
0x1048
)
and
c
.
xyz_number
==
no
and
mc
:
IsCanBeXyzMaterial
(
c
)
...
...
@@ -30,8 +31,9 @@ function c33252803.activate(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<
0
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFacedown
()
or
not
tc
:
IsRelateToEffect
(
e
)
or
tc
:
IsControler
(
1
-
tp
)
or
tc
:
IsImmuneToEffect
(
e
)
then
return
end
local
m
=
_G
[
"c"
..
tc
:
GetCode
()]
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c33252803
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
,
tc
:
GetRank
()
+
1
,
tc
.
xyz_number
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c33252803
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
,
tc
:
GetRank
()
+
1
,
m
.
xyz_number
)
local
sc
=
g
:
GetFirst
()
if
sc
then
local
mg
=
tc
:
GetOverlayGroup
()
...
...
script/c57734012.lua
View file @
d490c594
...
...
@@ -36,7 +36,8 @@ function c57734012.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
and
not
Duel
.
CheckPhaseActivity
()
and
e
:
GetHandler
():
GetFlagEffect
(
57734012
)
~=
0
end
function
c57734012
.
filter1
(
c
,
e
,
tp
)
local
no
=
c
.
xyz_number
local
m
=
_G
[
"c"
..
c
:
GetCode
()]
local
no
=
m
.
xyz_number
return
no
and
no
>=
101
and
no
<=
107
and
c
:
IsSetCard
(
0x48
)
and
not
c
:
IsSetCard
(
0x1048
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
and
Duel
.
IsExistingMatchingCard
(
c57734012
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
,
no
)
...
...
@@ -59,8 +60,9 @@ function c57734012.activate(e,tp,eg,ep,ev,re,r,rp)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
c57734012
.
filter1
,
tp
,
LOCATION_GRAVE
+
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
tc1
=
g1
:
GetFirst
()
if
tc1
and
Duel
.
SpecialSummon
(
tc1
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
local
m
=
_G
[
"c"
..
tc1
:
GetCode
()]
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c57734012
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc1
,
tc1
.
xyz_number
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c57734012
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc1
,
m
.
xyz_number
)
local
tc2
=
g2
:
GetFirst
()
if
tc2
then
tc2
:
SetMaterial
(
g1
)
...
...
script/c93238626.lua
View file @
d490c594
...
...
@@ -70,7 +70,8 @@ function c93238626.filter(c,e,tp,no)
end
function
c93238626
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
local
no
=
Duel
.
GetAttackTarget
().
xyz_number
local
m
=
_G
[
"c"
..
Duel
.
GetAttackTarget
():
GetCode
()]
local
no
=
m
.
xyz_number
return
no
and
Duel
.
IsExistingMatchingCard
(
c93238626
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
no
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
...
...
@@ -80,14 +81,16 @@ function c93238626.spop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<
0
then
return
end
local
tc
=
Duel
.
GetAttackTarget
()
if
tc
:
IsFacedown
()
or
not
tc
:
IsRelateToBattle
()
or
tc
:
IsControler
(
1
-
tp
)
or
tc
:
IsImmuneToEffect
(
e
)
then
return
end
local
m
=
_G
[
"tc"
..
Duel
.
GetAttackTarget
():
GetCode
()]
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c93238626
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
.
xyz_number
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c93238626
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
m
.
xyz_number
)
local
sc
=
g
:
GetFirst
()
if
sc
then
local
mg
=
tc
:
GetOverlayGroup
()
if
mg
:
GetCount
()
~=
0
then
Duel
.
Overlay
(
sc
,
mg
)
end
sc
:
SetMaterial
(
Group
.
FromCards
(
tc
))
Duel
.
Overlay
(
sc
,
Group
.
FromCards
(
tc
))
Duel
.
SpecialSummon
(
sc
,
SUMMON_TYPE_XYZ
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
sc
:
CompleteProcedure
()
...
...
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