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
d662c601
Commit
d662c601
authored
Aug 03, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndyd
parent
31796ebe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
expansions/script/c21520221.lua
expansions/script/c21520221.lua
+5
-3
No files found.
expansions/script/c21520221.lua
View file @
d662c601
...
...
@@ -119,15 +119,17 @@ function c21520221.igop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmDecktop
(
tp
,
dcount
-
seq
)
local
dg
=
Duel
.
GetDecktopGroup
(
tp
,
dcount
-
seq
)
local
tdg
=
dg
:
Filter
(
Card
.
IsSetCard
,
nil
,
0x491
)
dg
:
Sub
(
tdg
)
if
tdg
and
tdg
:
GetCount
()
~=
0
then
dg
:
Sub
(
tdg
)
end
if
dg
:
GetCount
()
>
0
and
not
Duel
.
IsExistingMatchingCard
(
c21520221
.
effectfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
then
Duel
.
SetLP
(
tp
,
Duel
.
GetLP
(
tp
)
-
dg
:
GetCount
()
*
600
)
end
if
spcard
:
IsAbleToHand
()
then
Duel
.
DisableShuffleCheck
()
Duel
.
SendtoHand
(
spcard
,
nil
,
REASON_EFFECT
)
Duel
.
DiscardDeck
(
tp
,
dcount
-
seq
-
1
,
REASON_EFFECT
+
REASON_REVEAL
)
-- Duel.DiscardDeck(tp,dcount-seq-1,REASON_EFFECT+REASON_REVEAL)
Duel
.
Remove
(
dg
,
POS_FACEDOWN
,
REASON_EFFECT
+
REASON_REVEAL
)
Duel
.
ConfirmCards
(
1
-
tp
,
spcard
)
Duel
.
ShuffleHand
(
tp
)
else
Duel
.
DiscardDeck
(
tp
,
dcount
-
seq
,
REASON_EFFECT
+
REASON_REVEAL
)
end
-- else Duel.DiscardDeck(tp,dcount-seq,REASON_EFFECT+REASON_REVEAL) end
else
Duel
.
Remove
(
dg
,
POS_FACEDOWN
,
REASON_EFFECT
+
REASON_REVEAL
)
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