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
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-scripts
Commits
1ef6316b
Commit
1ef6316b
authored
Apr 08, 2019
by
nekrozar
Committed by
salix5
Apr 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix (#1180)
parent
f842f9e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
c2434862.lua
c2434862.lua
+10
-12
No files found.
c2434862.lua
View file @
1ef6316b
...
...
@@ -66,19 +66,17 @@ function c2434862.spop(e,tp,eg,ep,ev,re,r,rp)
if
ft
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c2434862
.
filter
),
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
tc
=
g
:
GetFirst
()
if
not
tc
then
return
end
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
if
g
:
GetCount
()
<=
0
then
return
end
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
ft
=
ft
-
1
local
i
=
0
while
tc
and
i
<
2
and
e
:
GetLabel
()
==
1
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
ft
>
0
and
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
c2434862
.
filter
),
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
2434862
,
2
))
do
local
sg
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
c2434862
.
filter
),
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
if
e
:
GetLabel
()
==
1
and
sg
:
GetCount
()
>
0
and
ft
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
2434862
,
2
))
then
Duel
.
BreakEffect
()
ft
=
math.min
(
ft
,
sg
:
GetCount
(),
2
)
if
ft
>
1
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ft
=
1
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
g
=
Duel
.
SelectMatchingCard
(
tp
,
c2434862
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
tc
=
g
:
GetFirst
()
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
ft
=
ft
-
1
local
tg
=
sg
:
Select
(
tp
,
1
,
ft
,
nil
)
Duel
.
SpecialSummon
(
tg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
Duel
.
SpecialSummonComplete
()
end
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