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
97e53fe3
Commit
97e53fe3
authored
Jan 13, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
22334ab5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
10 deletions
+13
-10
c31706048.lua
c31706048.lua
+3
-2
c50005218.lua
c50005218.lua
+8
-7
c57769391.lua
c57769391.lua
+2
-1
No files found.
c31706048.lua
View file @
97e53fe3
...
...
@@ -11,11 +11,12 @@ function c31706048.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c31706048
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
5
)
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
5
)
and
Duel
.
GetDecktopGroup
(
tp
,
5
):
FilterCount
(
Card
.
IsAbleToHand
,
nil
)
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
0
,
LOCATION_DECK
)
end
function
c31706048
.
filter
(
c
)
return
(
c
:
IsSetCard
(
0x104
)
and
c
:
IsType
(
TYPE_MONSTER
))
or
c
:
IsSetCard
(
0xfe
)
return
(
c
:
IsSetCard
(
0x104
)
and
c
:
IsType
(
TYPE_MONSTER
))
or
c
:
IsSetCard
(
0xfe
)
and
c
:
IsAbleToHand
()
end
function
c31706048
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
5
)
then
return
end
...
...
c50005218.lua
View file @
97e53fe3
...
...
@@ -39,6 +39,9 @@ function c50005218.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
0
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g
,
1
,
0
,
0
)
end
function
c50005218
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x115
)
and
c
:
IsAbleToHand
()
end
function
c50005218
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
...
...
@@ -46,14 +49,12 @@ function c50005218.thop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
3
)
if
g
:
GetCount
()
>
0
then
if
g
:
IsExists
(
Card
.
IsSetCard
,
1
,
nil
,
0x115
)
then
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
50005218
,
2
))
then
if
g
:
IsExists
(
c50005218
.
thfilter
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
50005218
,
2
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
HINTMSG_ATOHAND
)
local
sg
=
g
:
FilterSelect
(
tp
,
Card
.
IsSetCard
,
1
,
1
,
nil
,
0x115
)
if
sg
:
GetFirst
():
IsAbleToHand
()
then
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
Duel
.
ShuffleHand
(
tp
)
end
local
sg
=
g
:
FilterSelect
(
tp
,
c50005218
.
thfilter
,
1
,
1
,
nil
)
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
Duel
.
ShuffleHand
(
tp
)
end
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
...
...
c57769391.lua
View file @
97e53fe3
...
...
@@ -17,7 +17,8 @@ function c57769391.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
end
function
c57769391
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
3
)
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
3
)
and
Duel
.
GetDecktopGroup
(
tp
,
3
):
FilterCount
(
Card
.
IsAbleToHand
,
nil
)
>
0
end
end
function
c57769391
.
filter
(
c
)
return
c
:
IsAbleToHand
()
and
c
:
IsSetCard
(
0x103
)
...
...
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