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
baf35955
Commit
baf35955
authored
Jan 21, 2017
by
mercury233
Committed by
DailyShana
Jan 21, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Synchro Call (#768)
parent
d8701b13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
c89974904.lua
c89974904.lua
+6
-2
No files found.
c89974904.lua
View file @
baf35955
...
@@ -10,9 +10,13 @@ function c89974904.initial_effect(c)
...
@@ -10,9 +10,13 @@ function c89974904.initial_effect(c)
e1
:
SetOperation
(
c89974904
.
activate
)
e1
:
SetOperation
(
c89974904
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c89974904
.
cfilter
(
c
,
tc
)
return
c
:
IsRace
(
RACE_DRAGON
+
RACE_FIEND
)
and
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
c
:
IsSynchroSummonable
(
tc
)
end
function
c89974904
.
spfilter
(
c
,
e
,
tp
)
function
c89974904
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
182
,
tp
,
false
,
false
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
182
,
tp
,
false
,
false
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsSynchroSummonable
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
c
)
and
Duel
.
IsExistingMatchingCard
(
c89974904
.
cfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
c
)
end
end
function
c89974904
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c89974904
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c89974904
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c89974904
.
spfilter
(
chkc
,
e
,
tp
)
end
...
@@ -36,7 +40,7 @@ function c89974904.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -36,7 +40,7 @@ function c89974904.activate(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsSynchroSummonable
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
tc
)
local
g
=
Duel
.
GetMatchingGroup
(
c89974904
.
cfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
tc
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
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