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
REIKAI
ygopro-222DIY-cards
Commits
626ec73f
Commit
626ec73f
authored
Dec 27, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace c75005123.lua
parent
1139dba8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
expansions/script/c75005123.lua
expansions/script/c75005123.lua
+6
-6
No files found.
expansions/script/c75005123.lua
View file @
626ec73f
...
@@ -6,7 +6,7 @@ function c75005123.initial_effect(c)
...
@@ -6,7 +6,7 @@ function c75005123.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetRange
(
LOCATION_HAND
)
--
e1:SetCondition(c75005123.ttcon)
e1
:
SetCondition
(
c75005123
.
ttcon
)
e1
:
SetCost
(
c75005123
.
ttcost
)
e1
:
SetCost
(
c75005123
.
ttcost
)
e1
:
SetOperation
(
c75005123
.
ttop
)
e1
:
SetOperation
(
c75005123
.
ttop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
@@ -17,7 +17,7 @@ end
...
@@ -17,7 +17,7 @@ end
function
c75005123
.
ttcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c75005123
.
ttcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
e
:
SetLabel
(
bit
.
band
(
re
:
GetHandler
():
GetType
(),
0x7
))
e
:
SetLabel
(
re
:
GetActiveType
(
))
end
end
function
c75005123
.
ttop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c75005123
.
ttop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
@@ -30,14 +30,14 @@ function c75005123.ttop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -30,14 +30,14 @@ function c75005123.ttop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c75005123
.
tgfilter
(
c
,
type
)
function
c75005123
.
tgfilter
(
c
,
type
)
return
bit
.
band
(
c
:
GetType
(),
type
)
~
=
0
and
c
:
IsAbleToGrave
()
return
bit
.
band
(
c
:
GetType
(),
type
)
=
=
0
and
c
:
IsAbleToGrave
()
end
end
function
c75005123
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c75005123
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_CARD
,
0
,
75005123
)
Duel
.
Hint
(
HINT_CARD
,
0
,
75005123
)
local
typ
e
=
e
:
GetLabel
()
local
typ
=
e
:
GetLabel
()
if
Duel
.
IsExistingMatchingCard
(
c75005123
.
tgfilter
,
tp
,
0
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
1
,
nil
,
typ
e
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
75005123
,
0
))
then
if
Duel
.
IsExistingMatchingCard
(
c75005123
.
tgfilter
,
tp
,
0
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
1
,
nil
,
typ
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
75005123
,
0
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c75005123
.
tgfilter
,
tp
,
0
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
1
,
1
,
nil
,
type
)
local
g
=
Duel
.
SelectMatchingCard
(
1
-
tp
,
c75005123
.
tgfilter
,
tp
,
0
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
1
,
1
,
nil
,
typ
)
if
#
g
>
0
then
if
#
g
>
0
then
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
end
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