Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
xiaoye
ygopro-222DIY-cards
Commits
f40d4d44
You need to sign in or sign up before continuing.
Commit
f40d4d44
authored
Jan 06, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
231a75bd
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
21 additions
and
23 deletions
+21
-23
expansions/script/c14000005.lua
expansions/script/c14000005.lua
+2
-2
expansions/script/c14000382.lua
expansions/script/c14000382.lua
+2
-2
expansions/script/c14000510.lua
expansions/script/c14000510.lua
+2
-2
expansions/script/c14000537.lua
expansions/script/c14000537.lua
+3
-4
expansions/script/c14010108.lua
expansions/script/c14010108.lua
+2
-3
expansions/script/c14060001.lua
expansions/script/c14060001.lua
+1
-1
expansions/script/c14060010.lua
expansions/script/c14060010.lua
+4
-4
expansions/script/c14060011.lua
expansions/script/c14060011.lua
+4
-4
expansions/script/c26800011.lua
expansions/script/c26800011.lua
+1
-1
No files found.
expansions/script/c14000005.lua
View file @
f40d4d44
...
@@ -67,7 +67,7 @@ function cm.filter1(c)
...
@@ -67,7 +67,7 @@ function cm.filter1(c)
return
c
:
IsCode
(
14000006
)
and
c
:
IsFaceup
()
and
c
:
IsAbleToGraveAsCost
()
return
c
:
IsCode
(
14000006
)
and
c
:
IsFaceup
()
and
c
:
IsAbleToGraveAsCost
()
end
end
function
cm
.
profilter
(
c
,
e
,
tp
)
function
cm
.
profilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
14000007
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_LINK
,
tp
,
false
,
false
)
return
c
:
IsCode
(
14000007
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_LINK
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
end
end
function
cm
.
lkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
lkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
and
Duel
.
IsExistingMatchingCard
(
cm
.
filter1
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
and
Duel
.
IsExistingMatchingCard
(
cm
.
filter1
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
...
@@ -77,7 +77,7 @@ function cm.lkcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -77,7 +77,7 @@ function cm.lkcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
mat
,
REASON_COST
)
Duel
.
SendtoGrave
(
mat
,
REASON_COST
)
end
end
function
cm
.
lktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
lktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
TYPE_LINK
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
profilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
profilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
end
end
function
cm
.
lkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
lkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c14000382.lua
View file @
f40d4d44
...
@@ -67,7 +67,7 @@ function cm.tgop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -67,7 +67,7 @@ function cm.tgop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
sfilter
,
tp
,
LOCATION_GRAVE
,
0
,
c
,
e
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
sfilter
,
tp
,
LOCATION_GRAVE
,
0
,
c
,
e
,
tp
)
local
mg
=
g
:
Filter
(
cm
.
ffilter
,
nil
,
e
)
local
mg
=
g
:
Filter
(
cm
.
ffilter
,
nil
,
e
)
mg
:
AddCard
(
c
)
mg
:
AddCard
(
c
)
if
mg
:
GetCount
()
<
2
or
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
TYPE_FUSION
)
<=
0
then
return
end
if
mg
:
GetCount
()
<
2
then
return
end
local
sg
=
Duel
.
GetMatchingGroup
(
cm
.
ffilter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg
,
c
)
local
sg
=
Duel
.
GetMatchingGroup
(
cm
.
ffilter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg
,
c
)
if
sg
:
GetCount
()
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
1
))
then
if
sg
:
GetCount
()
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
1
))
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
...
@@ -93,7 +93,7 @@ function cm.ffilter(c,e)
...
@@ -93,7 +93,7 @@ function cm.ffilter(c,e)
return
not
c
:
IsImmuneToEffect
(
e
)
return
not
c
:
IsImmuneToEffect
(
e
)
end
end
function
cm
.
ffilter2
(
c
,
e
,
tp
,
mg
,
gc
)
function
cm
.
ffilter2
(
c
,
e
,
tp
,
mg
,
gc
)
return
cm
.
Grava
(
c
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
c
:
CheckFusionMaterial
(
mg
,
gc
)
return
cm
.
Grava
(
c
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
c
:
CheckFusionMaterial
(
mg
,
gc
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
mg
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_MZONE
),
c
)
end
end
function
cm
.
ffilter3
(
c
,
e
,
tp
,
gc
)
function
cm
.
ffilter3
(
c
,
e
,
tp
,
gc
)
local
mg
=
Group
.
FromCards
(
c
,
gc
)
local
mg
=
Group
.
FromCards
(
c
,
gc
)
...
...
expansions/script/c14000510.lua
View file @
f40d4d44
...
@@ -35,10 +35,10 @@ function cm.filter(c,e,tp)
...
@@ -35,10 +35,10 @@ function cm.filter(c,e,tp)
return
spo
.
named
(
c
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
true
)
return
spo
.
named
(
c
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
true
)
end
end
function
cm
.
filter1
(
c
,
e
,
tp
)
function
cm
.
filter1
(
c
,
e
,
tp
)
return
spo
.
named
(
c
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsFaceup
()
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
true
)
return
spo
.
named
(
c
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsFaceup
()
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
true
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
end
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
0
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
filter1
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
Duel
.
IsExistingMatchingCard
(
cm
.
filter1
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
2
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
2
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
)
end
end
...
...
expansions/script/c14000537.lua
View file @
f40d4d44
...
@@ -15,13 +15,12 @@ function cm.initial_effect(c)
...
@@ -15,13 +15,12 @@ function cm.initial_effect(c)
e1
:
SetOperation
(
cm
.
activate
)
e1
:
SetOperation
(
cm
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
cm
.
tfilter
(
c
,
e
,
tp
)
function
cm
.
tfilter
(
c
,
e
,
tp
,
mc
)
return
c
:
IsCode
(
14000538
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
return
c
:
IsCode
(
14000538
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
mc
,
c
)
>
0
end
end
function
cm
.
filter
(
c
,
e
,
tp
)
function
cm
.
filter
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
c
:
IsAbleToRemove
()
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
c
:
IsAbleToRemove
()
and
Duel
.
IsExistingMatchingCard
(
cm
.
tfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
tfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
0
)
>
0
end
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
+
LOCATION_GRAVE
)
and
cm
.
filter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
+
LOCATION_GRAVE
)
and
cm
.
filter
(
chkc
,
e
,
tp
)
end
...
...
expansions/script/c14010108.lua
View file @
f40d4d44
...
@@ -25,11 +25,10 @@ function cm.con(e,tp,eg,ep,ev,re,r,rp)
...
@@ -25,11 +25,10 @@ function cm.con(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
filter
(
c
,
e
,
tp
)
function
cm
.
filter
(
c
,
e
,
tp
)
return
c
:
IsType
(
TYPE_FUSION
)
return
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
c
:
CheckFusionMaterial
()
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
c
:
CheckFusionMaterial
()
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
end
end
function
cm
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
TYPE_FUSION
)
>
0
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c14060001.lua
View file @
f40d4d44
...
@@ -53,7 +53,7 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -53,7 +53,7 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
return
c
:
IsFaceup
()
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
c
:
GetControler
(),
LOCATION_GRAVE
,
0
,
1
,
nil
,
TYPE_MONSTER
)
return
c
:
IsFaceup
()
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
c
:
GetControler
(),
LOCATION_GRAVE
,
0
,
1
,
nil
,
TYPE_MONSTER
)
end
end
function
cm
.
spfilter
(
c
,
e
,
tp
)
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x1406
)
and
((
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_EXTRA
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
0
)
>
0
)
or
c
:
IsLocation
(
LOCATION_DECK
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
not
c
:
IsCode
(
m
)
return
c
:
IsSetCard
(
0x1406
)
and
((
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_EXTRA
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
)
or
c
:
IsLocation
(
LOCATION_DECK
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
not
c
:
IsCode
(
m
)
end
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
expansions/script/c14060010.lua
View file @
f40d4d44
...
@@ -51,11 +51,11 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,11 +51,11 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
return
(
c
:
IsFaceup
()
or
c
:
IsLocation
(
LOCATION_HAND
))
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
c
:
GetControler
(),
LOCATION_GRAVE
,
0
,
1
,
nil
,
TYPE_MONSTER
)
return
(
c
:
IsFaceup
()
or
c
:
IsLocation
(
LOCATION_HAND
))
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
c
:
GetControler
(),
LOCATION_GRAVE
,
0
,
1
,
nil
,
TYPE_MONSTER
)
end
end
function
cm
.
spfilter
(
c
,
e
,
tp
)
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x1406
)
and
((
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_EXTRA
)
and
Duel
.
GetLocationCountFromEx
(
tp
)
>
0
)
or
c
:
IsLocation
(
LOCATION_HAND
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
not
c
:
IsCode
(
m
)
return
c
:
IsSetCard
(
0x1406
)
and
((
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_EXTRA
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
)
or
c
:
IsLocation
(
LOCATION_HAND
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
not
c
:
IsCode
(
m
)
end
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsLocation
(
LOCATION_EXTRA
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
0
)
==
0
then
return
end
if
c
:
IsLocation
(
LOCATION_EXTRA
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
==
0
then
return
end
if
chk
==
0
then
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
if
chk
==
0
then
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
@@ -70,9 +70,9 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -70,9 +70,9 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_EXTRA
,
0
,
1
,
1
,
c
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_EXTRA
,
0
,
1
,
1
,
c
,
e
,
tp
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
c
:
IsLocation
(
LOCATION_EXTRA
)
and
tc
:
IsLocation
(
LOCATION_EXTRA
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
0
)
<
2
then
if
c
:
IsLocation
(
LOCATION_EXTRA
)
and
tc
:
IsLocation
(
LOCATION_EXTRA
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
<
2
then
return
return
elseif
((
c
:
IsLocation
(
LOCATION_EXTRA
)
and
tc
:
IsLocation
(
LOCATION_HAND
))
or
(
c
:
IsLocation
(
LOCATION_HAND
)
and
tc
:
IsLocation
(
LOCATION_EXTRA
)))
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
0
)
<
1
then
elseif
((
c
:
IsLocation
(
LOCATION_EXTRA
)
and
tc
:
IsLocation
(
LOCATION_HAND
))
or
(
c
:
IsLocation
(
LOCATION_HAND
)
and
tc
:
IsLocation
(
LOCATION_EXTRA
)))
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
<
1
then
return
return
end
end
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
expansions/script/c14060011.lua
View file @
f40d4d44
...
@@ -51,11 +51,11 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,11 +51,11 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
return
(
c
:
IsFaceup
()
or
c
:
IsLocation
(
LOCATION_HAND
))
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
c
:
GetControler
(),
LOCATION_GRAVE
,
0
,
1
,
nil
,
TYPE_MONSTER
)
return
(
c
:
IsFaceup
()
or
c
:
IsLocation
(
LOCATION_HAND
))
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
c
:
GetControler
(),
LOCATION_GRAVE
,
0
,
1
,
nil
,
TYPE_MONSTER
)
end
end
function
cm
.
spfilter
(
c
,
e
,
tp
)
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x1406
)
and
((
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_EXTRA
)
and
Duel
.
GetLocationCountFromEx
(
tp
)
>
0
)
or
c
:
IsLocation
(
LOCATION_HAND
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
)
and
not
c
:
IsCode
(
m
)
return
c
:
IsSetCard
(
0x1406
)
and
((
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_EXTRA
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
)
or
c
:
IsLocation
(
LOCATION_HAND
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
)
and
not
c
:
IsCode
(
m
)
end
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsLocation
(
LOCATION_EXTRA
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
0
)
==
0
then
return
end
if
c
:
IsLocation
(
LOCATION_EXTRA
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
==
0
then
return
end
if
chk
==
0
then
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
if
chk
==
0
then
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
@@ -70,9 +70,9 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -70,9 +70,9 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_EXTRA
,
0
,
1
,
1
,
c
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_EXTRA
,
0
,
1
,
1
,
c
,
e
,
tp
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
c
:
IsLocation
(
LOCATION_EXTRA
)
and
tc
:
IsLocation
(
LOCATION_EXTRA
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
0
)
<
2
then
if
c
:
IsLocation
(
LOCATION_EXTRA
)
and
tc
:
IsLocation
(
LOCATION_EXTRA
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
<
2
then
return
return
elseif
((
c
:
IsLocation
(
LOCATION_EXTRA
)
and
tc
:
IsLocation
(
LOCATION_HAND
))
or
(
c
:
IsLocation
(
LOCATION_HAND
)
and
tc
:
IsLocation
(
LOCATION_EXTRA
)))
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
0
)
<
1
then
elseif
((
c
:
IsLocation
(
LOCATION_EXTRA
)
and
tc
:
IsLocation
(
LOCATION_HAND
))
or
(
c
:
IsLocation
(
LOCATION_HAND
)
and
tc
:
IsLocation
(
LOCATION_EXTRA
)))
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
<
1
then
return
return
end
end
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
expansions/script/c26800011.lua
View file @
f40d4d44
...
@@ -5,7 +5,7 @@ function c26800011.initial_effect(c)
...
@@ -5,7 +5,7 @@ function c26800011.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_REMOVE
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_FUSION_SUMMON
)
e1
:
SetCategory
(
CATEGORY_REMOVE
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_FUSION_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
26800011
+
EFFECT_COUNT_CODE_
DUEL
)
e1
:
SetCountLimit
(
1
,
26800011
+
EFFECT_COUNT_CODE_
OATH
)
e1
:
SetCost
(
c26800011
.
cost
)
e1
:
SetCost
(
c26800011
.
cost
)
e1
:
SetTarget
(
c26800011
.
target
)
e1
:
SetTarget
(
c26800011
.
target
)
e1
:
SetOperation
(
c26800011
.
activate
)
e1
:
SetOperation
(
c26800011
.
activate
)
...
...
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