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
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
八宫一月
ygopro-scripts
Commits
f2088235
Commit
f2088235
authored
Jun 19, 2016
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
bfb78c6e
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
12 deletions
+16
-12
c1561110.lua
c1561110.lua
+4
-3
c2783661.lua
c2783661.lua
+1
-0
c39778366.lua
c39778366.lua
+2
-2
c42901635.lua
c42901635.lua
+1
-1
c65172015.lua
c65172015.lua
+4
-3
c66399653.lua
c66399653.lua
+3
-2
c77133792.lua
c77133792.lua
+1
-1
No files found.
c1561110.lua
View file @
f2088235
...
...
@@ -126,9 +126,10 @@ function c1561110.spcost2(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c1561110
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsType
(
TYPE_UNION
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsType
(
TYPE_UNION
)
and
c
:
IsCanBe
EffectTarget
(
e
)
and
c
:
IsCanBe
SpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c1561110
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c1561110
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
local
g
=
Duel
.
GetMatchingGroup
(
c1561110
.
spfilter
,
tp
,
LOCATION_REMOVED
,
0
,
nil
,
e
,
tp
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
g
:
GetClassCount
(
Card
.
GetCode
)
>
2
...
...
@@ -141,7 +142,7 @@ function c1561110.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
sg
:
Merge
(
g1
)
end
Duel
.
SetTargetCard
(
sg
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
sg
,
3
,
tp
,
LOCATION_REMOVED
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
sg
,
3
,
0
,
0
)
end
function
c1561110
.
spop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
...
...
c2783661.lua
View file @
f2088235
...
...
@@ -16,6 +16,7 @@ function c2783661.filter(c)
end
function
c2783661
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c2783661
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c2783661
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
...
...
c39778366.lua
View file @
f2088235
...
...
@@ -25,7 +25,7 @@ function c39778366.initial_effect(c)
end
function
c39778366
.
filter
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsType
(
TYPE_NORMAL
+
TYPE_UNION
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsType
(
TYPE_NORMAL
+
TYPE_UNION
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c39778366
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
c39778366
.
filter
(
chkc
,
e
,
tp
)
end
...
...
@@ -59,7 +59,7 @@ function c39778366.thfilter(c)
and
c
:
IsType
(
TYPE_NORMAL
+
TYPE_UNION
)
and
c
:
IsAbleToHand
()
end
function
c39778366
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
GetControler
()
==
tp
and
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
c39778366
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
c39778366
.
th
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c39778366
.
thfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c39778366
.
thfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
...
...
c42901635.lua
View file @
f2088235
...
...
@@ -32,7 +32,7 @@ function c42901635.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c42901635
.
cfilter
(
c
)
return
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
())
and
IsAbleToRemoveAsCost
()
return
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
())
and
c
:
IsAbleToRemoveAsCost
()
end
function
c42901635
.
sprfilter1
(
c
,
mg
,
ft
)
local
mg2
=
mg
:
Clone
()
...
...
c65172015.lua
View file @
f2088235
...
...
@@ -83,11 +83,11 @@ function c65172015.spop(e,tp,eg,ep,ev,re,r,rp,c)
g
:
AddCard
(
tc
)
if
i
==
1
then
g1
:
Clear
()
if
tc
:
IsFusionCode
(
1561110
)
then
if
tc
:
GetOriginalCode
()
==
1561110
then
local
sg
=
Duel
.
GetMatchingGroup
(
c65172015
.
spfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
tc
,
91998119
)
g1
:
Merge
(
sg
)
end
if
tc
:
IsFusionCode
(
91998119
)
then
if
tc
:
GetOriginalCode
()
==
91998119
then
local
sg
=
Duel
.
GetMatchingGroup
(
c65172015
.
spfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
tc
,
1561110
)
g1
:
Merge
(
sg
)
end
...
...
@@ -127,7 +127,8 @@ end
function
c65172015
.
spfilter3
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
91998119
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c65172015
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c65172015
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
Duel
.
IsExistingTarget
(
c65172015
.
spfilter2
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
end
...
...
c66399653.lua
View file @
f2088235
...
...
@@ -40,19 +40,20 @@ end
function
c66399653
.
tgfilter
(
c
,
e
,
tp
,
chk
)
return
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsType
(
TYPE_UNION
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsCanBeEffectTarget
(
e
)
and
(
chk
or
Duel
.
IsExisting
Target
(
c66399653
.
cfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
))
and
(
chk
or
Duel
.
IsExisting
MatchingCard
(
c66399653
.
cfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
))
end
function
c66399653
.
cfilter
(
c
,
ec
)
return
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsType
(
TYPE_UNION
)
and
c
:
CheckEquipTarget
(
ec
)
and
not
c
:
IsCode
(
ec
:
GetCode
())
end
function
c66399653
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
c66399653
.
tgfilter
(
chkc
,
e
,
tp
,
true
)
end
if
chkc
then
return
eg
:
IsContains
(
chkc
)
and
c66399653
.
tgfilter
(
chkc
,
e
,
tp
,
true
)
end
local
g
=
eg
:
Filter
(
c66399653
.
tgfilter
,
nil
,
e
,
tp
,
false
)
if
chk
==
0
then
return
g
:
GetCount
()
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
end
if
g
:
GetCount
()
==
1
then
Duel
.
SetTargetCard
(
g
:
GetFirst
())
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
tc
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
SetTargetCard
(
tc
)
end
...
...
c77133792.lua
View file @
f2088235
...
...
@@ -47,7 +47,7 @@ function c77133792.spfilter(c,e,tp)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c77133792
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
GetControler
()
==
tp
and
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
c77133792
.
filter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
c77133792
.
sp
filter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c77133792
.
spfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c77133792
.
spfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
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