Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
八宫一月
ygopro-scripts
Commits
c1410bfe
Commit
c1410bfe
authored
Sep 28, 2019
by
nekrozar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Xyz Shift
parent
510e3009
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
13 deletions
+9
-13
c8339504.lua
c8339504.lua
+9
-13
No files found.
c8339504.lua
View file @
c1410bfe
...
@@ -18,35 +18,31 @@ function c8339504.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -18,35 +18,31 @@ function c8339504.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c8339504
.
cfilter
(
c
,
e
,
tp
)
function
c8339504
.
cfilter
(
c
,
e
,
tp
)
local
rk
=
c
:
GetRank
()
local
rk
=
c
:
GetRank
()
return
rk
>
0
and
Duel
.
IsExistingMatchingCard
(
c8339504
.
spfilter1
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
c
,
e
,
tp
)
return
rk
>
0
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c8339504
.
spfilter1
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
rk
,
race
,
att
,
code
,
e
,
tp
)
end
end
function
c8339504
.
spfilter1
(
c
,
tc
,
e
,
tp
)
function
c8339504
.
spfilter1
(
c
,
rk
,
race
,
att
,
code
,
e
,
tp
)
return
c
:
IsRank
(
tc
:
GetRank
())
and
c
:
IsRace
(
tc
:
GetRace
())
and
c
:
IsAttribute
(
tc
:
GetAttribute
())
return
c
:
IsRank
(
rk
)
and
c
:
IsRace
(
race
)
and
c
:
IsAttribute
(
att
)
and
not
c
:
IsCode
(
tc
:
GetCode
())
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
not
c
:
IsCode
(
code
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c8339504
.
spfilter2
(
c
,
tc
,
e
,
tp
)
return
c
:
IsRank
(
tc
:
GetPreviousRankOnField
())
and
c
:
IsRace
(
tc
:
GetPreviousRaceOnField
())
and
c
:
IsAttribute
(
tc
:
GetPreviousAttributeOnField
())
and
not
c
:
IsCode
(
tc
:
GetPreviousCodeOnField
())
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c8339504
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c8339504
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
if
e
:
GetLabel
()
~=
100
then
return
false
end
if
e
:
GetLabel
()
~=
100
then
return
false
end
e
:
SetLabel
(
0
)
e
:
SetLabel
(
0
)
return
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
return
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
Duel
.
CheckReleaseGroup
(
tp
,
c8339504
.
cfilter
,
1
,
nil
,
e
,
tp
)
and
Duel
.
CheckReleaseGroup
(
tp
,
c8339504
.
cfilter
,
1
,
nil
,
e
,
tp
)
end
end
e
:
SetLabel
(
0
)
e
:
SetLabel
(
0
)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c8339504
.
cfilter
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c8339504
.
cfilter
,
1
,
1
,
nil
,
e
,
tp
)
e
:
SetLabel
(
g
:
GetFirst
():
GetRank
(),
g
:
GetFirst
():
GetRace
(),
g
:
GetFirst
():
GetAttribute
(),
g
:
GetFirst
():
GetCode
())
Duel
.
Release
(
g
,
REASON_COST
)
Duel
.
Release
(
g
,
REASON_COST
)
Duel
.
SetTargetCard
(
g
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
end
function
c8339504
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c8339504
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
FromEx
(
tp
)
<=
0
then
return
end
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
rk
,
race
,
att
,
code
=
e
:
GetLabel
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c8339504
.
spfilter
2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
tc
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c8339504
.
spfilter
1
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
rk
,
race
,
att
,
code
,
e
,
tp
)
local
sc
=
g
:
GetFirst
()
local
sc
=
g
:
GetFirst
()
if
sc
and
Duel
.
SpecialSummon
(
sc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
if
sc
and
Duel
.
SpecialSummon
(
sc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
if
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
then
...
...
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