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
c1a863ea
Commit
c1a863ea
authored
Jul 30, 2022
by
wyykak
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'patch-3' into 'master'
Update c99677720.lua 舰指 See merge request
!22
parents
c648df5e
6880dbe9
Pipeline
#15038
passed with stage
in 2 minutes and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
script/c99677720.lua
script/c99677720.lua
+4
-7
No files found.
script/c99677720.lua
View file @
c1a863ea
...
...
@@ -5,22 +5,19 @@ function c99677720.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
99677720
)
e1
:
SetCost
(
c99677720
.
cost
)
e1
:
SetTarget
(
c99677720
.
target
)
e1
:
SetOperation
(
c99677720
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c99677720
.
cfilter
(
c
,
ft
)
return
(
c
:
IsLocation
(
LOCATION_HAND
)
or
c
:
IsFaceup
())
and
c
:
IsSetCard
(
0x70e
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
99677709
)
and
c
:
IsAbleToGraveAsCost
()
and
(
ft
>
0
or
c
:
GetSequence
()
<
5
)
return
(
c
:
IsLocation
(
LOCATION_HAND
)
or
c
:
IsFaceup
())
and
c
:
IsSetCard
(
0x70e
)
and
not
c
:
IsCode
(
99677709
)
and
c
:
IsAbleToGraveAsCost
()
end
function
c99677720
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
loc
=
LOCATION_HAND
+
LOCATION_ONFIELD
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
IsExistingMatchingCard
(
c99677720
.
cfilter
,
tp
,
loc
,
0
,
1
,
nil
,
ft
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c99677720
.
cfilter
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c99677720
.
cfilter
,
tp
,
loc
,
0
,
1
,
1
,
nil
,
ft
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c99677720
.
cfilter
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
1
,
e
:
GetHandler
()
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
function
c99677720
.
filter
(
c
)
...
...
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