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
alstroemeria-silentlove
ygopro-222DIY-cards
Commits
defee741
Commit
defee741
authored
Jul 07, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1145141919810
parent
72af43c5
Pipeline
#14457
passed with stages
in 24 minutes and 11 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
expansions/script/c35700200.lua
expansions/script/c35700200.lua
+8
-7
No files found.
expansions/script/c35700200.lua
View file @
defee741
...
...
@@ -9,9 +9,10 @@ function mc.CRE(c,f,v,reg)
if
not
reg
then
c
:
RegisterEffect
(
e
)
end
return
e
end
function
mc
.
c_loc
(
loc
)
function
mc
.
c_loc
(
...
)
local
v
=
0
loc
=
type
(
loc
)
==
"table"
and
loc
or
{
loc
}
local
loc
=
{
...
}
loc
=
type
(
loc
[
1
])
==
"table"
and
loc
[
1
]
or
loc
for
_
,
l
in
ipairs
(
loc
)
do
l
=
type
(
l
)
==
"string"
and
mc
.
loc
[
l
]
or
l
v
=
v
+
l
...
...
@@ -183,7 +184,7 @@ mc.eff = {
[
"COD"
]
=
Effect
.
SetCode
,
[
"CTL"
]
=
Effect
.
SetCountLimit
,
[
"PRO"
]
=
Effect
.
SetProperty
,
[
"RAN"
]
=
function
(
e
,
loc
)
Effect
.
SetRange
(
e
,
mc
.
c_loc
(
loc
))
end
,
[
"RAN"
]
=
function
(
e
,
...
)
e
:
SetRange
(
mc
.
c_loc
(
...
))
end
,
[
"CON"
]
=
Effect
.
SetCondition
,
[
"COS"
]
=
Effect
.
SetCost
,
[
"TG"
]
=
Effect
.
SetTarget
,
...
...
@@ -213,11 +214,11 @@ function mc.con_S_con(e,tp,eg,ep,ev,re,r,rp)
end
function
mc
.
tg_SS_tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
Duel
.
GetTurnCount
()
==
1
and
((
e
:
GetHandler
():
IsLevel
(
1
)
and
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
)
or
e
:
GetHandler
():
IsLevel
(
2
))
then
return
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
fals
e
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
tru
e
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
mc
.
tg_SS_op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
e
:
GetHandler
(),
0
,
tp
,
tp
,
false
,
fals
e
,
POS_FACEUP
)
end
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
e
:
GetHandler
(),
0
,
tp
,
tp
,
true
,
tru
e
,
POS_FACEUP
)
end
end
function
mc
.
tg_S_below4
(
c
)
return
c
:
IsSetCard
(
0xb72
)
and
c
:
IsAbleToHand
()
and
(
c
:
IsLevelBelow
(
4
)
or
c
:
IsType
(
TYPE_SPELL
))
...
...
@@ -333,11 +334,11 @@ function mc.SS_Cos_cos(count)
end
end
function
mc
.
SS_Cos_tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
fals
e
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
tru
e
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
mc
.
SS_Cos_op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
e
:
GetHandler
(),
0
,
tp
,
tp
,
true
,
fals
e
,
POS_FACEUP
)
~=
0
then
e
:
GetHandler
():
CompleteProcedure
()
end
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
e
:
GetHandler
(),
0
,
tp
,
tp
,
true
,
tru
e
,
POS_FACEUP
)
~=
0
then
e
:
GetHandler
():
CompleteProcedure
()
end
end
function
mc
.
Up_Attack
(
e
)
local
eg
=
e
:
GetHandler
():
GetEquipGroup
():
Filter
(
mc
.
Origin_Monster
,
nil
)
...
...
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