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
90b593df
Commit
90b593df
authored
Aug 17, 2020
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 双天の調伏
parent
9a4109c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
11 deletions
+18
-11
c49158617.lua
c49158617.lua
+18
-11
No files found.
c49158617.lua
View file @
90b593df
...
@@ -37,20 +37,27 @@ function c49158617.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -37,20 +37,27 @@ function c49158617.activate(e,tp,eg,ep,ev,re,r,rp)
if
tg
:
GetCount
()
>
0
then
if
tg
:
GetCount
()
>
0
then
Duel
.
Destroy
(
tg
,
REASON_EFFECT
)
Duel
.
Destroy
(
tg
,
REASON_EFFECT
)
local
og
=
Duel
.
GetOperatedGroup
()
local
og
=
Duel
.
GetOperatedGroup
()
if
og
:
IsExists
(
c49158617
.
ffilter
,
1
,
nil
,
tp
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
49158617
,
2
))
then
if
og
:
IsExists
(
c49158617
.
ffilter
,
1
,
nil
,
tp
)
then
local
b1
=
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
local
b1
=
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
local
b2
=
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
local
b2
=
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
local
sel
=
0
local
off
=
1
if
b1
and
b2
then
local
ops
=
{}
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPTION
)
local
opval
=
{}
sel
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
49158617
,
0
),
aux
.
Stringid
(
49158617
,
1
))
+
1
if
b1
then
elseif
b1
then
ops
[
off
]
=
aux
.
Stringid
(
49158617
,
0
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPTION
)
opval
[
off
-
1
]
=
1
sel
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
49158617
,
0
))
+
1
off
=
off
+
1
elseif
b2
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPTION
)
sel
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
49158617
,
1
))
+
2
end
end
if
b2
then
ops
[
off
]
=
aux
.
Stringid
(
49158617
,
1
)
opval
[
off
-
1
]
=
2
off
=
off
+
1
end
ops
[
off
]
=
aux
.
Stringid
(
49158617
,
2
)
opval
[
off
-
1
]
=
3
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPTION
)
local
op
=
Duel
.
SelectOption
(
tp
,
table.unpack
(
ops
))
local
sel
=
opval
[
op
]
if
sel
==
1
then
if
sel
==
1
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
...
...
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