Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
P
pre-release-database-cdb
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
MyCard
pre-release-database-cdb
Commits
ba5d5888
Commit
ba5d5888
authored
Sep 13, 2024
by
八宫一月
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c100227003.lua
parent
dd8a9892
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
script/c100227003.lua
script/c100227003.lua
+9
-7
No files found.
script/c100227003.lua
View file @
ba5d5888
...
...
@@ -32,25 +32,27 @@ function s.ctcon(e,tp,eg,ep,ev,re,r,rp)
local
ph
=
Duel
.
GetCurrentPhase
()
return
ph
==
PHASE_MAIN1
or
ph
==
PHASE_MAIN2
end
function
s
.
costfilter
(
c
)
return
c
:
IsSetCard
(
0x35
)
and
c
:
IsType
(
TYPE_MONSTER
)
function
s
.
costfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0x35
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
Duel
.
GetMZoneCount
(
tp
,
c
,
tp
,
LOCATION_REASON_CONTROL
)
>
0
and
Duel
.
IsExistingTarget
(
s
.
ntrfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
c
)
end
function
s
.
ntrfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsControlerCanBeChanged
(
true
)
end
function
s
.
cttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroupEx
(
tp
,
s
.
costfilter
,
1
,
REASON_EFFECT
,
false
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsControlerCanBeChanged
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
true
)
end
if
chk
==
0
then
return
Duel
.
CheckReleaseGroupEx
(
tp
,
s
.
costfilter
,
1
,
REASON_EFFECT
,
false
,
nil
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RELEASE
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_CONTROL
,
nil
,
1
,
0
,
0
)
end
function
s
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
rg
=
Duel
.
GetReleaseGroup
(
tp
,
false
,
REASON_EFFECT
):
Filter
(
s
.
costfilter
,
nil
)
local
og
=
Duel
.
GetMatchingGroup
(
Card
.
IsControlerCanBeChanged
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
true
)
local
rg
=
Duel
.
GetReleaseGroup
(
tp
,
false
,
REASON_EFFECT
):
Filter
(
s
.
costfilter
,
nil
,
tp
)
local
og
=
Duel
.
GetMatchingGroup
(
s
.
ntrfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
sg
=
rg
:
Select
(
tp
,
1
,
og
:
GetCount
(),
nil
)
local
ct
=
Duel
.
Release
(
sg
,
REASON_EFFECT
)
if
ct
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONTROL
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsControlerCanBeChanged
,
tp
,
0
,
LOCATION_MZONE
,
ct
,
ct
,
nil
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
ntrfilter
,
tp
,
0
,
LOCATION_MZONE
,
ct
,
ct
,
nil
)
Duel
.
HintSelection
(
tg
)
if
not
Duel
.
GetControl
(
tg
,
tp
)
then
return
end
local
cg
=
tg
:
Filter
(
Card
.
IsControler
,
nil
,
tp
)
...
...
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