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
Soulgamer
ygopro-222DIY-cards
Commits
d4cd4a9c
Commit
d4cd4a9c
authored
Mar 01, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ybb
parent
840ac897
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
expansions/script/c81006012.lua
expansions/script/c81006012.lua
+11
-10
No files found.
expansions/script/c81006012.lua
View file @
d4cd4a9c
...
...
@@ -46,18 +46,19 @@ function cm.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
2
,
2
,
g1
,
g1
:
GetFirst
():
GetCode
())
g1
:
Merge
(
g2
)
if
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
>
0
then
if
Duel
.
SendtoGrave
(
g
1
,
REASON_EFFECT
)
>
0
then
local
tc
=
g1
:
GetFirst
()
local
code
=
g1
:
GetFirst
():
GetCode
()
if
tc
:
IsLocation
(
LOCATION_GRAVE
)
then
local
e
1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e
1
:
SetType
(
EFFECT_TYPE_FIELD
)
e
1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e
1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e
1
:
SetTargetRange
(
1
,
0
)
e
1
:
SetValue
(
cm
.
aclimit
)
e
1
:
SetLabel
(
tc
:
GetCode
()
)
e
1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e
1
,
tp
)
local
e
0
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e
0
:
SetType
(
EFFECT_TYPE_FIELD
)
e
0
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e
0
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e
0
:
SetTargetRange
(
1
,
0
)
e
0
:
SetValue
(
cm
.
aclimit
)
e
0
:
SetLabel
(
code
)
e
0
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e
0
,
tp
)
end
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