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
cc297c93
Commit
cc297c93
authored
Aug 31, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
E
parent
b395a2eb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
expansions/script/c12800000.lua
expansions/script/c12800000.lua
+1
-3
expansions/script/c96001066.lua
expansions/script/c96001066.lua
+2
-2
No files found.
expansions/script/c12800000.lua
View file @
cc297c93
...
...
@@ -22,9 +22,7 @@ function cm.initial_effect(c)
e2
:
SetRange
(
LOCATION_EXTRA
)
e2
:
SetCondition
(
function
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
Duel
.
GetLP
(
tp
)
==
1
then
return
false
end
return
Duel
.
GetFieldGroupCount
(
c
:
GetControler
(),
LOCATION_MZONE
,
0
)
==
0
and
Duel
.
CheckLPCost
(
c
:
GetControler
(),
math.floor
(
Duel
.
GetLP
(
tp
)
/
2
))
return
Duel
.
GetFieldGroupCount
(
c
:
GetControler
(),
LOCATION_MZONE
,
0
)
==
0
end
)
e2
:
SetOperation
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
Duel
.
PayLPCost
(
tp
,
math.floor
(
Duel
.
GetLP
(
tp
)
/
2
))
...
...
expansions/script/c96001066.lua
View file @
cc297c93
...
...
@@ -41,7 +41,7 @@ function cm.con4(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetFieldGroup
(
tp
,
LOCATION_MZONE
,
0
):
Filter
(
Card
.
IsFaceup
,
nil
):
IsExists
(
Card
.
IsType
,
1
,
nil
,
TYPE_EFFECT
)
end
function
cm
.
tgf1
(
c
,
tc
)
return
c
:
IsLinkSummonable
(
nil
)
and
c
:
IsLinkAbove
(
2
)
return
c
:
IsLinkSummonable
(
nil
)
and
c
:
IsLinkAbove
(
2
)
and
c
:
IsSetCard
(
0x6282
)
end
function
cm
.
tg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
tgf1
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
:
GetHandler
())
end
...
...
@@ -53,6 +53,6 @@ function cm.op1(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
tgf1
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
:
GetHandler
())
local
tc
=
g
:
GetFirst
()
if
tc
then
Duel
.
LinkSummon
(
tp
,
tc
,
nil
)
Duel
.
LinkSummon
(
tp
,
tc
,
nil
,
e
:
GetHandler
()
)
end
end
\ No newline at end of file
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