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
00392767
Commit
00392767
authored
Jan 18, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
77e476cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
script/c8339504.lua
script/c8339504.lua
+3
-4
No files found.
script/c8339504.lua
View file @
00392767
...
@@ -18,8 +18,7 @@ function c8339504.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -18,8 +18,7 @@ function c8339504.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c8339504
.
cfilter
(
c
,
e
,
tp
)
function
c8339504
.
cfilter
(
c
,
e
,
tp
)
local
rk
=
c
:
GetRank
()
local
rk
=
c
:
GetRank
()
return
rk
>
0
and
c
:
IsFaceup
()
return
rk
>
0
and
Duel
.
IsExistingMatchingCard
(
c8339504
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
rk
,
c
:
GetRace
(),
c
:
GetAttribute
(),
c
:
GetCode
(),
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
c8339504
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
rk
,
c
:
GetRace
(),
c
:
GetAttribute
(),
c
:
GetCode
(),
e
,
tp
)
end
end
function
c8339504
.
spfilter
(
c
,
rk
,
rc
,
att
,
code
,
e
,
tp
)
function
c8339504
.
spfilter
(
c
,
rk
,
rc
,
att
,
code
,
e
,
tp
)
return
c
:
GetRank
()
==
rk
and
c
:
IsRace
(
rc
)
and
c
:
IsAttribute
(
att
)
and
not
c
:
IsCode
(
code
)
return
c
:
GetRank
()
==
rk
and
c
:
IsRace
(
rc
)
and
c
:
IsAttribute
(
att
)
and
not
c
:
IsCode
(
code
)
...
@@ -42,9 +41,8 @@ function c8339504.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -42,9 +41,8 @@ function c8339504.activate(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c8339504
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
tc
:
Get
Rank
(),
tc
:
GetRace
(),
tc
:
GetAttribute
(),
tc
:
GetCode
(),
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c8339504
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
tc
:
Get
PreviousRankOnField
(),
tc
:
GetPreviousRaceOnField
(),
tc
:
GetPreviousAttributeOnField
(),
tc
:
GetPreviousCodeOnField
(),
e
,
tp
)
local
sc
=
g
:
GetFirst
()
local
sc
=
g
:
GetFirst
()
if
sc
then
if
sc
then
Duel
.
SpecialSummon
(
sc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
sc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
@@ -54,6 +52,7 @@ function c8339504.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -54,6 +52,7 @@ function c8339504.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
)
...
...
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