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
6fddc765
Commit
6fddc765
authored
Nov 22, 2017
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Auto Push by Nanahira
parent
7d8d1851
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
expansions/script/c37564765.lua
expansions/script/c37564765.lua
+5
-5
expansions/script/c37564916.lua
expansions/script/c37564916.lua
+1
-1
No files found.
expansions/script/c37564765.lua
View file @
6fddc765
...
...
@@ -155,7 +155,7 @@ if Group.SelectUnselect then
local
ct
=
sg
:
GetCount
()
local
ag
=
g
:
Filter
(
cm
.
CheckGroupRecursive
,
sg
,
sg
,
g
,
f
,
min
,
max
,
ext_params
)
while
ct
<
max
and
ag
:
GetCount
()
>
0
do
local
finish
=
(
ct
>=
min
and
and
ct
<=
max
and
f
(
sg
,
...
))
local
finish
=
(
ct
>=
min
and
ct
<=
max
and
f
(
sg
,
...
))
local
seg
=
sg
:
Clone
()
local
dmin
=
min
-
cg
:
GetCount
()
local
dmax
=
math.min
(
max
-
cg
:
GetCount
(),
g
:
GetCount
())
...
...
@@ -349,7 +349,7 @@ function cm.XyzProcedureCustomCondition(func,gf,minct,maxct,ext_params)
mg
=
Duel
.
GetMatchingGroup
(
cm
.
XyzProcedureCustomFilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
c
,
func
,
ext_params
)
end
local
sg
=
Group
.
CreateGroup
()
local
ce
=
{
Duel
.
IsPlayerAffectedByEffect
(
EFFECT_MUST_BE_XMATERIAL
)}
local
ce
=
{
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_MUST_BE_XMATERIAL
)}
for
_
,
te
in
ipairs
(
ce
)
do
local
tc
=
te
:
GetHandler
()
if
not
mg
:
IsContains
(
tc
)
then
return
false
end
...
...
@@ -376,7 +376,7 @@ function cm.XyzProcedureCustomTarget(func,gf,minct,maxct,ext_params)
minc
=
math.max
(
minc
,
min
)
maxc
=
math.min
(
maxc
,
max
)
end
local
ce
=
{
Duel
.
IsPlayerAffectedByEffect
(
EFFECT_MUST_BE_XMATERIAL
)}
local
ce
=
{
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_MUST_BE_XMATERIAL
)}
for
_
,
te
in
ipairs
(
ce
)
do
local
tc
=
te
:
GetHandler
()
sg
:
AddCard
(
tc
)
...
...
@@ -1762,7 +1762,7 @@ return function(e,g,gc,chkfnf)
if
not
cm
.
FusionFilter_3L
(
gc
,
fc
,
mf
,
sub
)
then
return
false
end
sg
:
AddCard
(
gc
)
end
local
ce
=
{
Duel
.
IsPlayerAffectedByEffect
(
EFFECT_MUST_BE_FMATERIAL
)}
local
ce
=
{
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_MUST_BE_FMATERIAL
)}
for
_
,
te
in
ipairs
(
ce
)
do
local
tc
=
te
:
GetHandler
()
if
not
mg
:
IsContains
(
tc
)
then
return
false
end
...
...
@@ -1782,7 +1782,7 @@ return function(e,tp,eg,ep,ev,re,r,rp,gc,chkfnf)
if
gc
then
sg
:
AddCard
(
gc
)
end
local
ce
=
{
Duel
.
IsPlayerAffectedByEffect
(
EFFECT_MUST_BE_FMATERIAL
)}
local
ce
=
{
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_MUST_BE_FMATERIAL
)}
for
_
,
te
in
ipairs
(
ce
)
do
local
tc
=
te
:
GetHandler
()
sg
:
AddCard
(
tc
)
...
...
expansions/script/c37564916.lua
View file @
6fddc765
...
...
@@ -53,8 +53,8 @@ function cm.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
function
cm
.
spop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
true
,
true
)
then
return
end
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
true
,
true
)
then
return
end
local
mg
=
Duel
.
GetRitualMaterial
(
tp
):
Filter
(
cm
.
matfilter
,
c
,
c
)
if
c
.
mat_filter
then
mg
=
mg
:
Filter
(
c
.
mat_filter
,
nil
)
...
...
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