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
6c2195a4
Commit
6c2195a4
authored
Oct 11, 2022
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
1bb2c451
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
47 additions
and
38 deletions
+47
-38
expansions/script/c11451011.lua
expansions/script/c11451011.lua
+4
-0
expansions/script/c11451013.lua
expansions/script/c11451013.lua
+4
-0
expansions/script/c11451014.lua
expansions/script/c11451014.lua
+4
-0
expansions/script/c11451531.lua
expansions/script/c11451531.lua
+2
-3
expansions/script/c11451532.lua
expansions/script/c11451532.lua
+2
-3
expansions/script/c11451533.lua
expansions/script/c11451533.lua
+2
-3
expansions/script/c11451534.lua
expansions/script/c11451534.lua
+6
-4
expansions/script/c11451535.lua
expansions/script/c11451535.lua
+1
-1
expansions/script/c11451536.lua
expansions/script/c11451536.lua
+1
-1
expansions/script/c11451800.lua
expansions/script/c11451800.lua
+2
-4
expansions/script/c130005101.lua
expansions/script/c130005101.lua
+1
-1
expansions/script/c130005111.lua
expansions/script/c130005111.lua
+1
-1
expansions/script/c146747.lua
expansions/script/c146747.lua
+1
-1
expansions/script/c33201010.lua
expansions/script/c33201010.lua
+1
-1
expansions/script/c33201014.lua
expansions/script/c33201014.lua
+1
-1
expansions/script/c60002008.lua
expansions/script/c60002008.lua
+3
-3
expansions/script/c82221014.lua
expansions/script/c82221014.lua
+9
-9
expansions/script/c82221015.lua
expansions/script/c82221015.lua
+1
-1
expansions/script/c9910447.lua
expansions/script/c9910447.lua
+1
-1
No files found.
expansions/script/c11451011.lua
View file @
6c2195a4
...
@@ -99,6 +99,10 @@ function cm.tdop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -99,6 +99,10 @@ function cm.tdop(e,tp,eg,ep,ev,re,r,rp)
e
:
Reset
()
e
:
Reset
()
end
end
end
end
function
cm
.
tdfilter
(
c
,
lab
)
local
fid
=
c
:
GetFlagEffectLabel
(
m
)
return
c
:
IsLocation
(
LOCATION_DECK
)
and
fid
and
fid
==
lab
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISABLE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISABLE
)
...
...
expansions/script/c11451013.lua
View file @
6c2195a4
...
@@ -96,6 +96,10 @@ function cm.tdop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -96,6 +96,10 @@ function cm.tdop(e,tp,eg,ep,ev,re,r,rp)
e
:
Reset
()
e
:
Reset
()
end
end
end
end
function
cm
.
tdfilter
(
c
,
lab
)
local
fid
=
c
:
GetFlagEffectLabel
(
m
)
return
c
:
IsLocation
(
LOCATION_DECK
)
and
fid
and
fid
==
lab
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAttackPos
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
aux
.
ExceptThisCard
(
e
))
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAttackPos
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
aux
.
ExceptThisCard
(
e
))
...
...
expansions/script/c11451014.lua
View file @
6c2195a4
...
@@ -102,6 +102,10 @@ function cm.tdop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -102,6 +102,10 @@ function cm.tdop(e,tp,eg,ep,ev,re,r,rp)
e
:
Reset
()
e
:
Reset
()
end
end
end
end
function
cm
.
tdfilter
(
c
,
lab
)
local
fid
=
c
:
GetFlagEffectLabel
(
m
)
return
c
:
IsLocation
(
LOCATION_DECK
)
and
fid
and
fid
==
lab
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
...
...
expansions/script/c11451531.lua
View file @
6c2195a4
--日冕之斗争军势
--日冕之斗争军势
--21.05.31
--21.05.31
local
m
=
11451531
local
cm
,
m
=
GetID
()
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
--advance
--advance
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
@@ -44,7 +43,7 @@ function cm.adcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -44,7 +43,7 @@ function cm.adcon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
c
:
GetFlagEffect
(
m
)
>
0
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
11451461
,
6
))
e1
:
SetDescription
(
aux
.
Stringid
(
11451461
,
6
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
expansions/script/c11451532.lua
View file @
6c2195a4
--月蚀之斗争军势
--月蚀之斗争军势
--21.06.01
--21.06.01
local
m
=
11451532
local
cm
,
m
=
GetID
()
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
--advance
--advance
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
@@ -44,7 +43,7 @@ function cm.adcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -44,7 +43,7 @@ function cm.adcon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
c
:
GetFlagEffect
(
m
)
>
0
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
11451461
,
6
))
e1
:
SetDescription
(
aux
.
Stringid
(
11451461
,
6
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
expansions/script/c11451533.lua
View file @
6c2195a4
--朝露之斗争军势
--朝露之斗争军势
--21.06.04
--21.06.04
local
m
=
11451533
local
cm
,
m
=
GetID
()
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
--advance
--advance
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
@@ -53,7 +52,7 @@ function cm.adcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -53,7 +52,7 @@ function cm.adcon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
c
:
GetFlagEffect
(
m
)
>
0
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
11451461
,
6
))
e1
:
SetDescription
(
aux
.
Stringid
(
11451461
,
6
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
expansions/script/c11451534.lua
View file @
6c2195a4
--汐潮之斗争军势
--汐潮之斗争军势
--21.06.17
--21.06.17
local
m
=
11451534
local
cm
,
m
=
GetID
()
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
--advance
--advance
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
@@ -70,11 +69,14 @@ function cm.adcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -70,11 +69,14 @@ function cm.adcon(e,tp,eg,ep,ev,re,r,rp)
return
true
return
true
end
end
function
cm
.
adcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
adcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
Card
.
IsFacedown
,
1
,
nil
)
return
eg
:
IsExists
(
cm
.
fdfilter
,
1
,
nil
)
end
function
cm
.
fdfilter
(
c
)
return
c
:
IsOnField
()
and
c
:
IsFacedown
()
end
end
function
cm
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
c
:
GetFlagEffect
(
m
)
>
0
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
11451461
,
6
))
e1
:
SetDescription
(
aux
.
Stringid
(
11451461
,
6
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
expansions/script/c11451535.lua
View file @
6c2195a4
...
@@ -38,7 +38,7 @@ function cm.adcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -38,7 +38,7 @@ function cm.adcon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
c
:
GetFlagEffect
(
m
)
>
0
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
11451461
,
6
))
e1
:
SetDescription
(
aux
.
Stringid
(
11451461
,
6
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
expansions/script/c11451536.lua
View file @
6c2195a4
...
@@ -39,7 +39,7 @@ function cm.adcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -39,7 +39,7 @@ function cm.adcon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
c
:
GetFlagEffect
(
m
)
>
0
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
11451461
,
6
))
e1
:
SetDescription
(
aux
.
Stringid
(
11451461
,
6
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
expansions/script/c11451800.lua
View file @
6c2195a4
--星薙剑豪-轰炎
--星薙剑豪-轰炎
local
m
=
11451800
local
cm
,
m
=
GetID
()
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
--Synchro summon
--Synchro summon
aux
.
AddSynchroProcedure
(
c
,
nil
,
aux
.
NonTuner
(
nil
),
1
)
aux
.
AddSynchroProcedure
(
c
,
nil
,
aux
.
NonTuner
(
nil
),
1
)
...
@@ -44,7 +43,7 @@ function cm.initial_effect(c)
...
@@ -44,7 +43,7 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
local
KOISHI_CHECK
=
false
local
KOISHI_CHECK
=
false
if
io.open
then
KOISHI_CHECK
=
true
end
if
io
and
io
.open
then
KOISHI_CHECK
=
true
end
function
cm
.
checkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
checkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
()
==
Duel
.
GetAttacker
()
or
e
:
GetHandler
()
==
Duel
.
GetAttackTarget
()
return
e
:
GetHandler
()
==
Duel
.
GetAttacker
()
or
e
:
GetHandler
()
==
Duel
.
GetAttackTarget
()
end
end
...
@@ -58,7 +57,6 @@ function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -58,7 +57,6 @@ function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
f
:
write
(
"cm[0]=cm[0]+1\n"
)
f
:
write
(
"cm[0]=cm[0]+1\n"
)
f
:
flush
()
f
:
flush
()
f
:
close
()
f
:
close
()
assert
(
false
,
"这是一条测试信息"
)
end
end
end
end
end
end
...
...
expansions/script/c130005101.lua
View file @
6c2195a4
...
@@ -67,7 +67,7 @@ function rsdc.HandActFun(c)
...
@@ -67,7 +67,7 @@ function rsdc.HandActFun(c)
return
e1
return
e1
end
end
function
cm
.
handcon
(
e
)
function
cm
.
handcon
(
e
)
return
Duel
.
GetMatchingGroupCount
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_ONFIELD
,
0
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
return
Duel
.
GetMatchingGroupCount
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_ONFIELD
,
0
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
==
0
end
end
------------------------------------
------------------------------------
...
...
expansions/script/c130005111.lua
View file @
6c2195a4
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
if
not
pcall
(
function
()
require
(
"expansions/script/c130005101"
)
end
)
then
require
(
"script/c130005101"
)
end
if
not
pcall
(
function
()
require
(
"expansions/script/c130005101"
)
end
)
then
require
(
"script/c130005101"
)
end
local
m
,
cm
=
rscf
.
DefineCard
(
130005111
,
"DragonCaller"
)
local
m
,
cm
=
rscf
.
DefineCard
(
130005111
,
"DragonCaller"
)
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
local
e1
,
e2
,
e3
=
rsdc
.
SynchroFun
(
c
,
m
,
ATTRIBUTE_W
IND
,
"td"
,
rscost
.
reglabel
(
100
),
cm
.
tdtg
,
cm
.
tdop
,
cm
.
limit
)
local
e1
,
e2
,
e3
=
rsdc
.
SynchroFun
(
c
,
m
,
ATTRIBUTE_W
ATER
,
"td"
,
rscost
.
reglabel
(
100
),
cm
.
tdtg
,
cm
.
tdop
,
cm
.
limit
)
end
end
function
cm
.
limit
(
c
,
rc
)
function
cm
.
limit
(
c
,
rc
)
return
rc
:
IsOnField
()
and
rc
:
IsFaceup
()
return
rc
:
IsOnField
()
and
rc
:
IsFaceup
()
...
...
expansions/script/c146747.lua
View file @
6c2195a4
...
@@ -51,7 +51,7 @@ function c146747.regop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,7 +51,7 @@ function c146747.regop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c146747
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
function
c146747
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
c
:
IsCode
(
146747
)
and
bit
.
band
(
sumtype
,
SUMMON_TYPE_LINK
)
==
SUMMON_TYPE_LINK
return
c
:
IsCode
(
146747
)
--
and bit.band(sumtype,SUMMON_TYPE_LINK)==SUMMON_TYPE_LINK
end
end
function
c146747
.
matfilter
(
c
)
function
c146747
.
matfilter
(
c
)
return
c
:
IsLinkSetCard
(
0x12f
)
and
not
c
:
IsLinkType
(
TYPE_LINK
)
return
c
:
IsLinkSetCard
(
0x12f
)
and
not
c
:
IsLinkType
(
TYPE_LINK
)
...
...
expansions/script/c33201010.lua
View file @
6c2195a4
...
@@ -106,7 +106,7 @@ function MJ_VHisc.op(e,tp,eg,ep,ev,re,r,rp)
...
@@ -106,7 +106,7 @@ function MJ_VHisc.op(e,tp,eg,ep,ev,re,r,rp)
return
return
end
end
Duel
.
ConfirmDecktop
(
tp
,
dcount
-
seq
)
Duel
.
ConfirmDecktop
(
tp
,
dcount
-
seq
)
if
Duel
.
SendtoGrave
(
tgcard
,
REASON_EFFECT
)
then
if
Duel
.
SendtoGrave
(
tgcard
,
REASON_EFFECT
)
and
tgcard
:
IsLocation
(
LOCATION_GRAVE
)
then
local
token
=
Duel
.
CreateToken
(
tp
,
33201009
)
local
token
=
Duel
.
CreateToken
(
tp
,
33201009
)
Duel
.
MoveToField
(
token
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
Duel
.
MoveToField
(
token
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
local
lv
=
tgcard
:
GetOriginalLevel
()
local
lv
=
tgcard
:
GetOriginalLevel
()
...
...
expansions/script/c33201014.lua
View file @
6c2195a4
...
@@ -15,7 +15,7 @@ function s.initial_effect(c)
...
@@ -15,7 +15,7 @@ function s.initial_effect(c)
end
end
function
s
.
rmfilter
(
c
)
function
s
.
rmfilter
(
c
)
return
c
:
IsRace
(
RACE_ZOMBIE
)
and
c
:
IsAbleToRemove
()
return
c
:
IsRace
(
RACE_ZOMBIE
)
and
c
:
Is
LevelAbove
(
0
)
and
c
:
Is
AbleToRemove
()
end
end
function
s
.
rdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
s
.
rdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
s
.
rmfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
s
.
rmfilter
(
chkc
)
end
...
...
expansions/script/c60002008.lua
View file @
6c2195a4
...
@@ -31,7 +31,7 @@ function c60002008.thfil(c)
...
@@ -31,7 +31,7 @@ function c60002008.thfil(c)
return
c
:
IsAbleToHand
()
and
c
:
IsSetCard
(
0xa9e1
)
return
c
:
IsAbleToHand
()
and
c
:
IsSetCard
(
0xa9e1
)
end
end
function
c60002008
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c60002008
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c60002008
.
thfil
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_
SYNCHRO
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c60002008
.
thfil
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_
LINK
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c60002008
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60002008
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -80,7 +80,7 @@ function c60002008.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -80,7 +80,7 @@ function c60002008.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c60002008
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c60002008
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
if
chk
==
0
then
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
1
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
28062326
,
0
,
0x4011
,
800
,
500
,
1
,
RACE_PLANT
,
ATTRIBUTE_EARTH
,
POS_FACEUP_DEFENSE
,
tp
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
28062326
,
0
,
0x4011
,
800
,
500
,
1
,
RACE_PLANT
,
ATTRIBUTE_EARTH
,
POS_FACEUP_DEFENSE
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
2
,
0
,
0
)
...
@@ -96,7 +96,7 @@ function c60002008.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -96,7 +96,7 @@ function c60002008.spop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
return
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
return
end
if
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
<
2
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<
2
then
return
end
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
28062326
,
0
,
0x4011
,
800
,
500
,
1
,
RACE_PLANT
,
ATTRIBUTE_EARTH
,
POS_FACEUP
,
tp
)
then
return
end
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
28062326
,
0
,
0x4011
,
800
,
500
,
1
,
RACE_PLANT
,
ATTRIBUTE_EARTH
,
POS_FACEUP
,
tp
)
then
return
end
for
i
=
1
,
2
do
for
i
=
1
,
2
do
local
token
=
Duel
.
CreateToken
(
tp
,
28062326
)
local
token
=
Duel
.
CreateToken
(
tp
,
28062326
)
...
...
expansions/script/c82221014.lua
View file @
6c2195a4
...
@@ -2,7 +2,7 @@ local m=82221014
...
@@ -2,7 +2,7 @@ local m=82221014
local
cm
=
_G
[
"c"
..
m
]
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
m
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCountLimit
(
1
,
m
+
EFFECT_COUNT_CODE_OATH
)
...
@@ -25,10 +25,16 @@ function cm.initial_effect(c)
...
@@ -25,10 +25,16 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--act from deck
--act from deck
local
e4
=
e1
:
Clone
()
local
e4
=
e1
:
Clone
()
e4
:
SetDescription
(
aux
.
Stringid
(
9212051
,
0
))
e4
:
SetRange
(
LOCATION_HAND
+
LOCATION_DECK
)
e4
:
SetRange
(
LOCATION_HAND
+
LOCATION_DECK
)
e4
:
SetCost
(
cm
.
actcost2
)
e4
:
SetCost
(
cm
.
actcost2
)
e4
:
SetCountLimit
(
1
,
m
+
EFFECT_COUNT_CODE_OATH
)
e4
:
SetCountLimit
(
1
,
m
+
EFFECT_COUNT_CODE_OATH
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
local
e5
=
e4
:
Clone
()
e5
:
SetDescription
(
aux
.
Stringid
(
9212051
,
1
))
e5
:
SetTarget
(
cm
.
cptg
)
e5
:
SetOperation
(
cm
.
cpop
)
c
:
RegisterEffect
(
e5
)
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetCode
(
EFFECT_ACTIVATE_COST
)
e5
:
SetCode
(
EFFECT_ACTIVATE_COST
)
...
@@ -38,12 +44,6 @@ function cm.initial_effect(c)
...
@@ -38,12 +44,6 @@ function cm.initial_effect(c)
e5
:
SetTarget
(
cm
.
actarget
)
e5
:
SetTarget
(
cm
.
actarget
)
e5
:
SetOperation
(
cm
.
costop
)
e5
:
SetOperation
(
cm
.
costop
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_FIELD
)
e6
:
SetCode
(
EFFECT_SPSUMMON_PROC_G
)
e6
:
SetRange
(
LOCATION_DECK
)
e6
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
)
c
:
RegisterEffect
(
e6
)
end
end
function
cm
.
cfilter
(
c
)
function
cm
.
cfilter
(
c
)
return
c
:
IsSetCard
(
0xb4
)
and
bit
.
band
(
c
:
GetType
(),
0x81
)
==
0x81
and
not
c
:
IsPublic
()
return
c
:
IsSetCard
(
0xb4
)
and
bit
.
band
(
c
:
GetType
(),
0x81
)
==
0x81
and
not
c
:
IsPublic
()
...
@@ -74,9 +74,9 @@ end
...
@@ -74,9 +74,9 @@ end
function
cm
.
cptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
cptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
if
Duel
.
GetFlagEffect
(
tp
,
82211014
)
==
0
then
if
Duel
.
GetFlagEffect
(
tp
,
82211014
)
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
m
)
==
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
cpfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
)
return
Duel
.
GetFlagEffect
(
tp
,
m
)
==
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
cpfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
else
else
return
Duel
.
GetFlagEffect
(
tp
,
m
)
==
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
cpfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
return
Duel
.
GetFlagEffect
(
tp
,
m
)
==
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
cpfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
end
end
end
end
Duel
.
RegisterFlagEffect
(
tp
,
m
,
RESET_CHAIN
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
m
,
RESET_CHAIN
,
0
,
1
)
...
...
expansions/script/c82221015.lua
View file @
6c2195a4
...
@@ -92,7 +92,7 @@ function cm.cfilter(c)
...
@@ -92,7 +92,7 @@ function cm.cfilter(c)
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
end
end
function
cm
.
tfcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
tfcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DRAW
and
eg
:
IsExists
(
cm
.
cfilter
,
1
,
nil
)
and
Duel
.
GetFlagEffect
(
tp
,
m
)
==
0
return
r
&
REASON_DRAW
==
0
and
eg
:
IsExists
(
cm
.
cfilter
,
1
,
nil
)
and
Duel
.
GetFlagEffect
(
tp
,
m
)
==
0
end
end
function
cm
.
tftg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
tftg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
...
...
expansions/script/c9910447.lua
View file @
6c2195a4
...
@@ -160,7 +160,7 @@ function c9910447.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -160,7 +160,7 @@ function c9910447.activate(e,tp,eg,ep,ev,re,r,rp)
tc
:
CompleteProcedure
()
tc
:
CompleteProcedure
()
end
end
if
not
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
then
return
end
if
not
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
then
return
end
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
()
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e2
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
...
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