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
Ai
ygopro-222DIY-cards
Commits
7b5cfda1
Commit
7b5cfda1
authored
Mar 16, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ybb
parent
fc2a8213
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
expansions/script/c81014000.lua
expansions/script/c81014000.lua
+8
-6
No files found.
expansions/script/c81014000.lua
View file @
7b5cfda1
...
@@ -19,7 +19,7 @@ function cm.tstg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -19,7 +19,7 @@ function cm.tstg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_DECK
)
>
0
end
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_DECK
)
>
0
end
end
end
function
cm
.
sumfilter
(
c
)
function
cm
.
sumfilter
(
c
)
return
c
:
Is
Race
(
RACE_DRAGON
)
and
c
:
IsLevel
(
5
)
and
c
:
IsSummonable
(
true
,
nil
,
1
)
return
c
:
Is
Summonable
(
true
,
nil
)
and
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsLevelAbove
(
5
)
end
end
function
cm
.
tsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
tsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
aux
.
Stringid
(
m
,
3
))
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
aux
.
Stringid
(
m
,
3
))
...
@@ -28,13 +28,15 @@ function cm.tsop(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -28,13 +28,15 @@ function cm.tsop(e,tp,eg,ep,ev,re,r,rp,chk)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
tc
then
if
tc
then
Duel
.
SSet
(
tp
,
tc
,
1
-
tp
)
Duel
.
SSet
(
tp
,
tc
,
1
-
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
sumfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
)
if
Duel
.
IsExistingMatchingCard
(
cm
.
sumfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
if
g
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
0
))
then
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SUMMON
)
local
sc
=
g
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
sumfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
ShuffleHand
(
tp
)
if
sg
:
GetCount
()
>
0
then
Duel
.
Summon
(
tp
,
sc
,
true
,
nil
,
1
)
local
tc
=
sg
:
GetFirst
()
Duel
.
Summon
(
tp
,
tc
,
true
,
nil
)
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