Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-THC-cards
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
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
HiiragiGuardians
ygopro-THC-cards
Commits
f343ba41
Commit
f343ba41
authored
Apr 27, 2024
by
GuGu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c10289.lua 1效果重写
parent
837e22ff
Pipeline
#26728
passed with stage
in 7 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
script/c10289.lua
script/c10289.lua
+11
-10
No files found.
script/c10289.lua
View file @
f343ba41
...
@@ -10,13 +10,13 @@ function c10289.initial_effect(c)
...
@@ -10,13 +10,13 @@ function c10289.initial_effect(c)
e2
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e2
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_
TO_GRAVE
)
e2
:
SetCode
(
EVENT_
CUSTOM
+
10289
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCountLimit
(
1
,
10289
)
e2
:
SetCountLimit
(
1
,
10289
)
e2
:
SetCondition
(
c10289
.
con2
)
e2
:
SetTarget
(
c10289
.
tg2
)
e2
:
SetTarget
(
c10289
.
tg2
)
e2
:
SetOperation
(
c10289
.
op2
)
e2
:
SetOperation
(
c10289
.
op2
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
aux
.
RegisterMergedDelayedEvent
(
c
,
10289
,
EVENT_TO_GRAVE
)
--
--
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e3
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
...
@@ -41,18 +41,15 @@ function c10289.initial_effect(c)
...
@@ -41,18 +41,15 @@ function c10289.initial_effect(c)
end
end
--
--
function
c10289
.
cfilter2
(
c
,
tp
)
function
c10289
.
cfilter2
(
c
,
tp
)
return
c
:
IsType
(
TYPE_SPELL
)
and
c
:
IsType
(
TYPE_CONTINUOUS
)
and
c
:
IsControler
(
tp
)
return
c
:
IsType
(
TYPE_SPELL
)
and
c
:
IsType
(
TYPE_CONTINUOUS
)
and
c
:
IsControler
(
tp
)
and
c
:
IsSetCard
(
0x1014
)
end
and
Duel
.
IsExistingMatchingCard
(
c10289
.
tfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
:
GetCode
())
function
c10289
.
con2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c10289
.
cfilter2
,
1
,
nil
,
tp
)
end
end
--
--
function
c10289
.
tfilter2
(
c
,
code
)
function
c10289
.
tfilter2
(
c
,
code
)
return
c
:
IsAbleToHand
()
and
c
:
IsCode
(
code
)
return
c
:
IsAbleToHand
()
and
c
:
IsCode
(
code
)
end
end
function
c10289
.
tg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c10289
.
tg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
GetCount
()
==
1
and
eg
:
IsExists
(
c10289
.
cfilter2
,
1
,
nil
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
c10289
.
tfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
eg
:
GetFirst
():
GetCode
())
end
if
chk
==
0
then
return
eg
:
IsExists
(
c10289
.
cfilter2
,
1
,
nil
,
tp
)
end
Duel
.
SetTargetCard
(
eg
:
GetFirst
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
--
--
...
@@ -61,8 +58,12 @@ function c10289.ofilter2(c,code)
...
@@ -61,8 +58,12 @@ function c10289.ofilter2(c,code)
end
end
function
c10289
.
op2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c10289
.
op2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
eg
:
Filter
(
c10289
.
cfilter2
,
nil
)
local
code
=
tc
:
GetCode
()
if
not
tc
then
return
end
if
tc
:
GetCount
()
>
1
then
tc
=
eg
:
FilterSelect
(
tp
,
c10289
.
cfilter2
,
1
,
1
,
nil
)
end
local
code
=
tc
:
GetFirst
():
GetCode
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c10289
.
ofilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
code
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c10289
.
ofilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
code
)
if
sg
:
GetCount
()
<
1
then
return
end
if
sg
:
GetCount
()
<
1
then
return
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