Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
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
MyCard
ygopro-scripts
Commits
a3b48b81
Commit
a3b48b81
authored
Dec 24, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
da5e7c6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
15 deletions
+25
-15
c16114248.lua
c16114248.lua
+25
-15
No files found.
c16114248.lua
View file @
a3b48b81
...
@@ -6,8 +6,8 @@ function c16114248.initial_effect(c)
...
@@ -6,8 +6,8 @@ function c16114248.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_FUSION_MATERIAL
)
e1
:
SetCode
(
EFFECT_FUSION_MATERIAL
)
e1
:
SetCondition
(
c16114248
.
fscon
dition
)
e1
:
SetCondition
(
c16114248
.
fscon
)
e1
:
SetOperation
(
c16114248
.
fsop
eration
)
e1
:
SetOperation
(
c16114248
.
fsop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--direct attack
--direct attack
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
@@ -15,22 +15,32 @@ function c16114248.initial_effect(c)
...
@@ -15,22 +15,32 @@ function c16114248.initial_effect(c)
e2
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
e2
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c16114248
.
filter
(
c
,
fc
)
return
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsCanBeFusionMaterial
(
fc
)
end
function
c16114248
.
spfilter
(
c
,
mg
)
function
c16114248
.
spfilter
(
c
,
mg
)
return
c
:
IsRace
(
RACE_MACHINE
)
and
mg
:
IsExists
(
c16114248
.
spfilter2
,
1
,
c
,
c
:
GetCode
()
)
return
mg
:
IsExists
(
c16114248
.
spfilter2
,
1
,
c
,
c
)
end
end
function
c16114248
.
spfilter2
(
c
,
code
)
function
c16114248
.
spfilter2
(
c
,
mc
)
return
c
:
Is
Race
(
RACE_MACHINE
)
and
c
:
IsCode
(
code
)
return
c
:
Is
FusionCode
(
mc
:
GetFusionCode
()
)
end
end
function
c16114248
.
fscondition
(
e
,
mg
,
gc
)
function
c16114248
.
fscon
(
e
,
g
,
gc
)
if
mg
==
nil
then
return
true
end
if
g
==
nil
then
return
true
end
if
gc
then
return
false
end
local
mg
=
g
:
Filter
(
c16114248
.
filter
,
gc
,
e
:
GetHandler
())
if
gc
then
return
c16114248
.
filter
(
gc
,
e
:
GetHandler
())
and
c16114248
.
spfilter
(
gc
,
mg
)
end
return
mg
:
IsExists
(
c16114248
.
spfilter
,
1
,
nil
,
mg
)
return
mg
:
IsExists
(
c16114248
.
spfilter
,
1
,
nil
,
mg
)
end
end
function
c16114248
.
fsoperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
gc
)
function
c16114248
.
fsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
gc
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FMATERIAL
)
local
mg
=
eg
:
Filter
(
c16114248
.
filter
,
gc
,
e
:
GetHandler
())
local
g1
=
eg
:
FilterSelect
(
tp
,
c16114248
.
spfilter
,
1
,
1
,
nil
,
eg
)
local
g1
=
nil
local
mc
=
gc
if
not
gc
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FMATERIAL
)
g1
=
mg
:
FilterSelect
(
tp
,
c16114248
.
spfilter
,
1
,
1
,
nil
,
mg
)
mc
=
g1
:
GetFirst
()
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FMATERIAL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FMATERIAL
)
local
g2
=
eg
:
FilterSelect
(
tp
,
c16114248
.
spfilter2
,
1
,
1
,
g1
:
GetFirst
(),
g1
:
GetFirst
():
GetCode
())
local
g2
=
mg
:
FilterSelect
(
tp
,
c16114248
.
spfilter2
,
1
,
1
,
mc
,
mc
)
g1
:
Merge
(
g2
)
if
g1
then
g2
:
Merge
(
g1
)
end
Duel
.
SetFusionMaterial
(
g1
)
Duel
.
SetFusionMaterial
(
g2
)
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