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
8e183438
Commit
8e183438
authored
Nov 12, 2023
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
e31f9e00
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
91 additions
and
110 deletions
+91
-110
expansions/no81.cdb
expansions/no81.cdb
+0
-0
expansions/pics/29027255.jpg
expansions/pics/29027255.jpg
+0
-0
expansions/pics/29027256.jpg
expansions/pics/29027256.jpg
+0
-0
expansions/script/c11451011.lua
expansions/script/c11451011.lua
+13
-3
expansions/script/c11451012.lua
expansions/script/c11451012.lua
+10
-0
expansions/script/c11451013.lua
expansions/script/c11451013.lua
+10
-0
expansions/script/c11451014.lua
expansions/script/c11451014.lua
+10
-0
expansions/script/c11451015.lua
expansions/script/c11451015.lua
+10
-0
expansions/script/c11451017.lua
expansions/script/c11451017.lua
+10
-0
expansions/script/c11451549.lua
expansions/script/c11451549.lua
+11
-4
expansions/script/c29027255.lua
expansions/script/c29027255.lua
+0
-90
expansions/script/c33711109.lua
expansions/script/c33711109.lua
+1
-1
expansions/script/c40010842.lua
expansions/script/c40010842.lua
+2
-2
expansions/script/c40010844.lua
expansions/script/c40010844.lua
+5
-5
expansions/script/c53721002.lua
expansions/script/c53721002.lua
+1
-0
expansions/script/c53721004.lua
expansions/script/c53721004.lua
+1
-0
expansions/script/c53721006.lua
expansions/script/c53721006.lua
+1
-0
expansions/script/c53721008.lua
expansions/script/c53721008.lua
+1
-0
expansions/script/c67200624.lua
expansions/script/c67200624.lua
+3
-3
expansions/script/c98920490.lua
expansions/script/c98920490.lua
+2
-2
No files found.
expansions/no81.cdb
View file @
8e183438
No preview for this file type
expansions/pics/29027255.jpg
deleted
100644 → 0
View file @
e31f9e00
46.5 KB
expansions/pics/29027256.jpg
deleted
100644 → 0
View file @
e31f9e00
142 KB
expansions/script/c11451011.lua
View file @
8e183438
...
...
@@ -64,6 +64,15 @@ function cm.initial_effect(c)
ge0
:
SetCode
(
EVENT_PHASE_START
+
PHASE_DRAW
)
ge0
:
SetOperation
(
cm
.
geop
)
Duel
.
RegisterEffect
(
ge0
,
0
)
--disable
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
)
e0
:
SetCode
(
EFFECT_DISABLE
)
e0
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e0
:
SetTarget
(
function
(
e
,
c
)
return
c
:
IsOriginalSetCard
(
0x5977
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsHasEffect
(
EFFECT_DISABLE_TRAPMONSTER
)
and
c
:
IsHasEffect
(
EFFECT_DISABLE_TRAPMONSTER
):
GetHandlerPlayer
()
==
e
:
GetHandlerPlayer
()
end
)
Duel
.
RegisterEffect
(
e0
,
0
)
local
e1
=
e0
:
Clone
()
Duel
.
RegisterEffect
(
e1
,
1
)
local
_IsActiveType
=
Effect
.
IsActiveType
local
_GetActiveType
=
Effect
.
GetActiveType
local
_GetActivateLocation
=
Effect
.
GetActivateLocation
...
...
@@ -217,7 +226,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EFFECT_DISABLE
)
e4
:
SetRange
(
LOCATION_ONFIELD
)
e4
:
SetTargetRange
(
LOCATION_
ONFIELD
,
LOCATION_ONFIELD
)
e4
:
SetTargetRange
(
LOCATION_
SZONE
,
LOCATION_SZONE
)
e4
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e4
:
SetTarget
(
cm
.
distg
)
e4
:
SetReset
(
RESET_PHASE
+
PHASE_END
+
RESET_EVENT
+
RESETS_STANDARD
)
...
...
@@ -243,11 +252,11 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
distg
(
e
,
c
)
local
tp
=
e
:
GetHandlerPlayer
()
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
not
c
:
IsType
(
TYPE_TRAPMONSTER
)
and
aux
.
GetColumn
(
c
,
tp
)
==
aux
.
GetColumn
(
e
:
GetHandler
(),
tp
)
and
c
~=
e
:
GetHandler
()
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
aux
.
GetColumn
(
c
,
tp
)
==
aux
.
GetColumn
(
e
:
GetHandler
(),
tp
)
and
c
~=
e
:
GetHandler
()
end
function
cm
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
loc
,
seq
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
,
CHAININFO_TRIGGERING_SEQUENCE
)
if
loc
&
LOCATION_
ONFIELD
~=
0
and
seq
<=
4
and
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
seq
==
aux
.
GetColumn
(
e
:
GetHandler
(),
rp
)
and
not
re
:
GetHandler
():
IsType
(
TYPE_TRAPMONSTER
)
and
re
:
GetHandler
()
~=
e
:
GetHandler
()
then
if
loc
&
LOCATION_
SZONE
~=
0
and
seq
<=
4
and
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
seq
==
aux
.
GetColumn
(
e
:
GetHandler
(),
rp
)
and
re
:
GetHandler
()
~=
e
:
GetHandler
()
then
Duel
.
NegateEffect
(
ev
)
end
end
...
...
@@ -264,6 +273,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetCode
(
EFFECT_ADD_TYPE
)
e0
:
SetValue
(
TYPE_TRAP
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
)
c
:
RegisterEffect
(
e0
,
true
)
local
te2
=
te
:
Clone
()
...
...
expansions/script/c11451012.lua
View file @
8e183438
...
...
@@ -74,6 +74,15 @@ function cm.initial_effect(c)
ge0
:
SetCode
(
EVENT_PHASE_START
+
PHASE_DRAW
)
ge0
:
SetOperation
(
cm
.
geop
)
Duel
.
RegisterEffect
(
ge0
,
0
)
--disable
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
)
e0
:
SetCode
(
EFFECT_DISABLE
)
e0
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e0
:
SetTarget
(
function
(
e
,
c
)
return
c
:
IsOriginalSetCard
(
0x5977
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsHasEffect
(
EFFECT_DISABLE_TRAPMONSTER
)
and
c
:
IsHasEffect
(
EFFECT_DISABLE_TRAPMONSTER
):
GetHandlerPlayer
()
==
e
:
GetHandlerPlayer
()
end
)
Duel
.
RegisterEffect
(
e0
,
0
)
local
e1
=
e0
:
Clone
()
Duel
.
RegisterEffect
(
e1
,
1
)
local
_IsActiveType
=
Effect
.
IsActiveType
local
_GetActiveType
=
Effect
.
GetActiveType
local
_GetActivateLocation
=
Effect
.
GetActivateLocation
...
...
@@ -265,6 +274,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetCode
(
EFFECT_ADD_TYPE
)
e0
:
SetValue
(
TYPE_TRAP
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
)
c
:
RegisterEffect
(
e0
,
true
)
local
te2
=
te
:
Clone
()
...
...
expansions/script/c11451013.lua
View file @
8e183438
...
...
@@ -63,6 +63,15 @@ function cm.initial_effect(c)
ge0
:
SetCode
(
EVENT_PHASE_START
+
PHASE_DRAW
)
ge0
:
SetOperation
(
cm
.
geop
)
Duel
.
RegisterEffect
(
ge0
,
0
)
--disable
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
)
e0
:
SetCode
(
EFFECT_DISABLE
)
e0
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e0
:
SetTarget
(
function
(
e
,
c
)
return
c
:
IsOriginalSetCard
(
0x5977
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsHasEffect
(
EFFECT_DISABLE_TRAPMONSTER
)
and
c
:
IsHasEffect
(
EFFECT_DISABLE_TRAPMONSTER
):
GetHandlerPlayer
()
==
e
:
GetHandlerPlayer
()
end
)
Duel
.
RegisterEffect
(
e0
,
0
)
local
e1
=
e0
:
Clone
()
Duel
.
RegisterEffect
(
e1
,
1
)
local
_IsActiveType
=
Effect
.
IsActiveType
local
_GetActiveType
=
Effect
.
GetActiveType
local
_GetActivateLocation
=
Effect
.
GetActivateLocation
...
...
@@ -210,6 +219,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetCode
(
EFFECT_ADD_TYPE
)
e0
:
SetValue
(
TYPE_TRAP
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
)
c
:
RegisterEffect
(
e0
,
true
)
local
te2
=
te
:
Clone
()
...
...
expansions/script/c11451014.lua
View file @
8e183438
...
...
@@ -65,6 +65,15 @@ function cm.initial_effect(c)
ge0
:
SetCode
(
EVENT_PHASE_START
+
PHASE_DRAW
)
ge0
:
SetOperation
(
cm
.
geop
)
Duel
.
RegisterEffect
(
ge0
,
0
)
--disable
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
)
e0
:
SetCode
(
EFFECT_DISABLE
)
e0
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e0
:
SetTarget
(
function
(
e
,
c
)
return
c
:
IsOriginalSetCard
(
0x5977
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsHasEffect
(
EFFECT_DISABLE_TRAPMONSTER
)
and
c
:
IsHasEffect
(
EFFECT_DISABLE_TRAPMONSTER
):
GetHandlerPlayer
()
==
e
:
GetHandlerPlayer
()
end
)
Duel
.
RegisterEffect
(
e0
,
0
)
local
e1
=
e0
:
Clone
()
Duel
.
RegisterEffect
(
e1
,
1
)
local
_IsActiveType
=
Effect
.
IsActiveType
local
_GetActiveType
=
Effect
.
GetActiveType
local
_GetActivateLocation
=
Effect
.
GetActivateLocation
...
...
@@ -216,6 +225,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetCode
(
EFFECT_ADD_TYPE
)
e0
:
SetValue
(
TYPE_TRAP
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
)
c
:
RegisterEffect
(
e0
,
true
)
local
te2
=
te
:
Clone
()
...
...
expansions/script/c11451015.lua
View file @
8e183438
...
...
@@ -67,6 +67,15 @@ function cm.initial_effect(c)
ge1
:
SetCondition
(
cm
.
regcon
)
ge1
:
SetOperation
(
cm
.
regop
)
--Duel.RegisterEffect(ge1,0)
--disable
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
)
e0
:
SetCode
(
EFFECT_DISABLE
)
e0
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e0
:
SetTarget
(
function
(
e
,
c
)
return
c
:
IsOriginalSetCard
(
0x5977
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsHasEffect
(
EFFECT_DISABLE_TRAPMONSTER
)
and
c
:
IsHasEffect
(
EFFECT_DISABLE_TRAPMONSTER
):
GetHandlerPlayer
()
==
e
:
GetHandlerPlayer
()
end
)
Duel
.
RegisterEffect
(
e0
,
0
)
local
e1
=
e0
:
Clone
()
Duel
.
RegisterEffect
(
e1
,
1
)
local
_IsActiveType
=
Effect
.
IsActiveType
local
_GetActiveType
=
Effect
.
GetActiveType
local
_GetActivateLocation
=
Effect
.
GetActivateLocation
...
...
@@ -227,6 +236,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetCode
(
EFFECT_ADD_TYPE
)
e0
:
SetValue
(
TYPE_TRAP
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
)
c
:
RegisterEffect
(
e0
,
true
)
local
te2
=
te
:
Clone
()
...
...
expansions/script/c11451017.lua
View file @
8e183438
...
...
@@ -60,6 +60,15 @@ function cm.initial_effect(c)
ge1
:
SetCode
(
EVENT_MOVE
)
ge1
:
SetOperation
(
cm
.
regop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
--disable
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
)
e0
:
SetCode
(
EFFECT_DISABLE
)
e0
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e0
:
SetTarget
(
function
(
e
,
c
)
return
c
:
IsOriginalSetCard
(
0x5977
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsHasEffect
(
EFFECT_DISABLE_TRAPMONSTER
)
and
c
:
IsHasEffect
(
EFFECT_DISABLE_TRAPMONSTER
):
GetHandlerPlayer
()
==
e
:
GetHandlerPlayer
()
end
)
Duel
.
RegisterEffect
(
e0
,
0
)
local
e1
=
e0
:
Clone
()
Duel
.
RegisterEffect
(
e1
,
1
)
local
_IsActiveType
=
Effect
.
IsActiveType
local
_GetActiveType
=
Effect
.
GetActiveType
local
_GetActivateLocation
=
Effect
.
GetActivateLocation
...
...
@@ -186,6 +195,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetCode
(
EFFECT_ADD_TYPE
)
e0
:
SetValue
(
TYPE_TRAP
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
)
c
:
RegisterEffect
(
e0
,
true
)
local
te2
=
te
:
Clone
()
...
...
expansions/script/c11451549.lua
View file @
8e183438
...
...
@@ -65,16 +65,23 @@ function cm.CheckGroupRecursiveCapture(bool,sg,g,f,min,max,ext_params)
if
not
bool
or
not
Auxiliary
.
SubGroupCaptured
:
IsContains
(
c
)
then
sg
:
AddCard
(
c
)
if
not
Auxiliary
.
GCheckAdditional
or
Auxiliary
.
GCheckAdditional
(
sg
,
c
,
eg
,
f
,
min
,
max
,
ext_params
)
then
if
(
#
sg
>=
min
and
#
sg
<=
max
and
f
(
sg
,
table.unpack
(
ext_params
)))
or
(
#
sg
<
max
and
cm
.
CheckGroupRecursiveCapture
(
false
,
sg
,
eg
,
f
,
min
,
max
,
ext_params
))
then
if
(
#
sg
>=
min
and
#
sg
<=
max
and
f
(
sg
,
table.unpack
(
ext_params
)))
then
--
or (#sg<max and cm.CheckGroupRecursiveCapture(false,sg,eg,f,min,max,ext_params)) then
--Debug.Message(cm[0])
Auxiliary
.
SubGroupCaptured
:
Merge
(
sg
)
for
sc
in
aux
.
Next
(
sg
)
do
Auxiliary
.
SubGroupCaptured
:
Merge
(
eg
:
Filter
(
cm
.
slfilter
,
nil
,
sc
))
end
end
if
#
sg
<
max
then
cm
.
CheckGroupRecursiveCapture
(
false
,
sg
,
eg
,
f
,
min
,
max
,
ext_params
)
end
end
sg
:
RemoveCard
(
c
)
eg
:
RemoveCard
(
c
)
--eg:RemoveCard(c)
eg
:
Sub
(
eg
:
Filter
(
cm
.
slfilter
,
nil
,
c
))
end
end
end
function
cm
.
slfilter
(
c
,
sc
)
return
c
:
IsLocation
(
sc
:
GetLocation
())
and
c
:
IsLevel
(
sc
:
GetLevel
())
end
function
cm
.
SelectSubGroup
(
g
,
tp
,
f
,
cancelable
,
min
,
max
,
...
)
Auxiliary
.
SubGroupCaptured
=
Group
.
CreateGroup
()
local
min
=
min
or
1
...
...
@@ -92,7 +99,7 @@ function cm.SelectSubGroup(g,tp,f,cancelable,min,max,...)
cm
.
CheckGroupRecursiveCapture
(
true
,
sg
,
g
,
f
,
min
,
max
,
ext_params
)
local
cg
=
Auxiliary
.
SubGroupCaptured
:
Clone
()
Auxiliary
.
SubGroupCaptured
:
Clear
()
--Debug.Message(cm[0])
--Debug.Message(cm[0])
cg
:
Sub
(
sg
)
finish
=
(
#
sg
>=
min
and
#
sg
<=
max
and
f
(
sg
,
...
))
if
#
cg
==
0
then
break
end
...
...
expansions/script/c29027255.lua
deleted
100644 → 0
View file @
e31f9e00
--方舟骑士-洛洛
c29027255
.
named_with_Arknight
=
1
function
c29027255
.
initial_effect
(
c
)
--link summon
c
:
EnableReviveLimit
()
aux
.
AddCodeList
(
c
,
29027256
)
aux
.
AddLinkProcedure
(
c
,
c29027255
.
matfilter
,
2
,
2
)
--search
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
29027255
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCountLimit
(
1
,
29027255
)
e1
:
SetCondition
(
c29027255
.
thcon
)
e1
:
SetTarget
(
c29027255
.
thtg
)
e1
:
SetOperation
(
c29027255
.
thop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_MATERIAL_CHECK
)
e2
:
SetValue
(
c29027255
.
valcheck
)
e2
:
SetLabelObject
(
e1
)
c
:
RegisterEffect
(
e2
)
--token
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
29027255
,
0
))
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOKEN
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e3
:
SetTarget
(
c29027255
.
tktg
)
e3
:
SetOperation
(
c29027255
.
tkop
)
c
:
RegisterEffect
(
e3
)
end
function
c29027255
.
matfilter
(
c
)
return
c
:
IsLinkSetCard
(
0x87af
)
or
(
c
:
IsSetCard
(
0x87af
)
or
(
_G
[
"c"
..
c
:
GetCode
()]
and
_G
[
"c"
..
c
:
GetCode
()].
named_with_Arknight
))
end
function
c29027255
.
mfilter
(
c
)
return
c
:
IsRace
(
RACE_SPELLCASTER
)
end
function
c29027255
.
valcheck
(
e
,
c
)
local
g
=
c
:
GetMaterial
()
if
g
:
IsExists
(
c29027255
.
mfilter
,
1
,
nil
)
then
e
:
GetLabelObject
():
SetLabel
(
1
)
else
e
:
GetLabelObject
():
SetLabel
(
0
)
end
end
function
c29027255
.
thfilter
(
c
)
return
(
c
:
IsSetCard
(
0x87af
)
or
(
_G
[
"c"
..
c
:
GetCode
()]
and
_G
[
"c"
..
c
:
GetCode
()].
named_with_Arknight
))
and
c
:
IsAbleToHand
()
and
c
:
IsType
(
TYPE_SPELL
)
and
c
:
IsType
(
TYPE_RITUAL
)
end
function
c29027255
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_LINK
)
and
e
:
GetLabel
()
==
1
end
function
c29027255
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c29027255
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c29027255
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c29027255
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
function
c29027255
.
tktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
atk
=
c
:
GetAttack
()
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
29027256
,
0
,
TYPES_TOKEN_MONSTER
,
atk
,
0
,
1
,
RACE_SPELLCASTER
,
ATTRIBUTE_LIGHT
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
end
function
c29027255
.
tkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
atk
=
c
:
GetAttack
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
29027256
,
0
,
TYPES_TOKEN_MONSTER
,
atk
,
0
,
1
,
RACE_SPELLCASTER
,
ATTRIBUTE_LIGHT
)
then
return
end
local
token
=
Duel
.
CreateToken
(
tp
,
29027256
)
Duel
.
SpecialSummon
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
atk
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
token
:
RegisterEffect
(
e1
)
end
\ No newline at end of file
expansions/script/c33711109.lua
View file @
8e183438
...
...
@@ -88,7 +88,7 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
c
:
GetEquipTarget
()
if
xg
:
GetCount
()
>
0
then
local
code
=
xg
:
GetFirst
():
GetOriginalCode
()
tc
:
ReplaceEffect
(
code
,
0
)
tc
:
ReplaceEffect
(
code
,
RESET_EVENT
+
RESETS_STANDARD
)
end
--change setcard
local
e0
=
Effect
.
CreateEffect
(
c
)
...
...
expansions/script/c40010842.lua
View file @
8e183438
...
...
@@ -35,8 +35,8 @@ function cm.initial_effect(c)
e2
:
SetCountLimit
(
1
,
m
)
e2
:
SetCondition
(
cm
.
spcon
)
e2
:
SetCost
(
cm
.
spcost
)
e2
:
SetTarget
(
cm
.
s
p
tg
)
e2
:
SetOperation
(
cm
.
s
p
op
)
e2
:
SetTarget
(
cm
.
s
um
tg
)
e2
:
SetOperation
(
cm
.
s
um
op
)
c
:
RegisterEffect
(
e2
)
--damage
local
e4
=
Effect
.
CreateEffect
(
c
)
...
...
expansions/script/c40010844.lua
View file @
8e183438
...
...
@@ -21,15 +21,15 @@ function cm.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetCategory
(
CATEGORY_DRAW
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetRange
(
LOCATION_
M
ZONE
)
e2
:
SetRange
(
LOCATION_
S
ZONE
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetCondition
(
cm
.
drcon
)
e2
:
SetTarget
(
cm
.
drtg
)
e2
:
SetOperation
(
cm
.
drop
)
c
:
RegisterEffect
(
e2
)
local
e
2
=
e3
:
Clone
()
e
2
:
SetCode
(
EVENT_FLIP
)
c
:
RegisterEffect
(
e
2
)
local
e
3
=
e2
:
Clone
()
e
3
:
SetCode
(
EVENT_FLIP
)
c
:
RegisterEffect
(
e
3
)
end
function
cm
.
thfilter
(
c
)
return
c
:
IsCode
(
40010592
)
and
c
:
IsSSetable
()
...
...
@@ -44,7 +44,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
=
eg
:
GetFirst
()
return
eg
:
GetCount
()
==
1
and
tg
~=
e
:
GetHandler
()
return
tg
:
IsType
(
TYPE_SPIRIT
)
and
tg
:
GetSummonPlayer
()
==
tp
end
function
cm
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
Duel
.
IsPlayerCanDraw
(
1
-
tp
,
1
)
end
...
...
expansions/script/c53721002.lua
View file @
8e183438
...
...
@@ -14,6 +14,7 @@ function cm.initial_effect(c)
e2
:
SetTarget
(
cm
.
destg
)
e2
:
SetOperation
(
cm
.
desop
)
c
:
RegisterEffect
(
e2
)
cm
.
sorison_cost_effect
=
e2
end
function
cm
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
...
...
expansions/script/c53721004.lua
View file @
8e183438
...
...
@@ -14,6 +14,7 @@ function cm.initial_effect(c)
e2
:
SetTarget
(
cm
.
distg
)
e2
:
SetOperation
(
cm
.
disop
)
c
:
RegisterEffect
(
e2
)
cm
.
sorison_cost_effect
=
e2
end
function
cm
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsFaceup
()
end
...
...
expansions/script/c53721006.lua
View file @
8e183438
...
...
@@ -14,6 +14,7 @@ function cm.initial_effect(c)
e2
:
SetTarget
(
cm
.
rmtg
)
e2
:
SetOperation
(
cm
.
rmop
)
c
:
RegisterEffect
(
e2
)
cm
.
sorison_cost_effect
=
e2
end
function
cm
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
...
...
expansions/script/c53721008.lua
View file @
8e183438
...
...
@@ -14,6 +14,7 @@ function cm.initial_effect(c)
e2
:
SetTarget
(
cm
.
settg
)
e2
:
SetOperation
(
cm
.
setop
)
c
:
RegisterEffect
(
e2
)
cm
.
sorison_cost_effect
=
e2
end
function
cm
.
setfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCanTurnSet
()
...
...
expansions/script/c67200624.lua
View file @
8e183438
...
...
@@ -14,11 +14,11 @@ function c67200624.condition(e,tp,eg,ep,ev,re,r,rp)
return
(
re
:
IsActiveType
(
TYPE_MONSTER
)
or
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
))
end
function
c67200624
.
costfilter
(
c
)
return
c
:
IsSetCard
(
0x567b
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsType
(
TYPE_CONTINUOUS
)
and
c
:
IsAbleToHandAsCost
()
return
c
:
IsSetCard
(
0x567b
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsType
(
TYPE_CONTINUOUS
)
and
c
:
IsAbleToHandAsCost
()
and
c
:
IsFaceupEx
()
end
function
c67200624
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
b1
=
Duel
.
IsExistingMatchingCard
(
c67200624
.
costfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
c
)
and
Duel
.
IsChainNegatable
(
ev
)
and
Duel
.
IsExistingMatchingCard
(
c67200624
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
nil
)
local
b1
=
Duel
.
IsExistingMatchingCard
(
c67200624
.
costfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
c
)
and
Duel
.
IsChainNegatable
(
ev
)
local
b2
=
Duel
.
IsExistingMatchingCard
(
c67200624
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
if
chk
==
0
then
return
b1
or
b2
end
local
g
=
Group
.
CreateGroup
()
...
...
@@ -34,7 +34,7 @@ function c67200624.target(e,tp,eg,ep,ev,re,r,rp,chk)
local
tc
=
g
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
if
tc
:
IsLocation
(
LOCATION_ONFIELD
)
then
e
:
SetLabel
(
1
)
e
:
SetCategory
(
CATEGORY_NEGATE
+
CATEGORY_
REMOVE
)
e
:
SetCategory
(
CATEGORY_NEGATE
+
CATEGORY_
TODECK
)
end
if
tc
:
IsLocation
(
LOCATION_GRAVE
)
then
e
:
SetLabel
(
2
)
...
...
expansions/script/c98920490.lua
View file @
8e183438
...
...
@@ -49,9 +49,9 @@ function c98920490.tdfilter(c)
end
function
c98920490
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
c98920490
.
tdfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c98920490
.
tdfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c98920490
.
tdfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
eg
,
1
,
0
,
0
)
end
function
c98920490
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
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