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
Ai
ygopro-222DIY-cards
Commits
5f03c3ab
Commit
5f03c3ab
authored
Apr 08, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
得得得得得
parent
366385f3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
expansions/script/c33503300.lua
expansions/script/c33503300.lua
+8
-5
No files found.
expansions/script/c33503300.lua
View file @
5f03c3ab
...
@@ -12,7 +12,7 @@ function cm.initial_effect(c)
...
@@ -12,7 +12,7 @@ function cm.initial_effect(c)
e1
:
SetOperation
(
cm
.
op1
)
e1
:
SetOperation
(
cm
.
op1
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_TOHAND
)
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_LEAVE_GRAVE
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetRange
(
LOCATION_GRAVE
)
...
@@ -70,6 +70,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -70,6 +70,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPERATECARD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPERATECARD
)
local
zg
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
thfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
tp
)
local
zg
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
thfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
tp
)
local
tc
=
zg
:
GetFirst
()
local
tc
=
zg
:
GetFirst
()
local
activate_con_check
=
false
if
tc
then
if
tc
then
local
b2
=
tc
:
GetActivateEffect
():
IsActivatable
(
tp
)
local
b2
=
tc
:
GetActivateEffect
():
IsActivatable
(
tp
)
if
b2
then
if
b2
then
...
@@ -95,7 +96,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -95,7 +96,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
te
:
UseCountLimit
(
tp
,
1
,
true
)
te
:
UseCountLimit
(
tp
,
1
,
true
)
if
cost
then
cost
(
te
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
if
cost
then
cost
(
te
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
local
res
,
teg
,
tep
,
tev
,
tre
,
tr
,
trp
=
Duel
.
CheckEvent
(
event
,
true
)
local
res
,
teg
,
tep
,
tev
,
tre
,
tr
,
trp
=
Duel
.
CheckEvent
(
event
,
true
)
if
tg
then
tg
(
e
,
tp
,
teg
,
tep
,
tev
,
tre
,
tr
,
trp
,
1
)
end
if
tg
then
tg
(
t
e
,
tp
,
teg
,
tep
,
tev
,
tre
,
tr
,
trp
,
1
)
end
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
if
g
then
if
g
then
local
etc
=
g
:
GetFirst
()
local
etc
=
g
:
GetFirst
()
...
@@ -104,8 +105,10 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -104,8 +105,10 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
etc
=
g
:
GetNext
()
etc
=
g
:
GetNext
()
end
end
end
end
if
not
tc
:
IsType
(
TYPE_FIELD
+
TYPE_CONTINUOUS
)
then
local
op
=
te
:
GetOperation
()
local
op
=
te
:
GetOperation
()
if
op
then
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
if
op
then
op
(
te
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
end
tc
:
ReleaseEffectRelation
(
te
)
tc
:
ReleaseEffectRelation
(
te
)
if
etc
then
if
etc
then
etc
=
g
:
GetFirst
()
etc
=
g
:
GetFirst
()
...
@@ -114,7 +117,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -114,7 +117,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
etc
=
g
:
GetNext
()
etc
=
g
:
GetNext
()
end
end
end
end
if
tc
:
GetType
()
==
TYPE_SPELL
or
tc
:
GetType
()
==
TYPE_TRAP
or
tc
:
IsType
(
TYPE_COUNTER
+
TYPE_QUICKPLAY
)
then
if
not
tc
:
IsType
(
TYPE_FIELD
+
TYPE_CONTINUOUS
)
then
tc
:
CancelToGrave
(
false
)
tc
:
CancelToGrave
(
false
)
end
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