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
47557104
Commit
47557104
authored
Aug 18, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
E
parent
deef5c45
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
expansions/script/c51414080.lua
expansions/script/c51414080.lua
+6
-3
No files found.
expansions/script/c51414080.lua
View file @
47557104
...
...
@@ -32,7 +32,7 @@ function cm.recop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
rg
=
Duel
.
SelectReleaseGroupEx
(
tp
,
cm
.
costfilter
,
1
,
99
,
nil
)
local
ct
=
Duel
.
Release
(
rg
,
REASON_EFFECT
)
local
rec
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
local
rec
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
nil
,
TYPE_SPELL
)
if
ct
>
0
then
Duel
.
Recover
(
tp
,
ct
*
rec
*
800
,
REASON_EFFECT
)
end
...
...
@@ -40,6 +40,9 @@ end
function
cm
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0xde3
,
0xde6
)
and
c
:
IsAbleToHand
()
end
function
cm
.
tgfilter
(
c
)
return
c
:
IsSetCard
(
0xde3
,
0xde6
)
and
c
:
IsAbleToGrave
()
end
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
a1
=
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
local
a2
=
Duel
.
IsExistingMatchingCard
(
cm
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
...
...
@@ -58,7 +61,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local
op
=-
1
if
g1
:
GetCount
()
>
0
and
g2
:
GetCount
()
>
0
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
m
,
0
),
aux
.
Stringid
(
m
,
1
))
elseif
g1
:
GetCount
()
>
0
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
m
,
0
))
elseif
g2
:
GetCount
()
>
0
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
m
,
0
))
+
1
elseif
g2
:
GetCount
()
>
0
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
m
,
1
))
+
1
else
return
end
if
op
==
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
...
...
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