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
03ec4f63
Commit
03ec4f63
authored
May 01, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update sump selection with zone
parent
07f35c2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
6 deletions
+26
-6
c61665245.lua
c61665245.lua
+26
-6
No files found.
c61665245.lua
View file @
03ec4f63
...
@@ -78,18 +78,38 @@ function c61665245.spop2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -78,18 +78,38 @@ function c61665245.spop2(e,tp,eg,ep,ev,re,r,rp)
local
zone
=
{}
local
zone
=
{}
zone
[
0
]
=
c
:
GetLinkedZone
(
0
)
zone
[
0
]
=
c
:
GetLinkedZone
(
0
)
zone
[
1
]
=
c
:
GetLinkedZone
(
1
)
zone
[
1
]
=
c
:
GetLinkedZone
(
1
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
tp
,
LOCATION_REASON_TOFIELD
,
zone
[
tp
])
<=
0
local
ft
=
{}
and
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
,
tp
,
LOCATION_REASON_TOFIELD
,
zone
[
1
-
tp
])
<=
0
then
return
end
flag
=
{}
for
p
=
0
,
1
do
zone
[
p
]
=
c
:
GetLinkedZone
(
p
)
ft
[
p
],
flag
[
p
]
=
Duel
.
GetLocationCount
(
p
,
LOCATION_MZONE
,
p
,
LOCATION_REASON_TOFIELD
,
zone
[
p
])
flag
[
p
]
=
(
~
flag
[
p
])
&
0x7f
end
if
ft
[
0
]
<=
0
and
ft
[
1
]
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c61665245
.
spfilter3
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
:
GetRace
())
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c61665245
.
spfilter3
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
:
GetRace
())
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
tc
then
if
tc
then
local
sump
=
tp
local
ava_zone
=
0
if
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
,
1
-
tp
,
zone
[
1
-
tp
])
local
ava_zone_rev
=
0x00ff00ff
and
(
not
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
,
tp
,
zone
[
tp
])
or
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
61665245
,
2
)))
then
if
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
,
tp
,
zone
[
tp
])
then
ava_zone
=
ava_zone
|
flag
[
tp
]
ava_zone_rev
=
ava_zone_rev
&
(
~
flag
[
tp
])
end
if
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
,
1
-
tp
,
zone
[
1
-
tp
])
then
ava_zone
=
ava_zone
|
(
flag
[
1
-
tp
]
<<
16
)
ava_zone_rev
=
ava_zone_rev
&
(
~
(
flag
[
1
-
tp
]
<<
16
))
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOZONE
)
local
sel_zone
=
Duel
.
SelectDisableField
(
tp
,
1
,
LOCATION_MZONE
,
LOCATION_MZONE
,
ava_zone_rev
)
local
sump
=
0
if
sel_zone
&
0xff
>
0
then
sump
=
tp
else
sump
=
1
-
tp
sump
=
1
-
tp
sel_zone
=
sel_zone
>>
16
end
end
if
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
sump
,
false
,
false
,
POS_FACEUP_DEFENSE
,
zone
[
sump
]
)
then
if
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
sump
,
false
,
false
,
POS_FACEUP_DEFENSE
,
sel_zone
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
...
...
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