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
dca7df49
Commit
dca7df49
authored
Mar 16, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
52707bda
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
10 deletions
+24
-10
c37507488.lua
c37507488.lua
+1
-1
c56655675.lua
c56655675.lua
+23
-9
No files found.
c37507488.lua
View file @
dca7df49
...
...
@@ -33,7 +33,7 @@ end
function
c37507488
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
and
tc
:
IsLocation
(
LOCATION_HAND
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c37507488
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
...
c56655675.lua
View file @
dca7df49
...
...
@@ -26,24 +26,38 @@ function c56655675.initial_effect(c)
e3
:
SetOperation
(
c56655675
.
operation
)
c
:
RegisterEffect
(
e3
)
end
function
c56655675
.
spfilter
(
c
,
setcode
)
return
c
:
IsFusionSetCard
(
setcode
)
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
IsCanBeFusionMaterial
()
function
c56655675
.
spfilter1
(
c
,
mg
)
local
mg2
=
mg
:
Clone
()
mg2
:
RemoveCard
(
c
)
return
c
:
IsFusionSetCard
(
0x40b5
)
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
IsCanBeFusionMaterial
()
and
mg2
:
IsExists
(
c56655675
.
spfilter2
,
1
,
nil
,
mg2
)
end
function
c56655675
.
spfilter2
(
c
,
mg
)
local
mg2
=
mg
:
Clone
()
mg2
:
RemoveCard
(
c
)
return
c
:
IsFusionSetCard
(
0x10b5
)
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
IsCanBeFusionMaterial
()
and
mg2
:
IsExists
(
c56655675
.
spfilter3
,
1
,
nil
)
end
function
c56655675
.
spfilter3
(
c
)
return
c
:
IsFusionSetCard
(
0x20b5
)
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
IsCanBeFusionMaterial
()
end
function
c56655675
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
mg
=
Duel
.
GetMatchingGroup
(
Card
.
IsFusionSetCard
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
0xb5
)
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
2
and
Duel
.
IsExistingMatchingCard
(
c56655675
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
0x40b5
)
and
Duel
.
IsExistingMatchingCard
(
c56655675
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
0x10b5
)
and
Duel
.
IsExistingMatchingCard
(
c56655675
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
0x20b5
)
and
mg
:
IsExists
(
c56655675
.
spfilter1
,
1
,
nil
,
mg
)
end
function
c56655675
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
mg
=
Duel
.
GetMatchingGroup
(
Card
.
IsFusionSetCard
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
0xb5
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
c56655675
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
0x40b5
)
local
g1
=
mg
:
FilterSelect
(
tp
,
c56655675
.
spfilter1
,
1
,
1
,
nil
,
mg
)
mg
:
RemoveCard
(
g1
:
GetFirst
())
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c56655675
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
0x10b5
)
local
g2
=
mg
:
FilterSelect
(
tp
,
c56655675
.
spfilter2
,
1
,
1
,
nil
,
mg
)
mg
:
RemoveCard
(
g2
:
GetFirst
())
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g3
=
Duel
.
SelectMatchingCard
(
tp
,
c56655675
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
0x20b5
)
local
g3
=
mg
:
FilterSelect
(
tp
,
c56655675
.
spfilter3
,
1
,
1
,
nil
)
g1
:
Merge
(
g2
)
g1
:
Merge
(
g3
)
c
:
SetMaterial
(
g1
)
...
...
@@ -55,7 +69,7 @@ end
function
c56655675
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetCategory
(
CATEGORY_NEGATE
+
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_
FIELD
+
EFFECT_TYPE_
QUICK_O
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e1
:
SetRange
(
LOCATION_MZONE
)
...
...
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