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
Reinen
ygopro-scripts
Commits
4eb9b054
Commit
4eb9b054
authored
Apr 11, 2018
by
HidarimeYume
Committed by
mercury233
Apr 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed c24010609 Based on #1013 (#1014)
parent
5a37d726
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
15 deletions
+22
-15
c24010609.lua
c24010609.lua
+22
-15
No files found.
c24010609.lua
View file @
4eb9b054
...
@@ -99,29 +99,36 @@ function c24010609.setop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -99,29 +99,36 @@ function c24010609.setop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
c24010609
.
setfilter
),
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
c24010609
.
setfilter
),
tp
,
LOCATION_GRAVE
,
0
,
nil
)
if
g
:
GetCount
()
==
0
then
return
end
local
field
=
false
if
g
:
IsExists
(
Card
.
IsType
,
1
,
nil
,
TYPE_FIELD
)
then
field
=
true
end
local
ct
=
e
:
GetHandler
():
GetFlagEffectLabel
(
24010609
)
or
0
local
ct
=
e
:
GetHandler
():
GetFlagEffectLabel
(
24010609
)
or
0
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
if
ct
>
ft
then
ct
=
ft
end
if
ct
<=
0
and
not
field
then
return
end
local
tg
=
Group
.
CreateGroup
()
local
tg
=
Group
.
CreateGroup
()
repeat
local
tg1
=
Group
.
CreateGroup
()
local
field
=
false
local
init
=
1
if
g
:
IsExists
(
Card
.
IsType
,
1
,
nil
,
TYPE_FIELD
)
then
field
=
true
end
while
ct
>
0
and
(
ft
>
0
or
field
)
and
g
:
GetCount
()
>
0
do
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
sg
=
g
:
Select
(
tp
,
init
,
1
,
nil
)
tg
:
Merge
(
sg
)
if
sg
:
GetCount
()
>
0
then
g
:
Remove
(
Card
.
IsCode
,
nil
,
sg
:
GetFirst
():
GetCode
())
if
sg
:
GetFirst
():
IsType
(
TYPE_FIELD
)
then
if
sg
:
GetFirst
():
IsType
(
TYPE_FIELD
)
then
tg
:
Merge
(
sg
)
g
:
Remove
(
Card
.
IsType
,
nil
,
TYPE_FIELD
)
g
:
Remove
(
Card
.
IsType
,
nil
,
TYPE_FIELD
)
field
=
false
field
=
false
else
else
tg1
:
Merge
(
sg
)
g
:
Remove
(
Card
.
IsCode
,
nil
,
sg
:
GetFirst
():
GetCode
())
ft
=
ft
-
1
end
init
=
0
ct
=
ct
-
1
ct
=
ct
-
1
else
break
end
end
until
(
ct
==
0
and
not
field
)
or
g
:
GetCount
()
==
0
or
not
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
24010609
,
2
))
end
tg
:
Merge
(
tg1
)
Duel
.
SSet
(
tp
,
tg
)
local
tc
=
tg
:
GetFirst
()
local
tc
=
tg
:
GetFirst
()
while
tc
do
while
tc
do
Duel
.
SSet
(
tp
,
tc
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_LEAVE_FIELD_REDIRECT
)
e1
:
SetCode
(
EFFECT_LEAVE_FIELD_REDIRECT
)
...
...
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