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
dba86a2b
Commit
dba86a2b
authored
Mar 30, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Plain Diff
move
parents
1aa66a47
56f1e819
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
21 deletions
+54
-21
expansions/script/c1110000.lua
expansions/script/c1110000.lua
+53
-20
expansions/script/c14142103.lua
expansions/script/c14142103.lua
+1
-1
No files found.
expansions/script/c1110000.lua
View file @
dba86a2b
...
...
@@ -2,29 +2,62 @@ muxu=muxu or {}
local
cm
=
muxu
--scripts
function
cm
.
AddSpsummonSelf
(
c
,
fcon
,
fop
,
limit
,
code
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetRange
(
LOCATION_HAND
)
if
limit
then
e1
:
SetCountLimit
(
limit
,
code
+
EFFECT_COUNT_CODE_OATH
)
end
e1
:
SetCondition
(
cm
.
AddSpsummonSelfFcon
(
fcon
))
e1
:
SetOperation
(
cm
.
AddSpsummonSelfFop
(
fop
))
e1
:
SetValue
(
SUMMON_VALUE_SELF
)
c
:
RegisterEffect
(
e1
)
return
e1
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetRange
(
LOCATION_HAND
)
if
limit
then
e1
:
SetCountLimit
(
limit
,
code
+
EFFECT_COUNT_CODE_OATH
)
end
e1
:
SetCondition
(
cm
.
AddSpsummonSelfFcon
(
fcon
))
end
e1
:
SetOperation
(
cm
.
AddSpsummonSelfFop
(
fop
))
end
e1
:
SetValue
(
SUMMON_VALUE_SELF
)
c
:
RegisterEffect
(
e1
)
return
e1
end
function
cm
.
AddSpsummonSelfFcon
(
fcon
)
return
function
(
e
,
c
)
if
c
==
nil
then
return
true
end
return
fcon
(
e
,
c
)
end
return
function
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
fcon
then
return
fcon
(
e
,
c
)
end
return
true
end
end
function
cm
.
AddSpsummonSelfFop
(
fop
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
if
fop
then
fop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
end
end
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
if
fop
then
fop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
end
end
end
--
function
cm
.
CardSingleUpdateAttack
(
c
,
tc
,
val
,
reset
)
local
e1
=
Effect
.
CreateEffect
(
tc
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
)
if
aux
.
GetValueType
(
val
)
==
"int"
then
e1
:
SetValue
(
val
)
elseif
aux
.
GetValueType
(
val
)
==
"function"
then
e1
:
SetValue
(
cm
.
CardSingleUpdateAttackVal
(
val
))
end
if
reset
then
e1
:
SetReset
(
reset
)
end
c
:
RegisterEffect
(
e1
)
end
function
cm
.
CardSingleUpdateDefense
(
c
,
tc
,
val
,
reset
)
local
e1
=
Effect
.
CreateEffect
(
tc
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_SET_DEFENSE
)
if
aux
.
GetValueType
(
val
)
==
"int"
then
e1
:
SetValue
(
val
)
elseif
aux
.
GetValueType
(
val
)
==
"function"
then
e1
:
SetValue
(
cm
.
CardSingleUpdateAttackVal
(
val
))
end
if
reset
then
e1
:
SetReset
(
reset
)
end
c
:
RegisterEffect
(
e1
)
end
function
cm
.
CardSingleUpdateAttackVal
(
val
)
return
function
(
e
,
c
)
return
val
(
e
,
c
)
end
end
\ No newline at end of file
expansions/script/c14142103.lua
View file @
dba86a2b
...
...
@@ -36,7 +36,7 @@ function cm.filterd(c)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
code
)
end
function
cm
.
filter
(
c
,
tcode
)
return
c
:
IsSetCard
(
code
)
and
not
c
:
IsCode
(
tcode
)
return
c
:
IsSetCard
(
code
)
and
not
c
:
IsCode
(
tcode
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
cm
.
handcon
(
e
)
local
tp
=
e
:
GetHandler
():
GetControler
()
...
...
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