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
16ffe193
Commit
16ffe193
authored
Nov 03, 2015
by
salix5
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #96 from DailyShana/patch-2
fix
parents
f94e36ae
a629e902
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
c15155568.lua
c15155568.lua
+5
-1
c41940225.lua
c41940225.lua
+10
-1
No files found.
c15155568.lua
View file @
16ffe193
...
...
@@ -22,7 +22,11 @@ function c15155568.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c15155568
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsCode
(
98502113
)
or
c
:
IsCode
(
86240887
))
if
c
:
IsFacedown
()
or
not
c
.
material_count
then
return
false
end
for
i
=
1
,
c
.
material_count
do
if
c
.
material
[
i
]
==
78193831
then
return
true
end
end
return
false
end
function
c15155568
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c15155568
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
...
...
c41940225.lua
View file @
16ffe193
...
...
@@ -2,6 +2,7 @@
function
c41940225
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
41940225
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
...
...
@@ -11,6 +12,7 @@ function c41940225.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--tohand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
41940225
,
1
))
e2
:
SetCategory
(
CATEGORY_TOHAND
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_GRAVE
)
...
...
@@ -28,9 +30,16 @@ function c41940225.filter1(c,e,tp)
return
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
and
c
:
IsCanBeFusionMaterial
()
and
not
c
:
IsImmuneToEffect
(
e
)
end
function
c41940225
.
filter2
(
c
,
e
,
tp
,
m
,
f
,
chkf
)
return
(
c
:
IsCode
(
98502113
)
or
c
:
IsCode
(
86240887
)
)
and
(
not
f
or
f
(
c
))
return
c41940225
.
spfilter
(
c
)
and
(
not
f
or
f
(
c
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
c
:
CheckFusionMaterial
(
m
,
nil
,
chkf
)
end
function
c41940225
.
spfilter
(
c
)
if
not
c
.
material_count
then
return
false
end
for
i
=
1
,
c
.
material_count
do
if
c
.
material
[
i
]
==
78193831
then
return
true
end
end
return
false
end
function
c41940225
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
local
chkf
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
PLAYER_NONE
or
tp
...
...
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