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
5d7079a0
Commit
5d7079a0
authored
Sep 22, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
98f76284
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
25 deletions
+40
-25
c11834972.lua
c11834972.lua
+13
-7
c42256406.lua
c42256406.lua
+9
-6
c83531441.lua
c83531441.lua
+9
-6
c85087012.lua
c85087012.lua
+9
-6
No files found.
c11834972.lua
View file @
5d7079a0
...
...
@@ -19,13 +19,19 @@ function c11834972.condition(e,tp,eg,ep,ev,re,r,rp)
end
function
c11834972
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeckAsCost
(
tp
,
1
)
end
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
if
ct
>
5
then
ct
=
5
end
local
t
=
{}
for
i
=
1
,
ct
do
t
[
i
]
=
i
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
11834972
,
1
))
local
ac
=
Duel
.
AnnounceNumber
(
tp
,
table.unpack
(
t
))
Duel
.
DiscardDeck
(
tp
,
ac
,
REASON_COST
)
local
ct
=
{}
for
i
=
5
,
1
,
-
1
do
if
Duel
.
IsPlayerCanDiscardDeckAsCost
(
tp
,
i
)
then
table.insert
(
ct
,
i
)
end
end
if
#
ct
==
1
then
Duel
.
DiscardDeck
(
tp
,
ct
[
1
],
REASON_COST
)
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
11834972
,
1
))
local
ac
=
Duel
.
AnnounceNumber
(
tp
,
table.unpack
(
ct
))
Duel
.
DiscardDeck
(
tp
,
ac
,
REASON_COST
)
end
local
g
=
Duel
.
GetOperatedGroup
()
e
:
SetLabel
(
g
:
FilterCount
(
Card
.
IsSetCard
,
nil
,
0x39
)
*
200
)
end
...
...
c42256406.lua
View file @
5d7079a0
...
...
@@ -61,15 +61,18 @@ function c42256406.cbop(e,tp,eg,ep,ev,re,r,rp)
end
function
c42256406
.
defcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeckAsCost
(
tp
,
1
)
end
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
if
ct
==
1
then
Duel
.
DiscardDeck
(
tp
,
1
,
REASON_COST
)
local
ct
=
{}
for
i
=
3
,
1
,
-
1
do
if
Duel
.
IsPlayerCanDiscardDeckAsCost
(
tp
,
i
)
then
table.insert
(
ct
,
i
)
end
end
if
#
ct
==
1
then
Duel
.
DiscardDeck
(
tp
,
ct
[
1
],
REASON_COST
)
e
:
SetLabel
(
1
)
else
local
ac
=
0
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
42256406
,
3
))
if
ct
==
2
then
ac
=
Duel
.
AnnounceNumber
(
tp
,
1
,
2
)
else
ac
=
Duel
.
AnnounceNumber
(
tp
,
1
,
2
,
3
)
end
local
ac
=
Duel
.
AnnounceNumber
(
tp
,
table.unpack
(
ct
))
Duel
.
DiscardDeck
(
tp
,
ac
,
REASON_COST
)
e
:
SetLabel
(
ac
)
end
...
...
c83531441.lua
View file @
5d7079a0
...
...
@@ -36,15 +36,18 @@ end
function
c83531441
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeckAsCost
(
tp
,
1
)
and
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
if
ct
==
1
then
Duel
.
DiscardDeck
(
tp
,
1
,
REASON_COST
)
local
ct
=
{}
for
i
=
3
,
1
,
-
1
do
if
Duel
.
IsPlayerCanDiscardDeckAsCost
(
tp
,
i
)
then
table.insert
(
ct
,
i
)
end
end
if
#
ct
==
1
then
Duel
.
DiscardDeck
(
tp
,
ct
[
1
],
REASON_COST
)
e
:
SetLabel
(
1
)
else
local
ac
=
0
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
83531441
,
2
))
if
ct
==
2
then
ac
=
Duel
.
AnnounceNumber
(
tp
,
2
,
1
)
else
ac
=
Duel
.
AnnounceNumber
(
tp
,
3
,
2
,
1
)
end
local
ac
=
Duel
.
AnnounceNumber
(
tp
,
table.unpack
(
ct
))
Duel
.
DiscardDeck
(
tp
,
ac
,
REASON_COST
)
e
:
SetLabel
(
ac
)
end
...
...
c85087012.lua
View file @
5d7079a0
...
...
@@ -23,15 +23,18 @@ function c85087012.initial_effect(c)
end
function
c85087012
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeckAsCost
(
tp
,
1
)
end
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
if
ct
==
1
then
Duel
.
DiscardDeck
(
tp
,
1
,
REASON_COST
)
local
ct
=
{}
for
i
=
3
,
1
,
-
1
do
if
Duel
.
IsPlayerCanDiscardDeckAsCost
(
tp
,
i
)
then
table.insert
(
ct
,
i
)
end
end
if
#
ct
==
1
then
Duel
.
DiscardDeck
(
tp
,
ct
[
1
],
REASON_COST
)
e
:
SetLabel
(
1
)
else
local
ac
=
0
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
85087012
,
2
))
if
ct
==
2
then
ac
=
Duel
.
AnnounceNumber
(
tp
,
2
,
1
)
else
ac
=
Duel
.
AnnounceNumber
(
tp
,
3
,
2
,
1
)
end
local
ac
=
Duel
.
AnnounceNumber
(
tp
,
table.unpack
(
ct
))
Duel
.
DiscardDeck
(
tp
,
ac
,
REASON_COST
)
e
:
SetLabel
(
ac
)
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