Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
no81cards
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
Nemo Ma
no81cards
Commits
2353fe90
Commit
2353fe90
authored
Nov 03, 2024
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
1e8f1e88
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
48 additions
and
41 deletions
+48
-41
expansions/script/c11451608.lua
expansions/script/c11451608.lua
+1
-1
expansions/script/c11451867.lua
expansions/script/c11451867.lua
+1
-1
expansions/script/c11451896.lua
expansions/script/c11451896.lua
+1
-1
expansions/script/c11451903.lua
expansions/script/c11451903.lua
+4
-0
expansions/script/c11901310.lua
expansions/script/c11901310.lua
+1
-2
expansions/script/c11901320.lua
expansions/script/c11901320.lua
+3
-4
expansions/script/c11901330.lua
expansions/script/c11901330.lua
+7
-4
expansions/script/c11901340.lua
expansions/script/c11901340.lua
+3
-3
expansions/script/c11901350.lua
expansions/script/c11901350.lua
+3
-4
expansions/script/c11901360.lua
expansions/script/c11901360.lua
+1
-1
expansions/script/c11901370.lua
expansions/script/c11901370.lua
+1
-1
expansions/script/c11901380.lua
expansions/script/c11901380.lua
+1
-1
expansions/script/c11901450.lua
expansions/script/c11901450.lua
+3
-4
expansions/script/c11901470.lua
expansions/script/c11901470.lua
+1
-2
expansions/script/c11901480.lua
expansions/script/c11901480.lua
+1
-2
expansions/script/c12877020.lua
expansions/script/c12877020.lua
+5
-5
expansions/script/c12877030.lua
expansions/script/c12877030.lua
+8
-2
expansions/script/c60002432.lua
expansions/script/c60002432.lua
+1
-1
expansions/script/c60002433.lua
expansions/script/c60002433.lua
+1
-1
expansions/script/c91300008.lua
expansions/script/c91300008.lua
+1
-1
No files found.
expansions/script/c11451608.lua
View file @
2353fe90
...
...
@@ -134,7 +134,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
#
g
>
0
and
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
>
0
then
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
local
tg
=
Duel
.
GetMatchingGroup
(
cm
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
local
tg
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
for
tc
in
aux
.
Next
(
tg
)
do
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
expansions/script/c11451867.lua
View file @
2353fe90
...
...
@@ -113,7 +113,7 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
loc
=
c
:
GetLocation
()
if
loc
&
LOCATION_ONFIELD
>
0
then
loc
=
LOCATION_ONFIELD
end
return
eg
:
IsExists
(
cm
.
spfilter
,
1
,
nil
,
loc
)
and
not
eg
:
IsContains
(
c
)
return
eg
:
IsExists
(
cm
.
spfilter
,
1
,
nil
,
loc
)
and
(
not
eg
:
IsContains
(
c
)
or
c
:
IsLocation
(
LOCATION_HAND
)
)
end
function
cm
.
spfilter
(
c
,
loc
)
return
c
:
IsLocation
(
loc
)
and
not
c
:
IsPreviousLocation
(
loc
)
...
...
expansions/script/c11451896.lua
View file @
2353fe90
...
...
@@ -80,7 +80,7 @@ end
function
cm
.
cclfilter
(
c
,
tc
)
local
seq1
=
aux
.
GetColumn
(
c
)
local
seq2
=
aux
.
GetColumn
(
tc
)
return
math.abs
(
seq1
-
seq2
)
==
1
return
seq1
and
seq2
and
math.abs
(
seq1
-
seq2
)
==
1
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
...
...
expansions/script/c11451903.lua
View file @
2353fe90
...
...
@@ -25,6 +25,8 @@ function cm.initial_effect(c)
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
Hint
(
HINT_OPSELECTED
,
tp
,
e
:
GetDescription
())
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
e
:
GetHandler
():
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_CHAIN
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
m
,
2
))
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
...
...
@@ -49,6 +51,8 @@ end
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_DECK
+
LOCATION_REMOVED
,
0
,
1
,
nil
)
and
c
:
GetFlagEffect
(
m
)
==
0
end
Duel
.
Hint
(
HINT_OPSELECTED
,
tp
,
e
:
GetDescription
())
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
--c:RegisterFlagEffect(m,RESET_EVENT+0x4620000+RESET_PHASE+PHASE_END,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(m,3))
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_REMOVED
)
end
...
...
expansions/script/c11901310.lua
View file @
2353fe90
...
...
@@ -20,8 +20,7 @@ function s.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCountLimit
(
1
,
id
)
e2
:
SetCondition
(
s
.
cicon
)
...
...
expansions/script/c11901320.lua
View file @
2353fe90
...
...
@@ -20,8 +20,7 @@ function s.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e2
:
SetCategory
(
CATEGORY_DRAW
+
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCountLimit
(
1
,
id
)
e2
:
SetCondition
(
s
.
cicon
)
...
...
@@ -59,11 +58,11 @@ end
function
s
.
cicon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
or
not
re
:
GetHandler
():
IsSetCard
(
0x409
)
then
return
false
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
:
Filter
(
Card
.
IsRelateToChain
,
e
:
GetHandler
(),
ev
)
return
g
and
#
g
>
0
and
e
:
GetHandler
():
GetType
()
==
TYPE_TRAP
+
TYPE_CONTINUOUS
end
function
s
.
citg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
:
Filter
(
Card
.
IsRelateToChain
,
e
:
GetHandler
(),
ev
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanDraw
(
tp
,
#
g
)
end
...
...
expansions/script/c11901330.lua
View file @
2353fe90
...
...
@@ -2,7 +2,8 @@
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
--SpSummon To SZone
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_HAND
)
...
...
@@ -16,8 +17,7 @@ function s.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e2
:
SetCategory
(
CATEGORY_NEGATE
+
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCountLimit
(
1
,
id
+
1
)
e2
:
SetCondition
(
s
.
cicon
)
...
...
@@ -57,6 +57,9 @@ end
function
s
.
fi1ter
(
c
)
return
aux
.
NegateAnyFilter
(
c
)
and
c
:
IsLocation
(
0x0c
)
end
function
s
.
fi2ter
(
c
,
e
)
return
c
:
IsRelateToEffect
(
e
)
and
s
.
fi1ter
(
c
)
end
function
s
.
cicon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
or
not
re
:
GetHandler
():
IsSetCard
(
0x409
)
then
return
false
end
...
...
@@ -81,7 +84,7 @@ function s.ciop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
==
0
then
return
end
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
local
tg
=
g
:
Filter
(
Card
.
IsRelateToEffect
,
c
,
e
)
local
tg
=
g
:
Filter
(
s
.
fi2ter
,
c
,
e
)
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
and
#
tg
>
0
then
local
tc
=
tg
:
GetFirst
()
while
tc
do
...
...
expansions/script/c11901340.lua
View file @
2353fe90
...
...
@@ -2,7 +2,8 @@
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
--SearchCard
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_HAND
)
...
...
@@ -16,8 +17,7 @@ function s.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e2
:
SetCategory
(
CATEGORY_TODECK
+
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCountLimit
(
1
,
id
+
1
)
e2
:
SetCondition
(
s
.
cicon
)
...
...
expansions/script/c11901350.lua
View file @
2353fe90
...
...
@@ -17,8 +17,7 @@ function s.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e2
:
SetCategory
(
CATEGORY_DAMAGE
+
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCountLimit
(
1
,
id
+
1
)
e2
:
SetCondition
(
s
.
cicon
)
...
...
@@ -55,11 +54,11 @@ end
function
s
.
cicon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
or
not
re
:
GetHandler
():
IsSetCard
(
0x409
)
then
return
false
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
:
Filter
(
Card
.
IsRelateToChain
,
e
:
GetHandler
(),
ev
)
return
g
and
#
g
>
0
and
e
:
GetHandler
():
GetType
()
==
TYPE_TRAP
+
TYPE_CONTINUOUS
end
function
s
.
citg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
:
Filter
(
Card
.
IsRelateToChain
,
e
:
GetHandler
(),
ev
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
...
...
expansions/script/c11901360.lua
View file @
2353fe90
...
...
@@ -17,7 +17,7 @@ function s.initial_effect(c)
--SynSum
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e2
:
SetCategory
(
CATEGORY_
DESTROY
)
e2
:
SetCategory
(
CATEGORY_
SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
...
...
expansions/script/c11901370.lua
View file @
2353fe90
...
...
@@ -17,7 +17,7 @@ function s.initial_effect(c)
--SynSum
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e2
:
SetCategory
(
CATEGORY_
DESTROY
)
e2
:
SetCategory
(
CATEGORY_
SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
...
...
expansions/script/c11901380.lua
View file @
2353fe90
...
...
@@ -17,7 +17,7 @@ function s.initial_effect(c)
--SynSum
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e2
:
SetCategory
(
CATEGORY_
DESTROY
)
e2
:
SetCategory
(
CATEGORY_
SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
...
...
expansions/script/c11901450.lua
View file @
2353fe90
...
...
@@ -20,8 +20,7 @@ function s.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e2
:
SetCategory
(
CATEGORY_RECOVER
+
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCountLimit
(
1
,
id
)
e2
:
SetCondition
(
s
.
cicon
)
...
...
@@ -57,11 +56,11 @@ end
function
s
.
cicon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
or
not
re
:
GetHandler
():
IsSetCard
(
0x409
)
then
return
false
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
:
Filter
(
Card
.
IsRelateToChain
,
e
:
GetHandler
(),
ev
)
return
g
and
#
g
>
0
and
e
:
GetHandler
():
GetType
()
==
TYPE_TRAP
+
TYPE_CONTINUOUS
end
function
s
.
citg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
:
Filter
(
Card
.
IsRelateToChain
,
e
:
GetHandler
(),
ev
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
...
...
expansions/script/c11901470.lua
View file @
2353fe90
...
...
@@ -20,8 +20,7 @@ function s.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e2
:
SetCategory
(
CATEGORY_REMOVE
+
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCountLimit
(
1
,
id
)
e2
:
SetCondition
(
s
.
cicon
)
...
...
expansions/script/c11901480.lua
View file @
2353fe90
...
...
@@ -17,8 +17,7 @@ function s.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e2
:
SetCategory
(
CATEGORY_TOGRAVE
+
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCountLimit
(
1
,
id
+
1
)
e2
:
SetCondition
(
s
.
cicon
)
...
...
expansions/script/c12877020.lua
View file @
2353fe90
...
...
@@ -150,15 +150,15 @@ function c12877020.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
g
,
REASON_COST
+
REASON_RELEASE
)
end
function
c12877020
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
if
chk
==
0
then
return
#
g
>=
2
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
end
function
c12877020
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
dg
=
Duel
.
SelectMatchingCard
(
tp
,
nil
,
tp
,
0
,
LOCATION_ONFIELD
,
2
,
2
,
nil
)
if
#
dg
==
2
then
Duel
.
HintSelection
(
dg
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
if
g
:
GetCount
()
>
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
dg
=
g
:
Select
(
tp
,
2
,
2
,
nil
)
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
end
end
...
...
expansions/script/c12877030.lua
View file @
2353fe90
...
...
@@ -22,8 +22,14 @@ end
function
c12877030
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x9a7b
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsAbleToHand
()
end
function
c12877030
.
rlfilter
(
c
,
tp
)
local
re
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_CANNOT_RELEASE
)
local
val
=
nil
if
re
then
val
=
re
:
GetValue
()
end
return
c
:
IsReleasableByEffect
()
or
(
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
(
val
==
nil
or
val
(
re
,
c
)
~=
true
))
end
function
c12877030
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c12877030
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsReleasableByEffect
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
()
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c12877030
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c12877030
.
rlfilter
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
(),
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RELEASE
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
)
end
...
...
@@ -32,7 +38,7 @@ function c12877030.pfilter(c,atk)
end
function
c12877030
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsReleasableByEffect
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
1
,
e
:
GetHandler
()
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c12877030
.
rlfilter
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
1
,
e
:
GetHandler
(),
tp
)
if
Duel
.
Release
(
g
,
REASON_EFFECT
)
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
c12877030
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
):
GetFirst
()
...
...
expansions/script/c60002432.lua
View file @
2353fe90
...
...
@@ -3,7 +3,7 @@ local cm,m,o=GetID()
function
cm
.
initial_effect
(
c
)
--spsummon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_DRAW
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCountLimit
(
1
,
m
)
...
...
expansions/script/c60002433.lua
View file @
2353fe90
...
...
@@ -3,7 +3,7 @@ local cm,m,o=GetID()
function
cm
.
initial_effect
(
c
)
--spsummon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_DRAW
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCountLimit
(
1
,
m
)
...
...
expansions/script/c91300008.lua
View file @
2353fe90
...
...
@@ -59,7 +59,7 @@ end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
e
:
GetLabel
()
==
100
then
return
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
e
:
GetHandler
(),
tp
)
return
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
e
:
GetHandler
(),
tp
)
and
Duel
.
GetLP
(
tp
)
~=
4000
else
return
false
end
end
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
thfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
e
:
GetHandler
(),
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