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
3b490316
Commit
3b490316
authored
Dec 24, 2018
by
mercury233
Committed by
GitHub
Dec 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update (#1126)
parent
94269d20
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
c6595475.lua
c6595475.lua
+10
-10
No files found.
c6595475.lua
View file @
3b490316
...
...
@@ -22,20 +22,20 @@ function c6595475.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c6595475
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c6595475
.
check
(
g
)
if
#
g
==
1
then
return
true
end
local
res
=
0x0
if
g
:
IsExists
(
Card
.
IsSetCard
,
1
,
nil
,
0x54
)
then
res
=
res
+
0x1
end
if
g
:
IsExists
(
Card
.
IsSetCard
,
1
,
nil
,
0x59
)
then
res
=
res
+
0x2
end
if
g
:
IsExists
(
Card
.
IsSetCard
,
1
,
nil
,
0x82
)
then
res
=
res
+
0x4
end
if
g
:
IsExists
(
Card
.
IsSetCard
,
1
,
nil
,
0x8f
)
then
res
=
res
+
0x8
end
return
res
~=
0x1
and
res
~=
0x2
and
res
~=
0x4
and
res
~=
0x8
end
function
c6595475
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c6595475
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
g
:
GetCount
()
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g1
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
t
=
{
0x54
,
0x59
,
0x82
,
0x8f
}
for
i
=
1
,
4
do
if
g1
:
GetFirst
():
IsSetCard
(
t
[
i
])
then
g
:
Remove
(
Card
.
IsSetCard
,
nil
,
t
[
i
])
end
end
if
g
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
6595475
,
0
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g2
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
g1
:
Merge
(
g2
)
end
local
g1
=
g
:
SelectSubGroup
(
tp
,
c6595475
.
check
,
false
,
1
,
2
)
Duel
.
SendtoHand
(
g1
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g1
)
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