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
db524cc7
Commit
db524cc7
authored
Oct 28, 2017
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
96b64de0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
16 deletions
+12
-16
c12152769.lua
c12152769.lua
+4
-5
c21496848.lua
c21496848.lua
+1
-0
c69402394.lua
c69402394.lua
+4
-6
c80764541.lua
c80764541.lua
+3
-5
No files found.
c12152769.lua
View file @
db524cc7
...
...
@@ -23,14 +23,13 @@ function c12152769.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c12152769
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
hg
=
Duel
.
GetFieldGroup
(
1
-
tp
,
LOCATION_HAND
,
0
)
if
hg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
1
-
tp
,
aux
.
Stringid
(
12152769
,
1
))
then
if
Duel
.
IsChainDisablable
(
0
)
and
hg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
1
-
tp
,
aux
.
Stringid
(
12152769
,
1
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
aux
.
Stringid
(
12152769
,
2
))
local
sg
=
hg
:
Select
(
1
-
tp
,
1
,
1
,
nil
)
Duel
.
SendtoHand
(
sg
,
tp
,
REASON_EFFECT
)
if
Duel
.
IsChainDisablable
(
0
)
then
Duel
.
NegateEffect
(
0
)
return
end
Duel
.
NegateEffect
(
0
)
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c12152769
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
...
...
c21496848.lua
View file @
db524cc7
...
...
@@ -23,6 +23,7 @@ function c21496848.operation(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
>
0
and
Duel
.
IsChainDisablable
(
0
)
and
Duel
.
SelectYesNo
(
1
-
tp
,
aux
.
Stringid
(
21496848
,
4
))
then
Duel
.
DiscardHand
(
1
-
tp
,
aux
.
TRUE
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
)
Duel
.
NegateEffect
(
0
)
return
end
local
ty
=
TYPE_MONSTER
...
...
c69402394.lua
View file @
db524cc7
...
...
@@ -22,14 +22,12 @@ function c69402394.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
PLAYER_ALL
,
2
)
end
function
c69402394
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
<
2
or
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
<
2
then
return
end
if
Duel
.
SelectYesNo
(
1
-
tp
,
aux
.
Stringid
(
69402394
,
0
))
then
if
Duel
.
IsChainDisablable
(
0
)
and
Duel
.
GetFieldGroupCount
(
1
-
tp
,
LOCATION_HAND
,
0
)
>
0
and
Duel
.
SelectYesNo
(
1
-
tp
,
aux
.
Stringid
(
69402394
,
0
))
then
Duel
.
DiscardHand
(
1
-
tp
,
aux
.
TRUE
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
,
nil
)
if
Duel
.
IsChainDisablable
(
0
)
then
Duel
.
NegateEffect
(
0
)
return
end
Duel
.
NegateEffect
(
0
)
end
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
<
2
or
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
<
2
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISCARD
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_HAND
,
0
,
2
,
2
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
HINTMSG_DISCARD
)
...
...
c80764541.lua
View file @
db524cc7
...
...
@@ -34,12 +34,10 @@ function c80764541.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c80764541
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
CheckLPCost
(
1
-
tp
,
1000
)
and
Duel
.
SelectYesNo
(
1
-
tp
,
aux
.
Stringid
(
80764541
,
1
))
then
if
Duel
.
IsChainDisablable
(
0
)
and
Duel
.
CheckLPCost
(
1
-
tp
,
1000
)
and
Duel
.
SelectYesNo
(
1
-
tp
,
aux
.
Stringid
(
80764541
,
1
))
then
Duel
.
PayLPCost
(
1
-
tp
,
1000
)
if
Duel
.
IsChainDisablable
(
0
)
then
Duel
.
NegateEffect
(
0
)
return
end
Duel
.
NegateEffect
(
0
)
end
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
...
...
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