Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
no81cards
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
Nemo Ma
no81cards
Commits
2c78ce01
Commit
2c78ce01
authored
Nov 03, 2024
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c11451968.lua
parent
85ec4f05
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
2 deletions
+44
-2
expansions/script/c11451968.lua
expansions/script/c11451968.lua
+44
-2
No files found.
expansions/script/c11451968.lua
View file @
2c78ce01
...
...
@@ -11,6 +11,15 @@ function cm.initial_effect(c)
e1
:
SetTarget
(
cm
.
tg
)
e1
:
SetOperation
(
cm
.
op
)
c
:
RegisterEffect
(
e1
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_ACTIVATE_COST
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetLabelObject
(
e1
)
e3
:
SetTargetRange
(
1
,
1
)
e3
:
SetTarget
(
cm
.
actarget
)
e3
:
SetOperation
(
cm
.
costop
)
Duel
.
RegisterEffect
(
e3
,
0
)
--change effect
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
...
...
@@ -26,14 +35,47 @@ end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
if
not
(
c
:
IsLocation
(
LOCATION_SZONE
)
and
c
:
IsFacedown
())
then
return
end
local
ct
=
Duel
.
GetTurnCount
()
-
c
:
GetTurnID
()
if
not
(
c
:
IsLocation
(
LOCATION_SZONE
)
and
c
:
IsFacedown
())
then
ct
=
1
end
local
eset
=
{
c
:
IsHasEffect
(
EFFECT_TRAP_ACT_IN_SET_TURN
)}
return
ct
+#
eset
>
1
end
end
function
cm
.
actarget
(
e
,
te
,
tp
)
return
te
:
GetHandler
()
==
e
:
GetHandler
()
and
te
==
e
:
GetLabelObject
()
end
function
cm
.
costop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
ct
=
Duel
.
GetTurnCount
()
-
c
:
GetTurnID
()
if
not
(
c
:
IsLocation
(
LOCATION_SZONE
)
and
c
:
IsFacedown
())
then
ct
=
1
end
local
eset
=
{
c
:
IsHasEffect
(
EFFECT_TRAP_ACT_IN_SET_TURN
)}
if
ct
<
2
then
eset
[
1
]:
UseCountLimit
(
tp
,
1
)
end
if
ct
==
1
then
local
tab
=
cm
[
flag
]
local
options
=
{}
for
_
,
te
in
ipairs
(
eset
)
do
table.insert
(
options
,
te
:
GetDescription
())
end
local
op
=
Duel
.
SelectOption
(
tp
,
table.unpack
(
options
))
eset
[
op
+
1
]:
UseCountLimit
(
tp
,
1
)
end
if
ct
==
0
then
Debug
.
Message
(
"请依次选择两个「在盖放的回合发动」效果。"
)
local
tab
=
cm
[
flag
]
local
options
=
{}
for
_
,
te
in
ipairs
(
eset
)
do
table.insert
(
options
,
te
:
GetDescription
())
end
local
op
=
Duel
.
SelectOption
(
tp
,
table.unpack
(
options
))
eset
[
op
+
1
]:
UseCountLimit
(
tp
,
1
)
table.remove
(
eset
,
op
+
1
)
options
=
{}
for
_
,
te
in
ipairs
(
eset
)
do
table.insert
(
options
,
te
:
GetDescription
())
end
op
=
Duel
.
SelectOption
(
tp
,
table.unpack
(
options
))
eset
[
op
+
1
]:
UseCountLimit
(
tp
,
1
)
Debug
.
Message
(
"选择完毕。"
)
end
end
function
cm
.
filter
(
c
)
return
c
:
IsCode
(
m
-
5
)
and
c
:
CheckActivateEffect
(
false
,
false
,
false
)
~=
nil
...
...
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