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
List
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
八宫一月
ygopro-scripts
Commits
71bd7441
Commit
71bd7441
authored
Nov 23, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use aux.dncheck
parent
a78a038b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
23 deletions
+8
-23
c35906693.lua
c35906693.lua
+1
-4
c56337500.lua
c56337500.lua
+2
-5
c69394324.lua
c69394324.lua
+2
-5
c74431740.lua
c74431740.lua
+1
-4
c856784.lua
c856784.lua
+2
-5
No files found.
c35906693.lua
View file @
71bd7441
...
...
@@ -62,9 +62,6 @@ function c35906693.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SelectTarget
(
tp
,
c35906693
.
tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
)
end
function
c35906693
.
eqcheck
(
g
)
return
g
:
GetClassCount
(
Card
.
GetCode
)
==#
g
end
function
c35906693
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
local
c
=
e
:
GetHandler
()
...
...
@@ -72,7 +69,7 @@ function c35906693.eqop(e,tp,eg,ep,ev,re,r,rp)
if
ft
<=
0
or
tc
:
IsFacedown
()
or
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
GetMatchingGroup
(
c35906693
.
eqfilter
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
,
0
,
nil
,
tp
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
c35906693
.
eq
check
,
false
,
1
,
ft
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
aux
.
dn
check
,
false
,
1
,
ft
)
local
ec
=
sg
:
GetFirst
()
while
ec
do
Duel
.
Equip
(
tp
,
ec
,
tc
,
true
,
true
)
...
...
c56337500.lua
View file @
71bd7441
...
...
@@ -77,14 +77,11 @@ end
function
c56337500
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsRace
(
RACE_CYBERSE
)
and
c
:
IsLevel
(
4
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c56337500
.
spcheck
(
g
)
return
g
:
GetClassCount
(
Card
.
GetCode
)
==#
g
end
function
c56337500
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<
2
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
return
false
end
local
g
=
Duel
.
GetMatchingGroup
(
c56337500
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
return
g
:
CheckSubGroup
(
c56337500
.
sp
check
,
2
,
2
)
return
g
:
CheckSubGroup
(
aux
.
dn
check
,
2
,
2
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
2
,
tp
,
LOCATION_DECK
)
end
...
...
@@ -92,7 +89,7 @@ function c56337500.spop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<
2
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
c56337500
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
c56337500
.
sp
check
,
false
,
2
,
2
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
aux
.
dn
check
,
false
,
2
,
2
)
if
sg
then
local
tc
=
sg
:
GetFirst
()
while
tc
do
...
...
c69394324.lua
View file @
71bd7441
...
...
@@ -72,17 +72,14 @@ function c69394324.spfilter(c,e,tp)
return
c
:
IsSetCard
(
0xc008
)
and
c
:
IsLevelBelow
(
9
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsCanBeEffectTarget
(
e
)
end
function
c69394324
.
spcheck
(
g
)
return
g
:
GetClassCount
(
Card
.
GetCode
)
==#
g
end
function
c69394324
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c69394324
.
spfilter
(
chkc
,
e
,
tp
)
end
local
g
=
Duel
.
GetMatchingGroup
(
c69394324
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
if
chk
==
0
then
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>=
3
and
g
:
CheckSubGroup
(
c69394324
.
sp
check
,
3
,
3
)
end
and
g
:
CheckSubGroup
(
aux
.
dn
check
,
3
,
3
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
c69394324
.
sp
check
,
false
,
3
,
3
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
aux
.
dn
check
,
false
,
3
,
3
)
Duel
.
SetTargetCard
(
sg
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
sg
,
3
,
0
,
0
)
end
...
...
c74431740.lua
View file @
71bd7441
...
...
@@ -62,15 +62,12 @@ function c74431740.tdfilter(c,e)
return
not
c
:
IsCode
(
74431740
)
and
(
aux
.
IsCodeListed
(
c
,
80280737
)
or
c
:
IsCode
(
80280737
))
and
c
:
IsAbleToDeck
()
and
(
not
e
or
c
:
IsCanBeEffectTarget
(
e
))
end
function
c74431740
.
tdcheck
(
g
)
return
g
:
GetClassCount
(
Card
.
GetCode
)
==#
g
end
function
c74431740
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c74431740
.
tdfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c74431740
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
GetMatchingGroup
(
c74431740
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
e
:
GetHandler
(),
e
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
c74431740
.
td
check
,
false
,
1
,
#
g
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
aux
.
dn
check
,
false
,
1
,
#
g
)
Duel
.
SetTargetCard
(
sg
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
sg
,
#
sg
,
0
,
0
)
end
...
...
c856784.lua
View file @
71bd7441
...
...
@@ -17,14 +17,11 @@ function c856784.condition(e,tp,eg,ep,ev,re,r,rp)
local
tg
=
g
:
GetMaxGroup
(
Card
.
GetAttack
)
return
tg
:
IsExists
(
Card
.
IsControler
,
1
,
nil
,
1
-
tp
)
and
Duel
.
GetLP
(
tp
)
<
Duel
.
GetLP
(
1
-
tp
)
end
function
c856784
.
check
(
g
)
return
g
:
GetClassCount
(
Card
.
GetCode
)
==#
g
end
function
c856784
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
not
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
then
return
false
end
local
g
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_DECK
,
0
,
nil
)
return
g
:
CheckSubGroup
(
c856784
.
check
,
3
,
3
)
return
g
:
CheckSubGroup
(
aux
.
dn
check
,
3
,
3
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
...
...
@@ -33,7 +30,7 @@ function c856784.activate(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
g
:
GetCount
()
>=
3
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
c856784
.
check
,
false
,
3
,
3
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
aux
.
dn
check
,
false
,
3
,
3
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
if
Duel
.
ShuffleDeck
(
tp
)
~=
0
then
for
i
=
1
,
3
do
...
...
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