Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
Soulgamer
ygopro-222DIY-cards
Commits
a6540a23
Commit
a6540a23
authored
Apr 29, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fbk
parent
ad8e3c18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
expansions/script/c60151621.lua
expansions/script/c60151621.lua
+10
-6
No files found.
expansions/script/c60151621.lua
View file @
a6540a23
...
...
@@ -39,18 +39,22 @@ function c60151621.activate(e,tp,eg,ep,ev,re,r,rp)
local
rk
=
tc
:
GetOriginalRank
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
local
ct
=
0
if
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
then
ct
=
ct
+
1
end
if
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
then
ct
=
ct
+
1
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SELECT
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c60151621
.
pcfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
ct
,
nil
,
lv
,
rk
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c60151621
.
pcfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
2
,
nil
,
lv
,
rk
)
local
pc
=
g
:
GetFirst
()
while
pc
do
if
pc
:
IsAbleToHand
()
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60151621
,
0
))
then
if
pc
:
IsAbleToHand
()
and
(
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
))
then
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60151621
,
0
))
then
Duel
.
SendtoHand
(
pc
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
pc
)
else
Duel
.
MoveToField
(
pc
,
tp
,
tp
,
LOCATION_PZONE
,
POS_FACEUP
,
true
)
end
elseif
pc
:
IsAbleToHand
()
and
not
(
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
))
then
Duel
.
SendtoHand
(
pc
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
pc
)
else
Duel
.
MoveToField
(
pc
,
tp
,
tp
,
LOCATION_
S
ZONE
,
POS_FACEUP
,
true
)
Duel
.
MoveToField
(
pc
,
tp
,
tp
,
LOCATION_
P
ZONE
,
POS_FACEUP
,
true
)
end
pc
=
g
:
GetNext
()
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