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
1f1ca7e8
Commit
1f1ca7e8
authored
Oct 27, 2015
by
独孤朲
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #77 from mercury233/patch-1
fix
parents
ebab53fc
9c7054b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
c14733538.lua
c14733538.lua
+8
-12
No files found.
c14733538.lua
View file @
1f1ca7e8
...
@@ -10,27 +10,23 @@ function c14733538.initial_effect(c)
...
@@ -10,27 +10,23 @@ function c14733538.initial_effect(c)
e1
:
SetOperation
(
c14733538
.
activate
)
e1
:
SetOperation
(
c14733538
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c14733538
.
filter1
(
c
,
e
,
tp
,
b1
)
function
c14733538
.
filter
(
c
,
e
,
tp
,
b1
,
setcode
)
return
c
:
IsSetCard
(
0xc7
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
not
c
:
IsForbidden
()
return
c
:
IsSetCard
(
setcode
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
not
c
:
IsForbidden
()
and
(
b1
or
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
))
end
function
c14733538
.
filter2
(
c
,
e
,
tp
,
b1
)
return
c
:
IsSetCard
(
0xda
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
not
c
:
IsForbidden
()
and
(
b1
or
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
))
and
(
b1
or
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
))
end
end
function
c14733538
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c14733538
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
b1
=
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
)
local
b1
=
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
)
local
b2
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
local
b2
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
(
b1
or
b2
)
if
chk
==
0
then
return
(
b1
or
b2
)
and
Duel
.
IsExistingMatchingCard
(
c14733538
.
filter
1
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
b1
)
and
Duel
.
IsExistingMatchingCard
(
c14733538
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
b1
,
0xc7
)
and
Duel
.
IsExistingMatchingCard
(
c14733538
.
filter
2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
b1
)
end
and
Duel
.
IsExistingMatchingCard
(
c14733538
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
b1
,
0xda
)
end
end
end
function
c14733538
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c14733538
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
b1
=
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
)
local
b1
=
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
)
local
b2
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
local
b2
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
not
b1
and
not
b2
then
return
end
if
not
b1
and
not
b2
then
return
end
local
g1
=
Duel
.
GetMatchingGroup
(
c14733538
.
filter
1
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
,
b1
)
local
g1
=
Duel
.
GetMatchingGroup
(
c14733538
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
,
b1
,
0xc7
)
local
g2
=
Duel
.
GetMatchingGroup
(
c14733538
.
filter
2
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
,
b1
)
local
g2
=
Duel
.
GetMatchingGroup
(
c14733538
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
,
b1
,
0xda
)
if
g1
:
GetCount
()
==
0
or
g2
:
GetCount
()
==
0
then
return
end
if
g1
:
GetCount
()
==
0
or
g2
:
GetCount
()
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
sg1
=
g1
:
Select
(
tp
,
1
,
1
,
nil
)
local
sg1
=
g1
:
Select
(
tp
,
1
,
1
,
nil
)
...
@@ -38,8 +34,8 @@ function c14733538.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -38,8 +34,8 @@ function c14733538.activate(e,tp,eg,ep,ev,re,r,rp)
local
sg2
=
g2
:
Select
(
tp
,
1
,
1
,
nil
)
local
sg2
=
g2
:
Select
(
tp
,
1
,
1
,
nil
)
sg1
:
Merge
(
sg2
)
sg1
:
Merge
(
sg2
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg1
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg1
)
local
cg
=
sg1
:
RandomSelect
(
1
-
tp
,
1
)
Duel
.
ShuffleDeck
(
tp
)
Duel
.
ConfirmCards
(
tp
,
cg
)
local
cg
=
sg1
:
Select
(
1
-
tp
,
1
,
1
,
nil
)
local
tc
=
cg
:
GetFirst
()
local
tc
=
cg
:
GetFirst
()
Duel
.
Hint
(
HINT_CARD
,
0
,
tc
:
GetCode
())
Duel
.
Hint
(
HINT_CARD
,
0
,
tc
:
GetCode
())
if
b1
and
(
not
b2
or
not
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
or
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
14733538
,
0
)))
then
if
b1
and
(
not
b2
or
not
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
or
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
14733538
,
0
)))
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