Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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-2pick
Commits
f2643eed
Commit
f2643eed
authored
Mar 22, 2015
by
salix5
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1214 from Tianchenglipu/patch-1
Update c31531170.lua
parents
8d084b15
abd33071
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
script/c31531170.lua
script/c31531170.lua
+4
-10
No files found.
script/c31531170.lua
View file @
f2643eed
...
@@ -34,12 +34,6 @@ function c31531170.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -34,12 +34,6 @@ function c31531170.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetLabel
(
tc2
:
GetFieldID
())
e1
:
SetLabel
(
tc2
:
GetFieldID
())
tc1
:
RegisterEffect
(
e1
)
tc1
:
RegisterEffect
(
e1
)
end
end
function
c31531170
.
filter
(
c
,
e
,
tp
,
lscale
,
rscale
)
local
lv
=
c
:
GetLevel
()
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_PENDULUM
)
and
lv
>
lscale
and
lv
<
rscale
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_PENDULUM
,
tp
,
false
,
false
)
and
not
c
:
IsForbidden
()
end
function
c31531170
.
pendcon
(
e
,
c
,
og
)
function
c31531170
.
pendcon
(
e
,
c
,
og
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
local
tp
=
e
:
GetOwnerPlayer
()
local
tp
=
e
:
GetOwnerPlayer
()
...
@@ -51,9 +45,9 @@ function c31531170.pendcon(e,c,og)
...
@@ -51,9 +45,9 @@ function c31531170.pendcon(e,c,og)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
ft
<=
0
then
return
false
end
if
ft
<=
0
then
return
false
end
if
og
then
if
og
then
return
og
:
IsExists
(
c31531170
.
f
ilter
,
1
,
nil
,
e
,
tp
,
lscale
,
rscale
)
return
og
:
IsExists
(
aux
.
PConditionF
ilter
,
1
,
nil
,
e
,
tp
,
lscale
,
rscale
)
else
else
return
Duel
.
IsExistingMatchingCard
(
c31531170
.
f
ilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
lscale
,
rscale
)
return
Duel
.
IsExistingMatchingCard
(
aux
.
PConditionF
ilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
lscale
,
rscale
)
end
end
end
end
function
c31531170
.
pendop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
,
sg
,
og
)
function
c31531170
.
pendop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
,
sg
,
og
)
...
@@ -65,11 +59,11 @@ function c31531170.pendop(e,tp,eg,ep,ev,re,r,rp,c,sg,og)
...
@@ -65,11 +59,11 @@ function c31531170.pendop(e,tp,eg,ep,ev,re,r,rp,c,sg,og)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
og
then
if
og
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
og
:
FilterSelect
(
tp
,
c31531170
.
f
ilter
,
1
,
ft
,
nil
,
e
,
tp
,
lscale
,
rscale
)
local
g
=
og
:
FilterSelect
(
tp
,
aux
.
PConditionF
ilter
,
1
,
ft
,
nil
,
e
,
tp
,
lscale
,
rscale
)
sg
:
Merge
(
g
)
sg
:
Merge
(
g
)
else
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c31531170
.
f
ilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
ft
,
nil
,
e
,
tp
,
lscale
,
rscale
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
PConditionF
ilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
ft
,
nil
,
e
,
tp
,
lscale
,
rscale
)
sg
:
Merge
(
g
)
sg
:
Merge
(
g
)
end
end
end
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