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
0c3fd148
Commit
0c3fd148
authored
Feb 28, 2023
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
fca01d36
Changes
13
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
391 additions
and
199 deletions
+391
-199
expansions/script/c121082832.lua
expansions/script/c121082832.lua
+147
-94
expansions/script/c127541563.lua
expansions/script/c127541563.lua
+0
-1
expansions/script/c22348030.lua
expansions/script/c22348030.lua
+22
-0
expansions/script/c22348031.lua
expansions/script/c22348031.lua
+23
-0
expansions/script/c22348032.lua
expansions/script/c22348032.lua
+23
-0
expansions/script/c22348033.lua
expansions/script/c22348033.lua
+29
-6
expansions/script/c22348034.lua
expansions/script/c22348034.lua
+31
-8
expansions/script/c22348035.lua
expansions/script/c22348035.lua
+31
-8
expansions/script/c22348036.lua
expansions/script/c22348036.lua
+23
-0
expansions/script/c22348039.lua
expansions/script/c22348039.lua
+25
-13
expansions/script/c64800180.lua
expansions/script/c64800180.lua
+22
-41
expansions/script/c64800181.lua
expansions/script/c64800181.lua
+5
-13
expansions/script/c64800182.lua
expansions/script/c64800182.lua
+10
-15
No files found.
expansions/script/c121082832.lua
View file @
0c3fd148
This diff is collapsed.
Click to expand it.
expansions/script/c127541563.lua
View file @
0c3fd148
...
...
@@ -131,7 +131,6 @@ function c127541563.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
true
end
local
g
=
Duel
.
GetMatchingGroup
(
c127541563
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
LOCATION_DECK
)
end
function
c127541563
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x103
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
expansions/script/c22348030.lua
View file @
0c3fd148
...
...
@@ -55,6 +55,14 @@ function cm.initial_effect(c)
e7
:
SetRange
(
LOCATION_SZONE
+
LOCATION_HAND
)
e7
:
SetCondition
(
c22348030
.
drcon2
)
c
:
RegisterEffect
(
e7
)
--send replace
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_SINGLE
)
e8
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT_CB
)
e8
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e8
:
SetCondition
(
c22348030
.
repcon
)
e8
:
SetOperation
(
c22348030
.
repop
)
c
:
RegisterEffect
(
e8
)
end
function
c22348030
.
filter
(
c
)
return
not
c
:
IsPublic
()
...
...
@@ -155,6 +163,20 @@ function c22348030.drcon2(e)
return
c
:
IsPublic
()
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
22348037
)
end
function
c22348030
.
repcon
(
e
)
local
c
=
e
:
GetHandler
()
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_DESTROY
)
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
22348039
)
end
function
c22348030
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
)
e1
:
SetValue
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
c
:
RegisterEffect
(
e1
)
end
expansions/script/c22348031.lua
View file @
0c3fd148
...
...
@@ -54,6 +54,14 @@ function cm.initial_effect(c)
e7
:
SetRange
(
LOCATION_SZONE
+
LOCATION_HAND
)
e7
:
SetCondition
(
c22348031
.
actcon2
)
c
:
RegisterEffect
(
e7
)
--send replace
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_SINGLE
)
e8
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT_CB
)
e8
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e8
:
SetCondition
(
c22348031
.
repcon
)
e8
:
SetOperation
(
c22348031
.
repop
)
c
:
RegisterEffect
(
e8
)
end
function
c22348031
.
filter
(
c
)
return
not
c
:
IsPublic
()
...
...
@@ -173,6 +181,21 @@ function c22348031.actcon2(e)
local
d
=
Duel
.
GetAttackTarget
()
return
((
a
and
c22348031
.
cfilter
(
a
,
tp
))
or
(
d
and
c22348031
.
cfilter
(
d
,
tp
)))
and
c
:
IsPublic
()
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
22348037
)
end
function
c22348031
.
repcon
(
e
)
local
c
=
e
:
GetHandler
()
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_DESTROY
)
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
22348039
)
end
function
c22348031
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
)
e1
:
SetValue
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
c
:
RegisterEffect
(
e1
)
end
expansions/script/c22348032.lua
View file @
0c3fd148
...
...
@@ -55,6 +55,14 @@ function cm.initial_effect(c)
e7
:
SetRange
(
LOCATION_SZONE
+
LOCATION_HAND
)
e7
:
SetCondition
(
c22348032
.
drcon2
)
c
:
RegisterEffect
(
e7
)
--send replace
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_SINGLE
)
e8
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT_CB
)
e8
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e8
:
SetCondition
(
c22348032
.
repcon
)
e8
:
SetOperation
(
c22348032
.
repop
)
c
:
RegisterEffect
(
e8
)
end
function
c22348032
.
filter
(
c
)
return
not
c
:
IsPublic
()
...
...
@@ -167,4 +175,19 @@ function c22348032.indct(e,re,r,rp)
return
1
else
return
0
end
end
function
c22348032
.
repcon
(
e
)
local
c
=
e
:
GetHandler
()
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_DESTROY
)
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
22348039
)
end
function
c22348032
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
)
e1
:
SetValue
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
c
:
RegisterEffect
(
e1
)
end
expansions/script/c22348033.lua
View file @
0c3fd148
...
...
@@ -3,14 +3,14 @@ local m=22348033
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--special summon
--
local e1=Effect.CreateEffect(c)
--
e1:SetType(EFFECT_TYPE_FIELD)
--
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
--
e1:SetCode(EFFECT_SPSUMMON_PROC)
--
e1:SetRange(LOCATION_HAND)
--
local e1=Effect.CreateEffect(c)
--
e1:SetType(EFFECT_TYPE_FIELD)
--
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
--
e1:SetCode(EFFECT_SPSUMMON_PROC)
--
e1:SetRange(LOCATION_HAND)
-- e1:SetCondition(c22348033.sprcon)
-- e1:SetOperation(c22348033.sprop)
--
c:RegisterEffect(e1)
--
c:RegisterEffect(e1)
--tohand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
22348033
,
2
))
...
...
@@ -55,6 +55,14 @@ function cm.initial_effect(c)
e7
:
SetRange
(
LOCATION_SZONE
+
LOCATION_HAND
)
e7
:
SetCondition
(
c22348033
.
drcon2
)
c
:
RegisterEffect
(
e7
)
--send replace
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_SINGLE
)
e8
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT_CB
)
e8
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e8
:
SetCondition
(
c22348033
.
repcon
)
e8
:
SetOperation
(
c22348033
.
repop
)
c
:
RegisterEffect
(
e8
)
end
function
c22348033
.
filter
(
c
)
return
not
c
:
IsPublic
()
...
...
@@ -161,6 +169,21 @@ function c22348033.limval(e,re,rp)
local
rc
=
re
:
GetHandler
()
return
rc
:
IsLocation
(
LOCATION_MZONE
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
rc
:
IsSummonType
(
SUMMON_TYPE_NORMAL
)
end
function
c22348033
.
repcon
(
e
)
local
c
=
e
:
GetHandler
()
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_DESTROY
)
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
22348039
)
end
function
c22348033
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
)
e1
:
SetValue
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
c
:
RegisterEffect
(
e1
)
end
expansions/script/c22348034.lua
View file @
0c3fd148
...
...
@@ -3,14 +3,14 @@ local m=22348034
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--special summon
--
local e1=Effect.CreateEffect(c)
--
e1:SetType(EFFECT_TYPE_FIELD)
--
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
--
e1:SetCode(EFFECT_SPSUMMON_PROC)
--
e1:SetRange(LOCATION_HAND)
--
e1:SetCondition(c22348034.sprcon)
--
e1:SetOperation(c22348034.sprop)
--
c:RegisterEffect(e1)
--
local e1=Effect.CreateEffect(c)
--
e1:SetType(EFFECT_TYPE_FIELD)
--
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
--
e1:SetCode(EFFECT_SPSUMMON_PROC)
--
e1:SetRange(LOCATION_HAND)
--
e1:SetCondition(c22348034.sprcon)
--
e1:SetOperation(c22348034.sprop)
--
c:RegisterEffect(e1)
--tohand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
22348034
,
2
))
...
...
@@ -53,6 +53,14 @@ function cm.initial_effect(c)
e7
:
SetRange
(
LOCATION_SZONE
+
LOCATION_HAND
)
e7
:
SetCondition
(
c22348034
.
drcon2
)
c
:
RegisterEffect
(
e7
)
--send replace
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_SINGLE
)
e8
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT_CB
)
e8
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e8
:
SetCondition
(
c22348034
.
repcon
)
e8
:
SetOperation
(
c22348034
.
repop
)
c
:
RegisterEffect
(
e8
)
end
...
...
@@ -164,3 +172,18 @@ function c22348034.negop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_CARD
,
0
,
22348034
)
Duel
.
NegateEffect
(
ev
)
end
function
c22348034
.
repcon
(
e
)
local
c
=
e
:
GetHandler
()
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_DESTROY
)
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
22348039
)
end
function
c22348034
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
)
e1
:
SetValue
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
c
:
RegisterEffect
(
e1
)
end
expansions/script/c22348035.lua
View file @
0c3fd148
...
...
@@ -3,14 +3,14 @@ local m=22348035
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--special summon
--
local e1=Effect.CreateEffect(c)
--
e1:SetType(EFFECT_TYPE_FIELD)
--
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
--
e1:SetCode(EFFECT_SPSUMMON_PROC)
--
e1:SetRange(LOCATION_HAND)
--
e1:SetCondition(c22348035.sprcon)
--
e1:SetOperation(c22348035.sprop)
--
c:RegisterEffect(e1)
--
local e1=Effect.CreateEffect(c)
--
e1:SetType(EFFECT_TYPE_FIELD)
--
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
--
e1:SetCode(EFFECT_SPSUMMON_PROC)
--
e1:SetRange(LOCATION_HAND)
--
e1:SetCondition(c22348035.sprcon)
--
e1:SetOperation(c22348035.sprop)
--
c:RegisterEffect(e1)
--tohand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
22348035
,
2
))
...
...
@@ -56,6 +56,14 @@ function cm.initial_effect(c)
e7
:
SetRange
(
LOCATION_SZONE
+
LOCATION_HAND
)
e7
:
SetCondition
(
c22348035
.
drcon2
)
c
:
RegisterEffect
(
e7
)
--send replace
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_SINGLE
)
e8
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT_CB
)
e8
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e8
:
SetCondition
(
c22348035
.
repcon
)
e8
:
SetOperation
(
c22348035
.
repop
)
c
:
RegisterEffect
(
e8
)
end
function
c22348035
.
filter
(
c
)
return
not
c
:
IsPublic
()
...
...
@@ -161,6 +169,21 @@ end
function
c22348035
.
target
(
e
,
c
)
return
c
:
IsSetCard
(
0x700
)
and
c
:
IsFaceup
()
end
function
c22348035
.
repcon
(
e
)
local
c
=
e
:
GetHandler
()
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_DESTROY
)
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
22348039
)
end
function
c22348035
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
)
e1
:
SetValue
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
c
:
RegisterEffect
(
e1
)
end
expansions/script/c22348036.lua
View file @
0c3fd148
...
...
@@ -66,6 +66,14 @@ function cm.initial_effect(c)
e7
:
SetRange
(
LOCATION_SZONE
+
LOCATION_HAND
)
e7
:
SetCondition
(
c22348036
.
drcon2
)
c
:
RegisterEffect
(
e7
)
--send replace
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_SINGLE
)
e8
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT_CB
)
e8
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e8
:
SetCondition
(
c22348036
.
repcon
)
e8
:
SetOperation
(
c22348036
.
repop
)
c
:
RegisterEffect
(
e8
)
end
function
c22348036
.
filter
(
c
)
return
not
c
:
IsPublic
()
...
...
@@ -186,6 +194,21 @@ function c22348036.drcon2(e)
local
c
=
e
:
GetHandler
()
return
c
:
IsPublic
()
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
22348037
)
end
function
c22348036
.
repcon
(
e
)
local
c
=
e
:
GetHandler
()
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_DESTROY
)
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
22348039
)
end
function
c22348036
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
)
e1
:
SetValue
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
c
:
RegisterEffect
(
e1
)
end
...
...
expansions/script/c22348039.lua
View file @
0c3fd148
...
...
@@ -23,20 +23,32 @@ function cm.initial_effect(c)
e3
:
SetCondition
(
c22348039
.
descon
)
c
:
RegisterEffect
(
e3
)
--send replace
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetRange
(
LOCATION_SZONE
)
e5
:
SetCode
(
EFFECT_SEND_REPLACE
)
e5
:
SetTarget
(
c22348039
.
reptg
)
e5
:
SetValue
(
c22348039
.
repval
)
-- local e5=Effect.CreateEffect(c)
-- e5:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
-- e5:SetRange(LOCATION_SZONE)
-- e5:SetCode(EFFECT_SEND_REPLACE)
-- e5:SetTarget(c22348039.reptg)
-- e5:SetValue(c22348039.repval)
-- c:RegisterEffect(e5)
-- local g=Group.CreateGroup()
-- g:KeepAlive()
-- e5:SetLabelObject(g)
-- local e6=e5:Clone()
-- e6:SetRange(LOCATION_HAND)
-- e6:SetCondition(c22348039.descon)
-- c:RegisterEffect(e6)
--change effect type
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e4
:
SetCode
(
22348039
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetTargetRange
(
1
,
0
)
c
:
RegisterEffect
(
e4
)
local
e5
=
e4
:
Clone
()
e5
:
SetRange
(
LOCATION_HAND
)
e5
:
SetCondition
(
c22348039
.
descon
)
c
:
RegisterEffect
(
e5
)
local
g
=
Group
.
CreateGroup
()
g
:
KeepAlive
()
e5
:
SetLabelObject
(
g
)
local
e6
=
e5
:
Clone
()
e6
:
SetRange
(
LOCATION_HAND
)
e6
:
SetCondition
(
c22348039
.
descon
)
c
:
RegisterEffect
(
e6
)
end
function
c22348039
.
descon
(
e
)
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c64800180.lua
View file @
0c3fd148
...
...
@@ -14,7 +14,7 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e0
)
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_
SEARCH
+
CATEGORY_TOGRAVE
)
e1
:
SetCategory
(
CATEGORY_
DECKDES
+
CATEGORY_TOGRAVE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_TO_GRAVE
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
...
...
@@ -24,11 +24,11 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--equip
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_
EQUIP
)
e2
:
SetCategory
(
CATEGORY_
SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCountLimit
(
1
,
m
+
200
)
e2
:
SetCost
(
cm
.
spcost
)
e2
:
SetTarget
(
cm
.
target
)
e2
:
SetOperation
(
cm
.
activate
)
c
:
RegisterEffect
(
e2
)
...
...
@@ -77,46 +77,27 @@ function cm.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
end
end
function
cm
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
if
chk
==
0
then
return
ec
and
ec
:
IsReleasable
()
end
Duel
.
Release
(
ec
,
REASON_COST
)
end
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsLevel
(
10
)
and
c
:
IsCanBe
EffectTarget
(
e
)
and
c
:
IsCanBe
SpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
)
return
c
:
IsLevel
(
10
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
ft
>
1
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ft
=
1
end
if
ft
>
2
then
ft
=
2
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
#
g
,
0
,
0
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
if
chk
==
0
then
return
ec
and
Duel
.
GetMZoneCount
(
tp
,
ec
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
ft
<=
0
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
1
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
return
end
if
g
:
GetCount
()
>
ft
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
g
=
g
:
Select
(
tp
,
ft
,
ft
,
nil
)
local
max
=
2
if
Duel
.
GetMZoneCount
(
tp
)
<
1
then
return
end
if
Duel
.
GetMZoneCount
(
tp
)
<
2
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
max
=
1
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
cm
.
spfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
max
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
AdjustAll
()
end
expansions/script/c64800181.lua
View file @
0c3fd148
...
...
@@ -30,7 +30,6 @@ function cm.initial_effect(c)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCountLimit
(
1
,
m
+
200
)
e2
:
SetCondition
(
cm
.
con
)
e2
:
SetTarget
(
cm
.
target
)
e2
:
SetOperation
(
cm
.
activate
)
c
:
RegisterEffect
(
e2
)
end
...
...
@@ -79,14 +78,15 @@ function cm.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
function
cm
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetEquipTarget
()
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
return
ec
and
ec
:
IsLevelAbove
(
1
)
end
function
cm
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_EQUIP
)
e3
:
SetCode
(
EFFECT_
UPDAT
E_LEVEL
)
e3
:
SetCode
(
EFFECT_
CHANG
E_LEVEL
)
e3
:
SetValue
(
10
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e3
)
...
...
@@ -94,14 +94,6 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_EQUIP
)
e2
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
e2
:
SetCondition
(
cm
.
dircon
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e2
)
end
function
cm
.
dircon
(
e
)
return
e
:
GetHandler
():
GetEquipTarget
():
GetControler
()
==
e
:
GetHandlerPlayer
()
end
expansions/script/c64800182.lua
View file @
0c3fd148
...
...
@@ -14,7 +14,7 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e0
)
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_
SEARCH
+
CATEGORY_TOHAND
)
e1
:
SetCategory
(
CATEGORY_
DECKDES
+
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_TO_GRAVE
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
...
...
@@ -30,7 +30,6 @@ function cm.initial_effect(c)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCountLimit
(
1
,
m
+
200
)
e2
:
SetCondition
(
cm
.
con
)
e2
:
SetTarget
(
cm
.
target
)
e2
:
SetOperation
(
cm
.
activate
)
c
:
RegisterEffect
(
e2
)
end
...
...
@@ -64,29 +63,30 @@ end
function
cm
.
eqlimit
(
e
,
c
)
return
c
==
e
:
GetLabelObject
()
end
function
cm
.
tgfilter
(
c
)
function
cm
.
tgfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x412
)
and
not
c
:
IsCode
(
64800182
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
cm
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
-
1
and
Duel
.
IsExistingMatchingCard
(
cm
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
cm
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
cm
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetEquipTarget
()
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
return
ec
and
ec
:
IsLevelAbove
(
1
)
end
function
cm
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_EQUIP
)
e3
:
SetCode
(
EFFECT_
UPDAT
E_LEVEL
)
e3
:
SetCode
(
EFFECT_
CHANG
E_LEVEL
)
e3
:
SetValue
(
10
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e3
)
...
...
@@ -95,11 +95,6 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
e5
:
SetType
(
EFFECT_TYPE_EQUIP
)
e5
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e5
:
SetValue
(
1
)
e
2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e
5
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e5
)
end
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