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
85c250e1
Commit
85c250e1
authored
Jun 05, 2017
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
c836c5d7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
16 deletions
+27
-16
c1561110.lua
c1561110.lua
+6
-3
c29455728.lua
c29455728.lua
+8
-5
c39024589.lua
c39024589.lua
+4
-2
c65172015.lua
c65172015.lua
+8
-5
c84388461.lua
c84388461.lua
+1
-1
No files found.
c1561110.lua
View file @
85c250e1
...
...
@@ -123,9 +123,12 @@ end
function
c1561110
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
local
g
=
Duel
.
GetMatchingGroup
(
c1561110
.
spfilter
,
tp
,
LOCATION_REMOVED
,
0
,
nil
,
e
,
tp
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
g
:
GetClassCount
(
Card
.
GetCode
)
>
2
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
end
if
chk
==
0
then
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
e
:
GetHandler
():
GetSequence
()
<
5
then
ft
=
ft
+
1
end
return
ft
>
2
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
g
:
GetClassCount
(
Card
.
GetCode
)
>
2
end
local
sg
=
Group
.
CreateGroup
()
for
i
=
1
,
3
do
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
...
...
c29455728.lua
View file @
85c250e1
...
...
@@ -26,11 +26,14 @@ function c29455728.mgfilter(c,e,tp,fusc,mg)
end
function
c29455728
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
e
:
GetHandler
():
GetMaterial
()
local
ct
=
g
:
GetCount
()
if
chk
==
0
then
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
ct
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
+
1
>=
ct
and
bit
.
band
(
e
:
GetHandler
():
GetSummonType
(),
SUMMON_TYPE_FUSION
)
==
SUMMON_TYPE_FUSION
and
g
:
FilterCount
(
c29455728
.
mgfilter
,
nil
,
e
,
tp
,
e
:
GetHandler
(),
g
)
==
ct
end
if
chk
==
0
then
local
ct
=
g
:
GetCount
()
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
e
:
GetHandler
():
GetSequence
()
<
5
then
ft
=
ft
+
1
end
return
ct
>
0
and
ft
>=
ct
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
bit
.
band
(
e
:
GetHandler
():
GetSummonType
(),
SUMMON_TYPE_FUSION
)
==
SUMMON_TYPE_FUSION
and
g
:
FilterCount
(
c29455728
.
mgfilter
,
nil
,
e
,
tp
,
e
:
GetHandler
(),
g
)
==
ct
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
c29455728
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c39024589.lua
View file @
85c250e1
...
...
@@ -63,8 +63,10 @@ function c39024589.filter(c,e,tp)
end
function
c39024589
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
loc
=
0
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
loc
=
loc
+
LOCATION_HAND
end
if
Duel
.
GetLocationCountFromEx
(
tp
)
>
0
then
loc
=
loc
+
LOCATION_EXTRA
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
e
:
GetHandler
():
GetSequence
()
<
5
then
ft
=
ft
+
1
end
if
ft
>
0
then
loc
=
loc
+
LOCATION_HAND
end
if
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
e
:
GetHandler
())
>
0
then
loc
=
loc
+
LOCATION_EXTRA
end
if
chk
==
0
then
return
loc
~=
0
and
Duel
.
IsExistingMatchingCard
(
c39024589
.
filter
,
tp
,
loc
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
loc
)
end
...
...
c65172015.lua
View file @
85c250e1
...
...
@@ -102,20 +102,23 @@ function c65172015.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c65172015
.
spfilter2
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
1561110
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingTarget
(
c65172015
.
spfilter3
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
IsExistingTarget
(
c65172015
.
spfilter3
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
c
,
e
,
tp
)
end
function
c65172015
.
spfilter3
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
91998119
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c65172015
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
Duel
.
IsExistingTarget
(
c65172015
.
spfilter2
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
end
if
chk
==
0
then
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
e
:
GetHandler
():
GetSequence
()
<
5
then
ft
=
ft
+
1
end
return
ft
>
1
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
Duel
.
IsExistingTarget
(
c65172015
.
spfilter2
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
c65172015
.
spfilter2
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
c65172015
.
spfilter3
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
c65172015
.
spfilter3
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
g1
:
GetFirst
()
,
e
,
tp
)
g1
:
Merge
(
g2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g1
,
2
,
tp
,
LOCATION_REMOVED
)
end
...
...
c84388461.lua
View file @
85c250e1
...
...
@@ -56,7 +56,7 @@ function c84388461.target(e,tp,eg,ep,ev,re,r,rp,chk)
local
mg
=
Duel
.
GetRitualMaterial
(
tp
)
mg
:
RemoveCard
(
e
:
GetHandler
())
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
e
:
GetHandler
():
IsLocation
(
LOCATION_MZONE
)
then
ft
=
ft
+
1
end
if
e
:
GetHandler
():
IsLocation
(
LOCATION_MZONE
)
and
e
:
GetHandler
():
GetSequence
()
<
5
then
ft
=
ft
+
1
end
return
Duel
.
IsExistingMatchingCard
(
c84388461
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
,
mg
,
ft
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
...
...
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