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
bfc645b3
Commit
bfc645b3
authored
Apr 13, 2021
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
cc30ec7a
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
31 additions
and
47 deletions
+31
-47
expansions/no81.cdb
expansions/no81.cdb
+0
-0
expansions/script/c11451456.lua
expansions/script/c11451456.lua
+8
-5
expansions/script/c11451457.lua
expansions/script/c11451457.lua
+5
-0
expansions/script/c13254053.lua
expansions/script/c13254053.lua
+1
-1
expansions/script/c13257241.lua
expansions/script/c13257241.lua
+1
-2
expansions/script/c13257333.lua
expansions/script/c13257333.lua
+1
-0
expansions/script/c13257336.lua
expansions/script/c13257336.lua
+1
-0
expansions/script/c15000057.lua
expansions/script/c15000057.lua
+2
-2
expansions/script/c15000540.lua
expansions/script/c15000540.lua
+1
-6
expansions/script/c15000541.lua
expansions/script/c15000541.lua
+1
-6
expansions/script/c15000542.lua
expansions/script/c15000542.lua
+1
-6
expansions/script/c15000543.lua
expansions/script/c15000543.lua
+1
-6
expansions/script/c15000547.lua
expansions/script/c15000547.lua
+1
-6
expansions/script/c15000548.lua
expansions/script/c15000548.lua
+1
-6
expansions/script/c190001.lua
expansions/script/c190001.lua
+4
-0
expansions/script/c33701379.lua
expansions/script/c33701379.lua
+1
-1
expansions/script/c40009560.lua
expansions/script/c40009560.lua
+1
-0
No files found.
expansions/no81.cdb
View file @
bfc645b3
No preview for this file type
expansions/script/c11451456.lua
View file @
bfc645b3
--波动中枢·物质波调谐器
local
m
=
11451456
local
cm
=
_G
[
"c"
..
m
]
local
prime
=
{
2
,
3
,
5
,
7
,
11
,
13
,
17
,
19
,
23
,
29
,
31
,
37
,
41
,
43
,
47
,
53
,
59
,
61
,
67
,
71
,
73
,
79
,
83
,
89
,
97
,
101
,
103
,
107
,
109
,
113
,
127
,
131
,
137
,
139
,
149
,
151
,
157
,
163
,
167
,
173
,
179
,
181
,
191
,
193
,
197
,
199
,
211
,
223
,
227
,
229
,
233
,
239
,
241
,
251
,
257
,
263
,
269
,
271
,
277
,
281
,
283
,
293
,
307
,
311
,
313
,
317
,
331
,
337
,
347
,
349
,
353
,
359
,
367
,
373
,
379
,
383
,
389
,
397
,
401
,
409
,
419
,
421
,
431
,
433
,
439
,
443
,
449
,
457
,
461
,
463
,
467
,
479
,
487
,
491
,
499
,
503
,
509
,
521
,
523
,
541
,
547
,
557
,
563
,
569
,
571
,
577
,
587
,
593
,
599
,
601
,
607
,
613
,
617
,
619
,
631
,
641
,
643
,
647
,
653
,
659
,
661
,
673
,
677
,
683
,
691
,
701
,
709
,
719
,
727
,
733
,
739
,
743
,
751
,
757
,
761
,
769
,
773
,
787
,
797
,
809
,
811
,
821
,
823
,
827
,
829
,
839
,
853
,
857
,
859
,
863
,
877
,
881
,
883
,
887
,
907
,
911
,
919
,
929
,
937
,
941
,
947
,
953
,
967
,
971
,
977
,
983
,
991
,
997
}
function
cm
.
initial_effect
(
c
)
c
:
SetSPSummonOnce
(
m
)
--link summon
...
...
@@ -62,13 +61,17 @@ end
function
cm
.
mzfilter
(
c
)
return
c
:
IsLinkRace
(
RACE_PSYCHO
)
and
c
:
IsLinkAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
GetLevel
()
>=
3
and
c
:
GetLevel
()
<=
10
end
function
cm
.
isprime
(
num
)
if
num
<
2
then
return
false
elseif
num
==
2
then
return
true
end
for
i
=
2
,(
num
-
1
)
do
if
num
%
i
==
0
then
return
false
end
end
return
true
end
function
cm
.
spcon
(
e
,
c
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
num
=
g
:
GetSum
(
Card
.
GetLevel
)
for
_
,
i
in
ipairs
(
prime
)
do
if
i
==
num
then
return
false
elseif
i
>
num
then
return
true
end
end
return
true
return
not
cm
.
isprime
(
num
)
end
function
cm
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
GetLevel
()
>
0
...
...
expansions/script/c11451457.lua
View file @
bfc645b3
...
...
@@ -67,6 +67,11 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
filter2
(
c
,
e
,
tp
,
rc
)
if
not
(
c
:
IsType
(
TYPE_SYNCHRO
)
and
(
rc
%
c
:
GetLevel
()
==
0
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
))
then
return
false
end
--continuously updating
local
tab
=
{
14000248
,
14010109
,
79029117
,
98731001
}
for
_
,
code
in
pairs
(
tab
)
do
if
c
:
GetOriginalCode
()
==
code
then
return
true
end
end
local
eset
=
{
c
:
IsHasEffect
(
EFFECT_SPSUMMON_CONDITION
)}
for
_
,
te
in
pairs
(
eset
)
do
if
te
:
GetValue
()
==
0
then
return
true
end
...
...
expansions/script/c13254053.lua
View file @
bfc645b3
--魔能(飞球)反应炉
local
m
=
c
13254053
local
m
=
13254053
local
cm
=
_G
[
"c"
..
m
]
xpcall
(
function
()
require
(
"expansions/script/tama"
)
end
,
function
()
require
(
"script/tama"
)
end
)
function
cm
.
initial_effect
(
c
)
...
...
expansions/script/c13257241.lua
View file @
bfc645b3
...
...
@@ -54,8 +54,7 @@ function cm.eqop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
eq
=
c
:
GetEquipGroup
()
local
g
=
eq
:
Filter
(
Card
.
IsAbleToDeck
,
nil
)
local
op
=
0
if
c
:
IsFacedown
()
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
c
:
IsFacedown
()
then
return
end
if
g
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
...
...
expansions/script/c13257333.lua
View file @
bfc645b3
...
...
@@ -14,6 +14,7 @@ function cm.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCost
(
cm
.
eqcost
)
e2
:
SetTarget
(
cm
.
eqtg
)
e2
:
SetOperation
(
cm
.
eqop
)
...
...
expansions/script/c13257336.lua
View file @
bfc645b3
...
...
@@ -29,6 +29,7 @@ function cm.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCost
(
cm
.
bmcost
)
e2
:
SetTarget
(
cm
.
bmtg
)
e2
:
SetOperation
(
cm
.
bmop
)
...
...
expansions/script/c15000057.lua
View file @
bfc645b3
...
...
@@ -71,7 +71,7 @@ function c15000057.chainfilter(re,tp,cid)
return
not
re
:
GetHandler
():
IsCode
(
15000060
)
end
function
c15000057
.
ffilter
(
c
,
fc
,
sub
,
mg
,
sg
)
return
not
sg
or
sg
:
FilterCount
(
aux
.
TRUE
,
c
)
==
0
or
sg
:
IsExists
(
c15000057
.
f2filter
,
1
,
c
,
c
:
GetLeftScale
(
))
return
c
:
IsType
(
TYPE_PENDULUM
)
and
(
not
sg
or
sg
:
FilterCount
(
aux
.
TRUE
,
c
)
==
0
or
sg
:
IsExists
(
c15000057
.
f2filter
,
1
,
c
,
c
:
GetLeftScale
()
))
end
function
c15000057
.
f2filter
(
c
,
les
)
return
c
:
IsFusionType
(
TYPE_PENDULUM
)
and
(
c
:
GetLeftScale
()
==
les
or
c
:
GetLeftScale
()
==
les
+
1
or
c
:
GetLeftScale
()
==
les
-
1
)
...
...
@@ -141,7 +141,7 @@ function c15000057.thop(e)
end
end
function
c15000057
.
limcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
(
re
:
IsHasType
(
EFFECT_TYPE_TRIGGER_F
)
or
re
:
IsHasType
(
EFFECT_TYPE_TRIGGER_O
)
or
re
:
IsHasType
(
EFFECT_TYPE_QUICK_F
)
or
re
:
IsHasType
(
EFFECT_TYPE_QUICK_O
))
and
re
:
IsHasProperty
(
EFFECT_FLAG_DELAY
)
and
(
re
:
GetCode
(
EVENT_SUMMON_SUCCESS
)
or
re
:
GetCode
(
EVENT_SPSUMMON_SUCCESS
)
)
and
re
:
GetHandler
():
IsLocation
(
LOCATION_MZONE
)
return
re
:
IsHasType
(
EFFECT_TYPE_SINGLE
)
and
(
re
:
IsHasType
(
EFFECT_TYPE_TRIGGER_F
)
or
re
:
IsHasType
(
EFFECT_TYPE_TRIGGER_O
)
or
re
:
IsHasType
(
EFFECT_TYPE_QUICK_F
)
or
re
:
IsHasType
(
EFFECT_TYPE_QUICK_O
))
and
re
:
IsHasProperty
(
EFFECT_FLAG_DELAY
)
and
(
bit
.
band
(
re
:
GetCode
(),
EVENT_SUMMON_SUCCESS
)
~=
0
or
bit
.
band
(
re
:
GetCode
(),
EVENT_SPSUMMON_SUCCESS
)
~=
0
)
and
re
:
GetHandler
():
IsLocation
(
LOCATION_MZONE
)
end
function
c15000057
.
limop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateActivation
(
ev
)
...
...
expansions/script/c15000540.lua
View file @
bfc645b3
...
...
@@ -21,7 +21,6 @@ function cm.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_FLIP
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -102,9 +101,6 @@ end
function
cm
.
filter
(
c
)
return
c
:
IsCanOverlay
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
m
)
==
0
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_ONFIELD
+
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsCanOverlay
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsCanOverlay
,
tp
,
0
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
1
,
nil
)
end
...
...
@@ -134,8 +130,7 @@ end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
pos
=
Duel
.
SelectPosition
(
tp
,
e
:
GetHandler
(),
POS_FACEUP_ATTACK
+
POS_FACEUP_DEFENSE
)
Duel
.
ChangePosition
(
e
:
GetHandler
(),
pos
)
e
:
GetHandler
():
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
Duel
.
ChangePosition
(
e
:
GetHandler
(),
pos
,
pos
,
pos
,
pos
,
true
)
end
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_ONFIELD
+
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsCanOverlay
()
end
...
...
expansions/script/c15000541.lua
View file @
bfc645b3
...
...
@@ -8,7 +8,6 @@ function cm.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_FLIP
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -43,9 +42,6 @@ end
function
cm
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0xf3b
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
15000541
)
and
(
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_ATTACK
)
or
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
))
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
m
)
==
0
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
...
...
@@ -73,8 +69,7 @@ function cm.sp2con(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
ChangePosition
(
e
:
GetHandler
(),
POS_FACEUP
)
e
:
GetHandler
():
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
Duel
.
ChangePosition
(
e
:
GetHandler
(),
POS_FACEUP_DEFENSE
,
POS_FACEUP_DEFENSE
,
POS_FACEUP_DEFENSE
,
POS_FACEUP_DEFENSE
,
true
)
end
function
cm
.
sp2tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
expansions/script/c15000542.lua
View file @
bfc645b3
...
...
@@ -8,7 +8,6 @@ function cm.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_FLIP
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -40,9 +39,6 @@ function cm.initial_effect(c)
e3
:
SetOperation
(
cm
.
spop1
)
c
:
RegisterEffect
(
e3
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
m
)
==
0
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
aux
.
TURE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TURE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
...
...
@@ -63,8 +59,7 @@ function cm.tgcon(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
ChangePosition
(
e
:
GetHandler
(),
POS_FACEUP
)
e
:
GetHandler
():
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
Duel
.
ChangePosition
(
e
:
GetHandler
(),
POS_FACEUP_DEFENSE
,
POS_FACEUP_DEFENSE
,
POS_FACEUP_DEFENSE
,
POS_FACEUP_DEFENSE
,
true
)
end
function
cm
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
aux
.
TURE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
...
...
expansions/script/c15000543.lua
View file @
bfc645b3
...
...
@@ -8,7 +8,6 @@ function cm.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_FLIP
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -43,9 +42,6 @@ end
function
cm
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0xf3b
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
m
)
==
0
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
...
...
@@ -64,8 +60,7 @@ function cm.sp2con(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
ChangePosition
(
e
:
GetHandler
(),
POS_FACEUP
)
e
:
GetHandler
():
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
Duel
.
ChangePosition
(
e
:
GetHandler
(),
POS_FACEUP_DEFENSE
,
POS_FACEUP_DEFENSE
,
POS_FACEUP_DEFENSE
,
POS_FACEUP_DEFENSE
,
true
)
end
function
cm
.
sp2tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
...
...
expansions/script/c15000547.lua
View file @
bfc645b3
...
...
@@ -8,7 +8,6 @@ function cm.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_FLIP
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -43,9 +42,6 @@ end
function
cm
.
filter
(
c
)
return
c
:
IsType
(
TYPE_FLIP
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsCode
(
15000547
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
m
)
==
0
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
...
...
@@ -63,8 +59,7 @@ function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
ChangePosition
(
e
:
GetHandler
(),
POS_FACEUP_DEFENSE
)
e
:
GetHandler
():
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
Duel
.
ChangePosition
(
e
:
GetHandler
(),
POS_FACEUP_DEFENSE
,
POS_FACEUP_DEFENSE
,
POS_FACEUP_DEFENSE
,
POS_FACEUP_DEFENSE
,
true
)
end
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
cm
.
filter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
expansions/script/c15000548.lua
View file @
bfc645b3
...
...
@@ -8,7 +8,6 @@ function cm.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_FLIP
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -43,9 +42,6 @@ end
function
cm
.
filter
(
c
)
return
((
c
:
IsType
(
TYPE_FLIP
)
and
c
:
IsType
(
TYPE_MONSTER
))
or
c
:
IsSetCard
(
0xf3b
))
and
c
:
IsAbleToDeck
()
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
m
)
==
0
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
...
...
@@ -69,8 +65,7 @@ function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
ChangePosition
(
e
:
GetHandler
(),
POS_FACEUP_DEFENSE
)
e
:
GetHandler
():
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
Duel
.
ChangePosition
(
e
:
GetHandler
(),
POS_FACEUP_DEFENSE
,
POS_FACEUP_DEFENSE
,
POS_FACEUP_DEFENSE
,
POS_FACEUP_DEFENSE
,
true
)
end
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c190001.lua
View file @
bfc645b3
...
...
@@ -51,9 +51,11 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e6
)
--search
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetCategory
(
CATEGORY_TODECK
)
e7
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e7
:
SetCode
(
EVENT_FREE_CHAIN
)
e7
:
SetRange
(
LOCATION_HAND
)
e7
:
SetCountLimit
(
1
,
190001
)
e7
:
SetCost
(
cm
.
efcost
)
e7
:
SetTarget
(
cm
.
eftg
)
e7
:
SetOperation
(
cm
.
efop
)
...
...
@@ -125,6 +127,8 @@ function cm.efop(e,tp,eg,ep,ev,re,r,rp,chk)
e4
:
SetValue
(
1
)
e4
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e4
,
true
)
Duel
.
BreakEffect
()
Duel
.
SendtoDeck
(
e
:
GetHandler
(),
nil
,
2
,
REASON_EFFECT
)
end
end
function
cm
.
e2filter
(
e
,
re
)
...
...
expansions/script/c33701379.lua
View file @
bfc645b3
...
...
@@ -62,7 +62,7 @@ function cm.sprcon(e,c)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
sprfilter
,
tp
,
LOCATION_HAND
,
LOCATION_ONFIELD
,
LOCATION_GRAVE
,
0
,
nil
)
return
g
:
CheckSubGroup
(
cm
.
fselect
,
9
,
9
,
tp
,
s
c
)
return
g
:
CheckSubGroup
(
cm
.
fselect
,
9
,
9
,
tp
,
c
)
end
function
cm
.
sprop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
sprfilter
,
tp
,
LOCATION_HAND
,
LOCATION_ONFIELD
,
LOCATION_GRAVE
,
0
,
nil
)
...
...
expansions/script/c40009560.lua
View file @
bfc645b3
...
...
@@ -7,6 +7,7 @@ function c40009560.initial_effect(c)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e1
:
SetOperation
(
c40009560
.
op
)
e1
:
SetCountLimit
(
1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
...
...
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