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
90ec3bc2
Commit
90ec3bc2
authored
Aug 31, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
PSY frame
parent
1639c30f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
16 deletions
+24
-16
script/c1697104.lua
script/c1697104.lua
+5
-4
script/c2810642.lua
script/c2810642.lua
+2
-2
script/c38814750.lua
script/c38814750.lua
+2
-2
script/c74203495.lua
script/c74203495.lua
+5
-4
script/c75425043.lua
script/c75425043.lua
+6
-4
script/utility.lua
script/utility.lua
+4
-0
No files found.
script/c1697104.lua
View file @
90ec3bc2
...
...
@@ -25,13 +25,14 @@ function c1697104.splimit(e,se,sp,st)
return
se
:
IsHasType
(
EFFECT_TYPE_ACTIONS
)
end
function
c1697104
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
0
and
ep
~=
tp
and
re
:
IsActiveType
(
TYPE_TRAP
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
Duel
.
IsChainNegatable
(
ev
)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
0
and
ep
~=
tp
and
re
:
IsActiveType
(
TYPE_TRAP
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
Duel
.
IsChainNegatable
(
ev
)
end
function
c1697104
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
49036338
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
return
c
:
IsCode
(
49036338
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c1697104
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingMatchingCard
(
c1697104
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
2
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
)
...
...
@@ -44,7 +45,7 @@ function c1697104.operation(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<
2
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c1697104
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
(
)
==
0
then
return
end
if
g
:
FilterCount
(
aux
.
nvfilter
,
nil
)
==
0
then
return
end
local
tc
=
g
:
GetFirst
()
local
c
=
e
:
GetHandler
()
local
fid
=
c
:
GetFieldID
()
...
...
script/c2810642.lua
View file @
90ec3bc2
...
...
@@ -27,7 +27,7 @@ function c2810642.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
0
and
Duel
.
GetAttacker
():
GetControler
()
~=
tp
end
function
c2810642
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
49036338
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
return
c
:
IsCode
(
49036338
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c2810642
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
...
...
@@ -42,7 +42,7 @@ function c2810642.operation(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<
2
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c2810642
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
(
)
==
0
then
return
end
if
g
:
FilterCount
(
aux
.
nvfilter
,
nil
)
==
0
then
return
end
local
tc
=
g
:
GetFirst
()
local
c
=
e
:
GetHandler
()
local
fid
=
c
:
GetFieldID
()
...
...
script/c38814750.lua
View file @
90ec3bc2
...
...
@@ -28,7 +28,7 @@ function c38814750.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
0
and
ep
~=
tp
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainNegatable
(
ev
)
end
function
c38814750
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
49036338
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
return
c
:
IsCode
(
49036338
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c38814750
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
...
...
@@ -44,7 +44,7 @@ function c38814750.operation(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<
2
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c38814750
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
(
)
==
0
then
return
end
if
g
:
FilterCount
(
aux
.
nvfilter
,
nil
)
==
0
then
return
end
local
tc
=
g
:
GetFirst
()
local
c
=
e
:
GetHandler
()
local
fid
=
c
:
GetFieldID
()
...
...
script/c74203495.lua
View file @
90ec3bc2
...
...
@@ -25,13 +25,14 @@ function c74203495.splimit(e,se,sp,st)
return
se
:
IsHasType
(
EFFECT_TYPE_ACTIONS
)
end
function
c74203495
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
0
and
ep
~=
tp
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
Duel
.
IsChainNegatable
(
ev
)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
0
and
ep
~=
tp
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
Duel
.
IsChainNegatable
(
ev
)
end
function
c74203495
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
49036338
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
return
c
:
IsCode
(
49036338
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c74203495
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingMatchingCard
(
c74203495
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
2
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
)
...
...
@@ -44,7 +45,7 @@ function c74203495.operation(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<
2
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c74203495
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
(
)
==
0
then
return
end
if
g
:
FilterCount
(
aux
.
nvfilter
,
nil
)
==
0
then
return
end
local
tc
=
g
:
GetFirst
()
local
c
=
e
:
GetHandler
()
local
fid
=
c
:
GetFieldID
()
...
...
script/c75425043.lua
View file @
90ec3bc2
...
...
@@ -33,11 +33,13 @@ function c75425043.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
0
and
eg
:
IsExists
(
c75425043
.
cfilter
,
1
,
nil
,
1
-
tp
)
end
function
c75425043
.
spfilter1
(
c
,
e
,
tp
)
return
c
:
IsCode
(
49036338
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
and
Duel
.
IsExistingMatchingCard
(
c75425043
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
c
)
return
c
:
IsCode
(
49036338
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingMatchingCard
(
c75425043
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
c
)
end
function
c75425043
.
spfilter2
(
c
,
e
,
tp
)
return
c
:
IsCode
(
49036338
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
return
c
:
IsCode
(
49036338
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingMatchingCard
(
c75425043
.
thfilter0
,
tp
,
LOCATION_DECK
,
0
,
1
,
c
)
end
function
c75425043
.
thfilter0
(
c
)
return
c
:
IsSetCard
(
0xc1
)
and
not
c
:
IsCode
(
75425043
)
end
function
c75425043
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0xc1
)
and
not
c
:
IsCode
(
75425043
)
and
c
:
IsAbleToHand
()
...
...
@@ -53,7 +55,7 @@ function c75425043.operation(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<
2
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c75425043
.
spfilter2
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
(
)
==
0
then
return
end
if
g
:
FilterCount
(
aux
.
nvfilter
,
nil
)
==
0
then
return
end
local
tc
=
g
:
GetFirst
()
local
c
=
e
:
GetHandler
()
local
fid
=
c
:
GetFieldID
()
...
...
script/utility.lua
View file @
90ec3bc2
...
...
@@ -1266,3 +1266,7 @@ function Auxiliary.qlifilter(e,te)
return
false
end
end
--filter for necro_valley test
function
Auxiliary
.
nvfilter
(
c
)
return
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
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