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
Reinen
ygopro-scripts
Commits
c072ab62
Commit
c072ab62
authored
Jan 22, 2020
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use Duel.SelectOption
parent
fef9f1d9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
26 deletions
+13
-26
c15978426.lua
c15978426.lua
+1
-1
c60470713.lua
c60470713.lua
+12
-25
No files found.
c15978426.lua
View file @
c072ab62
...
@@ -31,7 +31,7 @@ function c15978426.tgop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -31,7 +31,7 @@ function c15978426.tgop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c15978426
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tohand
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c15978426
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tohand
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
not
tc
then
return
end
if
not
tc
then
return
end
if
tohand
and
tc
:
IsAbleToHand
()
and
(
not
tc
:
IsAbleToGrave
()
or
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
15978426
,
1
))
)
then
if
tohand
and
tc
:
IsAbleToHand
()
and
(
not
tc
:
IsAbleToGrave
()
or
Duel
.
Select
Option
(
tp
,
1191
,
1190
)
==
1
)
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
else
else
...
...
c60470713.lua
View file @
c072ab62
...
@@ -37,35 +37,22 @@ end
...
@@ -37,35 +37,22 @@ end
function
c60470713
.
mfilter
(
c
)
function
c60470713
.
mfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x71
)
and
c
:
IsRace
(
RACE_FAIRY
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x71
)
and
c
:
IsRace
(
RACE_FAIRY
)
end
end
function
c60470713
.
filter1
(
c
)
function
c60470713
.
filter
(
c
,
e
,
tp
,
chk
)
return
c
:
IsSetCard
(
0x71
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
function
c60470713
.
filter2
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x71
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsSetCard
(
0x71
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
(
c
:
IsAbleToHand
()
or
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_ATTACK
))
and
(
c
:
IsAbleToHand
()
or
c
hk
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_ATTACK
))
end
end
function
c60470713
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60470713
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
b
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c60470713
.
mfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
local
b
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c60470713
.
mfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
if
not
b
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c60470713
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
,
b
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c60470713
.
filter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
if
g
:
GetCount
()
>
0
then
if
tc
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
if
b
and
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_ATTACK
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
and
(
not
tc
:
IsAbleToHand
()
or
Duel
.
SelectOption
(
tp
,
1190
,
1152
)
==
1
)
then
end
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_ATTACK
)
else
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c60470713
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
local
tc
=
g
:
GetFirst
()
if
tc
then
if
not
tc
:
IsAbleToHand
()
or
(
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_ATTACK
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60470713
,
1
)))
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_ATTACK
)
else
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
end
end
end
end
end
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