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
Huangnan
no81cards
Commits
1b4d4cdb
Commit
1b4d4cdb
authored
Aug 14, 2023
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
ca17ba4c
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
287 additions
and
105 deletions
+287
-105
expansions/script/c11451011.lua
expansions/script/c11451011.lua
+16
-8
expansions/script/c11451012.lua
expansions/script/c11451012.lua
+24
-8
expansions/script/c11451013.lua
expansions/script/c11451013.lua
+9
-8
expansions/script/c11451014.lua
expansions/script/c11451014.lua
+9
-8
expansions/script/c11451015.lua
expansions/script/c11451015.lua
+9
-8
expansions/script/c11451017.lua
expansions/script/c11451017.lua
+9
-8
expansions/script/c11451583.lua
expansions/script/c11451583.lua
+9
-8
expansions/script/c11451828.lua
expansions/script/c11451828.lua
+2
-2
expansions/script/c15000056.lua
expansions/script/c15000056.lua
+196
-42
expansions/script/c15005013.lua
expansions/script/c15005013.lua
+1
-1
expansions/script/c15005018.lua
expansions/script/c15005018.lua
+1
-1
expansions/script/c15005020.lua
expansions/script/c15005020.lua
+1
-1
expansions/script/c15005022.lua
expansions/script/c15005022.lua
+1
-1
expansions/script/c7489826.lua
expansions/script/c7489826.lua
+0
-1
No files found.
expansions/script/c11451011.lua
View file @
1b4d4cdb
...
@@ -78,14 +78,16 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -78,14 +78,16 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
if
chk
==
0
then
local
res
=
true
local
res
=
true
if
KOISHI_CHECK
then
if
KOISHI_CHECK
and
cm
[
tp
]
then
Duel
.
DisableActionCheck
(
true
)
--[[Duel.DisableActionCheck(true)
local
dc
=
Duel
.
CreateToken
(
tp
,
m
)
if not cm[tp] then
Duel
.
DisableActionCheck
(
false
)
cm[tp]=Duel.CreateToken(tp,m)
dc
:
SetCardData
(
CARDDATA_TYPE
,
TYPE_TRAP
)
end
res
=
dc
:
GetActivateEffect
():
IsActivatable
(
tp
,
true
)
local dc=cm[tp]
dc
:
SetCardData
(
CARDDATA_TYPE
,
TYPE_MONSTER
+
TYPE_PENDULUM
+
TYPE_EFFECT
)
Duel.DisableActionCheck(false)--]]
res
=
cm
[
tp
]:
GetActivateEffect
():
IsActivatable
(
tp
,
true
)
else
else
Debug
.
Message
(
"11"
)
res
=
(
c
:
CheckActivateEffect
(
false
,
false
,
false
)
~=
nil
)
res
=
(
c
:
CheckActivateEffect
(
false
,
false
,
false
)
~=
nil
)
end
end
return
res
and
((
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsLocation
(
LOCATION_HAND
))
or
(
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
and
c
:
IsLocation
(
LOCATION_EXTRA
)))
return
res
and
((
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsLocation
(
LOCATION_HAND
))
or
(
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
and
c
:
IsLocation
(
LOCATION_EXTRA
)))
...
@@ -279,4 +281,10 @@ function cm.descon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -279,4 +281,10 @@ function cm.descon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
end
end
\ No newline at end of file
Duel
.
DisableActionCheck
(
true
)
cm
[
0
]
=
Duel
.
CreateToken
(
0
,
m
)
cm
[
1
]
=
Duel
.
CreateToken
(
1
,
m
)
cm
[
0
]:
SetCardData
(
CARDDATA_TYPE
,
TYPE_TRAP
)
cm
[
1
]:
SetCardData
(
CARDDATA_TYPE
,
TYPE_TRAP
)
Duel
.
DisableActionCheck
(
false
)
\ No newline at end of file
expansions/script/c11451012.lua
View file @
1b4d4cdb
...
@@ -23,6 +23,7 @@ function cm.initial_effect(c)
...
@@ -23,6 +23,7 @@ function cm.initial_effect(c)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetLabelObject
(
e1
)
e3
:
SetLabelObject
(
e1
)
e3
:
SetTargetRange
(
1
,
0
)
e3
:
SetTargetRange
(
1
,
0
)
--e3:SetCost(cm.chkac)
e3
:
SetTarget
(
cm
.
actarget
)
e3
:
SetTarget
(
cm
.
actarget
)
e3
:
SetOperation
(
cm
.
costop
)
e3
:
SetOperation
(
cm
.
costop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
...
@@ -87,13 +88,8 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -87,13 +88,8 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
if
chk
==
0
then
local
res
=
true
local
res
=
true
if
KOISHI_CHECK
then
if
KOISHI_CHECK
and
cm
[
tp
]
then
Duel
.
DisableActionCheck
(
true
)
res
=
cm
[
tp
]:
GetActivateEffect
():
IsActivatable
(
tp
,
true
)
local
dc
=
Duel
.
CreateToken
(
tp
,
m
)
Duel
.
DisableActionCheck
(
false
)
dc
:
SetCardData
(
CARDDATA_TYPE
,
TYPE_TRAP
)
res
=
dc
:
GetActivateEffect
():
IsActivatable
(
tp
,
true
)
dc
:
SetCardData
(
CARDDATA_TYPE
,
TYPE_MONSTER
+
TYPE_PENDULUM
+
TYPE_EFFECT
)
else
else
res
=
(
c
:
CheckActivateEffect
(
false
,
false
,
false
)
~=
nil
)
res
=
(
c
:
CheckActivateEffect
(
false
,
false
,
false
)
~=
nil
)
end
end
...
@@ -172,6 +168,20 @@ function cm.retop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -172,6 +168,20 @@ function cm.retop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
e
:
GetLabelObject
()
local
tc
=
e
:
GetLabelObject
()
Duel
.
SendtoHand
(
tc
,
1
-
tp
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tc
,
1
-
tp
,
REASON_EFFECT
)
end
end
function
cm
.
chkac
(
e
,
c
,
tp
)
local
res
=
true
if
KOISHI_CHECK
then
Duel
.
DisableActionCheck
(
true
)
local
dc
=
Duel
.
CreateToken
(
tp
,
m
)
Duel
.
DisableActionCheck
(
false
)
dc
:
SetCardData
(
CARDDATA_TYPE
,
TYPE_TRAP
)
res
=
dc
:
GetActivateEffect
():
IsActivatable
(
tp
,
true
)
dc
:
SetCardData
(
CARDDATA_TYPE
,
TYPE_MONSTER
+
TYPE_PENDULUM
+
TYPE_EFFECT
)
else
res
=
(
c
:
CheckActivateEffect
(
false
,
false
,
false
)
~=
nil
)
end
return
res
end
function
cm
.
actarget
(
e
,
te
,
tp
)
function
cm
.
actarget
(
e
,
te
,
tp
)
return
te
:
GetHandler
()
==
e
:
GetHandler
()
and
te
==
e
:
GetLabelObject
()
return
te
:
GetHandler
()
==
e
:
GetHandler
()
and
te
==
e
:
GetLabelObject
()
end
end
...
@@ -268,4 +278,10 @@ function cm.descon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -268,4 +278,10 @@ function cm.descon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
end
end
\ No newline at end of file
Duel
.
DisableActionCheck
(
true
)
cm
[
0
]
=
Duel
.
CreateToken
(
0
,
m
)
cm
[
1
]
=
Duel
.
CreateToken
(
1
,
m
)
cm
[
0
]:
SetCardData
(
CARDDATA_TYPE
,
TYPE_TRAP
)
cm
[
1
]:
SetCardData
(
CARDDATA_TYPE
,
TYPE_TRAP
)
Duel
.
DisableActionCheck
(
false
)
\ No newline at end of file
expansions/script/c11451013.lua
View file @
1b4d4cdb
...
@@ -77,13 +77,8 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -77,13 +77,8 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
if
chk
==
0
then
local
res
=
true
local
res
=
true
if
KOISHI_CHECK
then
if
KOISHI_CHECK
and
cm
[
tp
]
then
Duel
.
DisableActionCheck
(
true
)
res
=
cm
[
tp
]:
GetActivateEffect
():
IsActivatable
(
tp
,
true
)
local
dc
=
Duel
.
CreateToken
(
tp
,
m
)
Duel
.
DisableActionCheck
(
false
)
dc
:
SetCardData
(
CARDDATA_TYPE
,
TYPE_TRAP
)
res
=
dc
:
GetActivateEffect
():
IsActivatable
(
tp
,
true
)
dc
:
SetCardData
(
CARDDATA_TYPE
,
TYPE_MONSTER
+
TYPE_PENDULUM
+
TYPE_EFFECT
)
else
else
res
=
(
c
:
CheckActivateEffect
(
false
,
false
,
false
)
~=
nil
)
res
=
(
c
:
CheckActivateEffect
(
false
,
false
,
false
)
~=
nil
)
end
end
...
@@ -221,4 +216,10 @@ function cm.descon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -221,4 +216,10 @@ function cm.descon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
end
end
\ No newline at end of file
Duel
.
DisableActionCheck
(
true
)
cm
[
0
]
=
Duel
.
CreateToken
(
0
,
m
)
cm
[
1
]
=
Duel
.
CreateToken
(
1
,
m
)
cm
[
0
]:
SetCardData
(
CARDDATA_TYPE
,
TYPE_TRAP
)
cm
[
1
]:
SetCardData
(
CARDDATA_TYPE
,
TYPE_TRAP
)
Duel
.
DisableActionCheck
(
false
)
\ No newline at end of file
expansions/script/c11451014.lua
View file @
1b4d4cdb
...
@@ -79,13 +79,8 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -79,13 +79,8 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
if
chk
==
0
then
local
res
=
true
local
res
=
true
if
KOISHI_CHECK
then
if
KOISHI_CHECK
and
cm
[
tp
]
then
Duel
.
DisableActionCheck
(
true
)
res
=
cm
[
tp
]:
GetActivateEffect
():
IsActivatable
(
tp
,
true
)
local
dc
=
Duel
.
CreateToken
(
tp
,
m
)
Duel
.
DisableActionCheck
(
false
)
dc
:
SetCardData
(
CARDDATA_TYPE
,
TYPE_TRAP
)
res
=
dc
:
GetActivateEffect
():
IsActivatable
(
tp
,
true
)
dc
:
SetCardData
(
CARDDATA_TYPE
,
TYPE_MONSTER
+
TYPE_PENDULUM
+
TYPE_EFFECT
)
else
else
res
=
(
c
:
CheckActivateEffect
(
false
,
false
,
false
)
~=
nil
)
res
=
(
c
:
CheckActivateEffect
(
false
,
false
,
false
)
~=
nil
)
end
end
...
@@ -239,4 +234,10 @@ function cm.descon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -239,4 +234,10 @@ function cm.descon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
end
end
\ No newline at end of file
Duel
.
DisableActionCheck
(
true
)
cm
[
0
]
=
Duel
.
CreateToken
(
0
,
m
)
cm
[
1
]
=
Duel
.
CreateToken
(
1
,
m
)
cm
[
0
]:
SetCardData
(
CARDDATA_TYPE
,
TYPE_TRAP
)
cm
[
1
]:
SetCardData
(
CARDDATA_TYPE
,
TYPE_TRAP
)
Duel
.
DisableActionCheck
(
false
)
\ No newline at end of file
expansions/script/c11451015.lua
View file @
1b4d4cdb
...
@@ -106,13 +106,8 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -106,13 +106,8 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
if
chk
==
0
then
local
res
=
true
local
res
=
true
if
KOISHI_CHECK
then
if
KOISHI_CHECK
and
cm
[
tp
]
then
Duel
.
DisableActionCheck
(
true
)
res
=
cm
[
tp
]:
GetActivateEffect
():
IsActivatable
(
tp
,
true
)
local
dc
=
Duel
.
CreateToken
(
tp
,
m
)
Duel
.
DisableActionCheck
(
false
)
dc
:
SetCardData
(
CARDDATA_TYPE
,
TYPE_TRAP
)
res
=
dc
:
GetActivateEffect
():
IsActivatable
(
tp
,
true
)
dc
:
SetCardData
(
CARDDATA_TYPE
,
TYPE_MONSTER
+
TYPE_LINK
+
TYPE_EFFECT
)
else
else
res
=
(
c
:
CheckActivateEffect
(
false
,
false
,
false
)
~=
nil
)
res
=
(
c
:
CheckActivateEffect
(
false
,
false
,
false
)
~=
nil
)
end
end
...
@@ -209,4 +204,10 @@ end
...
@@ -209,4 +204,10 @@ end
function
cm
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
end
end
\ No newline at end of file
Duel
.
DisableActionCheck
(
true
)
cm
[
0
]
=
Duel
.
CreateToken
(
0
,
m
)
cm
[
1
]
=
Duel
.
CreateToken
(
1
,
m
)
cm
[
0
]:
SetCardData
(
CARDDATA_TYPE
,
TYPE_TRAP
)
cm
[
1
]:
SetCardData
(
CARDDATA_TYPE
,
TYPE_TRAP
)
Duel
.
DisableActionCheck
(
false
)
\ No newline at end of file
expansions/script/c11451017.lua
View file @
1b4d4cdb
...
@@ -62,13 +62,8 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -62,13 +62,8 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
if
chk
==
0
then
local
res
=
true
local
res
=
true
if
KOISHI_CHECK
then
if
KOISHI_CHECK
and
cm
[
tp
]
then
Duel
.
DisableActionCheck
(
true
)
res
=
cm
[
tp
]:
GetActivateEffect
():
IsActivatable
(
tp
,
true
)
local
dc
=
Duel
.
CreateToken
(
tp
,
m
)
Duel
.
DisableActionCheck
(
false
)
dc
:
SetCardData
(
CARDDATA_TYPE
,
TYPE_TRAP
)
res
=
dc
:
GetActivateEffect
():
IsActivatable
(
tp
,
true
)
dc
:
SetCardData
(
CARDDATA_TYPE
,
TYPE_MONSTER
+
TYPE_EFFECT
)
else
else
res
=
(
c
:
CheckActivateEffect
(
false
,
false
,
false
)
~=
nil
)
res
=
(
c
:
CheckActivateEffect
(
false
,
false
,
false
)
~=
nil
)
end
end
...
@@ -190,4 +185,10 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -190,4 +185,10 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ShuffleHand
(
1
-
tp
)
Duel
.
ShuffleHand
(
1
-
tp
)
end
end
end
end
end
end
\ No newline at end of file
Duel
.
DisableActionCheck
(
true
)
cm
[
0
]
=
Duel
.
CreateToken
(
0
,
m
)
cm
[
1
]
=
Duel
.
CreateToken
(
1
,
m
)
cm
[
0
]:
SetCardData
(
CARDDATA_TYPE
,
TYPE_TRAP
)
cm
[
1
]:
SetCardData
(
CARDDATA_TYPE
,
TYPE_TRAP
)
Duel
.
DisableActionCheck
(
false
)
\ No newline at end of file
expansions/script/c11451583.lua
View file @
1b4d4cdb
...
@@ -91,13 +91,8 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -91,13 +91,8 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
if
chk
==
0
then
local
res
=
true
local
res
=
true
if
Card
.
SetCardData
then
if
KOISHI_CHECK
and
cm
[
tp
]
then
Duel
.
DisableActionCheck
(
true
)
res
=
cm
[
tp
]:
GetActivateEffect
():
IsActivatable
(
tp
,
true
)
local
dc
=
Duel
.
CreateToken
(
tp
,
m
)
Duel
.
DisableActionCheck
(
false
)
dc
:
SetCardData
(
CARDDATA_TYPE
,
TYPE_QUICKPLAY
+
TYPE_SPELL
)
res
=
dc
:
GetActivateEffect
():
IsActivatable
(
tp
)
dc
:
SetCardData
(
CARDDATA_TYPE
,
TYPE_SPELL
)
else
else
res
=
(
c
:
CheckActivateEffect
(
false
,
false
,
false
)
~=
nil
)
res
=
(
c
:
CheckActivateEffect
(
false
,
false
,
false
)
~=
nil
)
end
end
...
@@ -147,4 +142,10 @@ function cm.drop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -147,4 +142,10 @@ function cm.drop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetOperatedGroup
()
local
g
=
Duel
.
GetOperatedGroup
()
if
g
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_DECK
)
then
Duel
.
ShuffleDeck
(
tp
)
end
if
g
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_DECK
)
then
Duel
.
ShuffleDeck
(
tp
)
end
if
g
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_DECK
+
LOCATION_EXTRA
)
then
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
if
g
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_DECK
+
LOCATION_EXTRA
)
then
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
end
end
\ No newline at end of file
Duel
.
DisableActionCheck
(
true
)
cm
[
0
]
=
Duel
.
CreateToken
(
0
,
m
)
cm
[
1
]
=
Duel
.
CreateToken
(
1
,
m
)
cm
[
0
]:
SetCardData
(
CARDDATA_TYPE
,
TYPE_QUICKPLAY
+
TYPE_SPELL
)
cm
[
1
]:
SetCardData
(
CARDDATA_TYPE
,
TYPE_QUICKPLAY
+
TYPE_SPELL
)
Duel
.
DisableActionCheck
(
false
)
\ No newline at end of file
expansions/script/c11451828.lua
View file @
1b4d4cdb
...
@@ -121,7 +121,7 @@ function cm.initial_effect(c)
...
@@ -121,7 +121,7 @@ function cm.initial_effect(c)
rpz:RegisterEffect(e4)--]]
rpz:RegisterEffect(e4)--]]
return
sg
return
sg
end
end
end
end
end
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -177,7 +177,7 @@ function cm.tdop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -177,7 +177,7 @@ function cm.tdop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
cm
.
repfilter
(
c
,
tp
)
function
cm
.
repfilter
(
c
,
tp
)
return
cm
.
tdfilter
(
c
,
tp
)
and
c
:
IsOnField
()
and
c
:
IsFaceup
()
return
cm
.
tdfilter
(
c
,
tp
)
and
c
:
IsOnField
()
and
c
:
IsFaceup
()
and
c
:
GetFlagEffect
(
m
)
==
0
end
end
function
cm
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
cm
.
repfilter
,
1
,
nil
,
tp
)
and
rp
~=
tp
end
if
chk
==
0
then
return
eg
:
IsExists
(
cm
.
repfilter
,
1
,
nil
,
tp
)
and
rp
~=
tp
end
...
...
expansions/script/c15000056.lua
View file @
1b4d4cdb
local
m
=
15000056
local
m
=
15000056
local
cm
=
_G
[
"c"
..
m
]
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"色带神·莎布尼古拉丝"
cm
.
name
=
"色带神·莎布尼古拉丝"
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
--synchro summon
--synchro summon
aux
.
AddSynchroProcedure
(
c
,
aux
.
Tuner
(
Card
.
IsSetCard
,
0xf33
),
aux
.
NonTuner
(
Card
.
IsSynchroType
,
TYPE_MONSTER
),
1
,
99
)
aux
.
AddSynchroProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0xf33
),
aux
.
NonTuner
(
Card
.
IsSynchroType
,
TYPE_MONSTER
),
1
,
99
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
local
e0
=
Effect
.
CreateEffect
(
c
)
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e0
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e0
:
SetType
(
EFFECT_TYPE_FIELD
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
)
e0
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e0
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e0
:
SetProperty
(
EFFECT_FLAG_
UNCOPYABLE
+
EFFECT_FLAG_IGNORE_IMMUN
E
)
e0
:
SetProperty
(
EFFECT_FLAG_
CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABL
E
)
e0
:
SetRange
(
LOCATION_EXTRA
)
e0
:
SetRange
(
LOCATION_EXTRA
)
e0
:
SetCondition
(
cm
.
SynMixCondition
(
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0xf33
),
nil
,
nil
,
aux
.
NonTuner
(
Card
.
IsSynchroType
,
TYPE_MONSTER
),
minc
,
maxc
,
gc
))
e0
:
SetTarget
(
cm
.
SynMixTarget
(
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0xf33
),
nil
,
nil
,
aux
.
NonTuner
(
Card
.
IsSynchroType
,
TYPE_MONSTER
),
minc
,
maxc
,
gc
))
e0
:
SetOperation
(
cm
.
SynMixOperation
(
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0xf33
),
nil
,
nil
,
aux
.
NonTuner
(
Card
.
IsSynchroType
,
TYPE_MONSTER
),
minc
,
maxc
,
gc
))
e0
:
SetValue
(
SUMMON_TYPE_SYNCHRO
)
e0
:
SetValue
(
SUMMON_TYPE_SYNCHRO
)
e0
:
SetLabel
(
8
)
e0
:
SetCondition
(
cm
.
sycon
)
e0
:
SetOperation
(
cm
.
syop
)
c
:
RegisterEffect
(
e0
)
c
:
RegisterEffect
(
e0
)
--pendulum summon
--pendulum summon
aux
.
EnablePendulumAttribute
(
c
,
false
)
aux
.
EnablePendulumAttribute
(
c
,
false
)
...
@@ -67,53 +68,206 @@ function cm.initial_effect(c)
...
@@ -67,53 +68,206 @@ function cm.initial_effect(c)
e6
:
SetCode
(
EVENT_SPSUMMON
)
e6
:
SetCode
(
EVENT_SPSUMMON
)
c
:
RegisterEffect
(
e6
)
c
:
RegisterEffect
(
e6
)
end
end
function
cm
.
stfilter1
(
c
,
tc
)
function
cm
.
SynMaterialFilter
(
c
,
syncard
)
return
c
:
Is
SetCard
(
0xf33
)
and
c
:
IsSynchroType
(
TYPE_TUNER
)
and
c
:
IsPosition
(
POS_FACEUP
)
and
c
:
IsCanBeSynchroMaterial
(
tc
)
return
c
:
Is
Faceup
()
and
c
:
IsCanBeSynchroMaterial
(
syncard
)
end
end
function
cm
.
stfilter2
(
c
,
tc
)
function
cm
.
SynLimitFilter
(
c
,
f
,
e
,
syncard
)
return
c
:
IsPosition
(
POS_FACEUP
)
and
c
:
IsCanBeSynchroMaterial
(
tc
)
and
not
c
:
IsSynchroType
(
TYPE_TUNER
)
return
f
and
not
f
(
e
,
c
,
syncard
)
end
end
function
cm
.
stfilterg
(
g
,
tp
,
tc
,
lv
,
smat
)
function
cm
.
GetSynchroLevelFlowerCardian
(
c
)
if
smat
then
return
2
g
:
AddCard
(
smat
)
end
end
function
cm
.
GetSynMaterials
(
tp
,
syncard
)
local
g1
=
g
:
Filter
(
cm
.
stfilter1
,
nil
,
tc
)
local
mg
=
Duel
.
GetMatchingGroup
(
cm
.
SynMaterialFilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
syncard
)
local
g2
=
g
:
Filter
(
cm
.
stfilter2
,
nil
,
tc
)
if
mg
:
IsExists
(
Card
.
GetHandSynchro
,
1
,
nil
)
then
local
count
=
g
:
GetCount
()
local
mg2
=
Duel
.
GetMatchingGroup
(
Card
.
IsCanBeSynchroMaterial
,
tp
,
LOCATION_HAND
,
0
,
nil
,
syncard
)
return
g1
:
GetCount
()
==
1
and
g2
:
GetCount
()
==
count
-
1
and
g
:
GetSum
(
Card
.
GetLevel
)
==
lv
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
g
,
tc
)
>
0
if
mg2
:
GetCount
()
>
0
then
mg
:
Merge
(
mg2
)
end
end
function
cm
.
sycon
(
e
,
c
,
smat
,
mg
)
if
c
==
nil
then
return
true
end
local
lv
=
e
:
GetLabel
()
local
tp
=
c
:
GetControler
()
if
not
mg
then
mg
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
end
end
if
smat
then
return
mg
mg
:
RemoveCard
(
smat
)
end
return
mg
:
CheckSubGroup
(
cm
.
stfilterg
,
1
,
nil
,
tp
,
c
,
lv
,
smat
)
function
cm
.
SynMixCondition
(
f1
,
f2
,
f3
,
f4
,
minc
,
maxc
,
gc
)
return
function
(
e
,
c
,
smat
,
mg1
,
min
,
max
)
if
c
==
nil
then
return
true
end
if
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsFaceup
()
then
return
false
end
local
minc
=
minc
local
maxc
=
maxc
if
min
then
if
min
>
minc
then
minc
=
min
end
if
max
<
maxc
then
maxc
=
max
end
if
minc
>
maxc
then
return
false
end
end
local
tp
=
c
:
GetControler
()
local
mg
local
mgchk
=
false
if
mg1
then
mg
=
mg1
mgchk
=
true
else
mg
=
cm
.
GetSynMaterials
(
tp
,
c
)
end
if
smat
~=
nil
then
mg
:
AddCard
(
smat
)
end
return
mg
:
IsExists
(
cm
.
SynMixFilter1
,
1
,
nil
,
f1
,
f2
,
f3
,
f4
,
minc
,
maxc
,
c
,
mg
,
smat
,
gc
,
mgchk
)
end
end
function
cm
.
SynMixTarget
(
f1
,
f2
,
f3
,
f4
,
minc
,
maxc
,
gc
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
c
,
smat
,
mg1
,
min
,
max
)
local
minc
=
minc
local
maxc
=
maxc
if
min
then
if
min
>
minc
then
minc
=
min
end
if
max
<
maxc
then
maxc
=
max
end
if
minc
>
maxc
then
return
false
end
end
local
g
=
Group
.
CreateGroup
()
local
mg
local
mgchk
=
false
if
mg1
then
mg
=
mg1
mgchk
=
true
else
mg
=
cm
.
GetSynMaterials
(
tp
,
c
)
end
if
smat
~=
nil
then
mg
:
AddCard
(
smat
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SMATERIAL
)
local
c1
=
mg
:
FilterSelect
(
tp
,
cm
.
SynMixFilter1
,
1
,
1
,
nil
,
f1
,
f2
,
f3
,
f4
,
minc
,
maxc
,
c
,
mg
,
smat
,
gc
,
mgchk
):
GetFirst
()
g
:
AddCard
(
c1
)
if
f2
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SMATERIAL
)
local
c2
=
mg
:
FilterSelect
(
tp
,
cm
.
SynMixFilter2
,
1
,
1
,
c1
,
f2
,
f3
,
f4
,
minc
,
maxc
,
c
,
mg
,
smat
,
c1
,
gc
,
mgchk
):
GetFirst
()
g
:
AddCard
(
c2
)
if
f3
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SMATERIAL
)
local
c3
=
mg
:
FilterSelect
(
tp
,
cm
.
SynMixFilter3
,
1
,
1
,
Group
.
FromCards
(
c1
,
c2
),
f3
,
f4
,
minc
,
maxc
,
c
,
mg
,
smat
,
c1
,
c2
,
gc
,
mgchk
):
GetFirst
()
g
:
AddCard
(
c3
)
end
end
local
g4
=
Group
.
CreateGroup
()
for
i
=
0
,
maxc
-
1
do
local
mg2
=
mg
:
Clone
()
if
f4
then
mg2
=
mg2
:
Filter
(
f4
,
g
,
c
)
else
mg2
:
Sub
(
g
)
end
local
cg
=
mg2
:
Filter
(
cm
.
SynMixCheckRecursive
,
g4
,
tp
,
g4
,
mg2
,
i
,
minc
,
maxc
,
c
,
g
,
smat
,
gc
,
mgchk
)
if
cg
:
GetCount
()
==
0
then
break
end
local
minct
=
1
if
cm
.
SynMixCheckGoal
(
tp
,
g4
,
minc
,
i
,
c
,
g
,
smat
,
gc
,
mgchk
)
then
minct
=
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SMATERIAL
)
local
tg
=
cg
:
Select
(
tp
,
minct
,
1
,
nil
)
if
tg
:
GetCount
()
==
0
then
break
end
g4
:
Merge
(
tg
)
end
g
:
Merge
(
g4
)
if
g
:
GetCount
()
>
0
then
g
:
KeepAlive
()
e
:
SetLabelObject
(
g
)
return
true
else
return
false
end
end
end
function
cm
.
SynMixOperation
(
f1
,
f2
,
f3
,
f4
,
minct
,
maxc
,
gc
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
,
smat
,
mg
,
min
,
max
)
local
g
=
e
:
GetLabelObject
()
c
:
SetMaterial
(
g
)
Duel
.
SendtoGrave
(
g
,
REASON_MATERIAL
+
REASON_SYNCHRO
)
g
:
DeleteGroup
()
end
end
function
cm
.
SynMixFilter1
(
c
,
f1
,
f2
,
f3
,
f4
,
minc
,
maxc
,
syncard
,
mg
,
smat
,
gc
,
mgchk
)
return
(
not
f1
or
f1
(
c
,
syncard
))
and
mg
:
IsExists
(
cm
.
SynMixFilter2
,
1
,
c
,
f2
,
f3
,
f4
,
minc
,
maxc
,
syncard
,
mg
,
smat
,
c
,
gc
,
mgchk
)
end
function
cm
.
SynMixFilter2
(
c
,
f2
,
f3
,
f4
,
minc
,
maxc
,
syncard
,
mg
,
smat
,
c1
,
gc
,
mgchk
)
if
f2
then
return
f2
(
c
,
syncard
,
c1
)
and
(
mg
:
IsExists
(
cm
.
SynMixFilter3
,
1
,
Group
.
FromCards
(
c1
,
c
),
f3
,
f4
,
minc
,
maxc
,
syncard
,
mg
,
smat
,
c1
,
c
,
gc
,
mgchk
)
or
minc
==
0
and
cm
.
SynMixFilter4
(
c
,
nil
,
1
,
1
,
syncard
,
mg
,
smat
,
c1
,
nil
,
nil
,
gc
,
mgchk
))
else
else
return
mg
:
CheckSubGroup
(
cm
.
stfilterg
,
2
,
nil
,
tp
,
c
,
lv
,
nil
)
return
mg
:
IsExists
(
cm
.
SynMixFilter4
,
1
,
c1
,
f4
,
minc
,
maxc
,
syncard
,
mg
,
smat
,
c1
,
nil
,
nil
,
gc
,
mgchk
)
end
end
end
end
function
cm
.
syop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
,
smat
,
mg
)
function
cm
.
SynMixFilter3
(
c
,
f3
,
f4
,
minc
,
maxc
,
syncard
,
mg
,
smat
,
c1
,
c2
,
gc
,
mgchk
)
local
lv
=
e
:
GetLabel
()
if
f3
then
if
not
mg
then
return
f3
(
c
,
syncard
,
c1
,
c2
)
mg
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
and
(
mg
:
IsExists
(
cm
.
SynMixFilter4
,
1
,
Group
.
FromCards
(
c1
,
c2
,
c
),
f4
,
minc
,
maxc
,
syncard
,
mg
,
smat
,
c1
,
c2
,
c
,
gc
,
mgchk
)
or
minc
==
0
and
cm
.
SynMixFilter4
(
c
,
nil
,
1
,
1
,
syncard
,
mg
,
smat
,
c1
,
c2
,
nil
,
gc
,
mgchk
))
else
return
mg
:
IsExists
(
cm
.
SynMixFilter4
,
1
,
Group
.
FromCards
(
c1
,
c2
),
f4
,
minc
,
maxc
,
syncard
,
mg
,
smat
,
c1
,
c2
,
nil
,
gc
,
mgchk
)
end
end
local
g
=
Group
.
CreateGroup
()
end
if
smat
then
function
cm
.
SynMixFilter4
(
c
,
f4
,
minc
,
maxc
,
syncard
,
mg1
,
smat
,
c1
,
c2
,
c3
,
gc
,
mgchk
)
mg
:
RemoveCard
(
smat
)
if
f4
and
not
f4
(
c
,
syncard
,
c1
,
c2
,
c3
)
then
return
false
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SMATERIAL
)
local
sg
=
Group
.
FromCards
(
c1
,
c
)
g
:
Merge
(
mg
:
SelectSubGroup
(
tp
,
cm
.
stfilterg
,
false
,
1
,
nil
,
tp
,
c
,
lv
,
smat
))
sg
:
AddCard
(
c1
)
g
:
AddCard
(
smat
)
if
c2
then
sg
:
AddCard
(
c2
)
end
if
c3
then
sg
:
AddCard
(
c3
)
end
local
mg
=
mg1
:
Clone
()
if
f4
then
mg
=
mg
:
Filter
(
f4
,
sg
,
syncard
)
else
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SMATERIAL
)
mg
:
Sub
(
sg
)
g
:
Merge
(
mg
:
SelectSubGroup
(
tp
,
cm
.
stfilterg
,
false
,
2
,
nil
,
tp
,
c
,
lv
,
nil
))
end
return
cm
.
SynMixCheck
(
mg
,
sg
,
minc
-
1
,
maxc
-
1
,
syncard
,
smat
,
gc
,
mgchk
)
end
function
cm
.
SynMixCheck
(
mg
,
sg1
,
minc
,
maxc
,
syncard
,
smat
,
gc
,
mgchk
)
local
tp
=
syncard
:
GetControler
()
local
sg
=
Group
.
CreateGroup
()
if
minc
<=
0
and
cm
.
SynMixCheckGoal
(
tp
,
sg1
,
0
,
0
,
syncard
,
sg
,
smat
,
gc
,
mgchk
)
then
return
true
end
if
maxc
==
0
then
return
false
end
return
mg
:
IsExists
(
cm
.
SynMixCheckRecursive
,
1
,
nil
,
tp
,
sg
,
mg
,
0
,
minc
,
maxc
,
syncard
,
sg1
,
smat
,
gc
,
mgchk
)
end
function
cm
.
SynMixCheckRecursive
(
c
,
tp
,
sg
,
mg
,
ct
,
minc
,
maxc
,
syncard
,
sg1
,
smat
,
gc
,
mgchk
)
sg
:
AddCard
(
c
)
ct
=
ct
+
1
local
res
=
cm
.
SynMixCheckGoal
(
tp
,
sg
,
minc
,
ct
,
syncard
,
sg1
,
smat
,
gc
,
mgchk
)
or
(
ct
<
maxc
and
mg
:
IsExists
(
cm
.
SynMixCheckRecursive
,
1
,
sg
,
tp
,
sg
,
mg
,
ct
,
minc
,
maxc
,
syncard
,
sg1
,
smat
,
gc
,
mgchk
))
sg
:
RemoveCard
(
c
)
ct
=
ct
-
1
return
res
end
function
cm
.
SynMixCheckGoal
(
tp
,
sg
,
minc
,
ct
,
syncard
,
sg1
,
smat
,
gc
,
mgchk
)
if
ct
<
minc
then
return
false
end
local
g
=
sg
:
Clone
()
g
:
Merge
(
sg1
)
if
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
g
,
syncard
)
<=
0
then
return
false
end
if
gc
and
not
gc
(
g
)
then
return
false
end
if
smat
and
not
g
:
IsContains
(
smat
)
then
return
false
end
if
not
cm
.
MustMaterialCheck
(
g
,
tp
,
EFFECT_MUST_BE_SMATERIAL
)
then
return
false
end
if
not
g
:
CheckWithSumEqual
(
Card
.
GetSynchroLevel
,
8
,
g
:
GetCount
(),
g
:
GetCount
(),
syncard
)
and
(
not
g
:
IsExists
(
Card
.
IsHasEffect
,
1
,
nil
,
89818984
)
or
not
g
:
CheckWithSumEqual
(
cm
.
GetSynchroLevelFlowerCardian
,
8
,
g
:
GetCount
(),
g
:
GetCount
(),
syncard
))
then
return
false
end
local
hg
=
g
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_HAND
)
local
hct
=
hg
:
GetCount
()
if
hct
>
0
and
not
mgchk
then
local
found
=
false
for
c
in
aux
.
Next
(
g
)
do
local
he
,
hf
,
hmin
,
hmax
=
c
:
GetHandSynchro
()
if
he
then
found
=
true
if
hf
and
hg
:
IsExists
(
cm
.
SynLimitFilter
,
1
,
c
,
hf
,
he
,
syncard
)
then
return
false
end
if
(
hmin
and
hct
<
hmin
)
or
(
hmax
and
hct
>
hmax
)
then
return
false
end
end
end
if
not
found
then
return
false
end
end
for
c
in
aux
.
Next
(
g
)
do
local
le
,
lf
,
lloc
,
lmin
,
lmax
=
c
:
GetTunerLimit
()
if
le
then
local
lct
=
g
:
GetCount
()
-
1
if
lloc
then
local
llct
=
g
:
FilterCount
(
Card
.
IsLocation
,
c
,
lloc
)
if
llct
~=
lct
then
return
false
end
end
if
lf
and
g
:
IsExists
(
cm
.
SynLimitFilter
,
1
,
c
,
lf
,
le
,
syncard
)
then
return
false
end
if
(
lmin
and
lct
<
lmin
)
or
(
lmax
and
lct
>
lmax
)
then
return
false
end
end
end
end
c
:
SetMaterial
(
g
)
return
true
Duel
.
SendtoGrave
(
g
,
REASON_MATERIAL
+
REASON_SYNCHRO
)
end
end
function
cm
.
pcfilter
(
c
)
function
cm
.
pcfilter
(
c
)
return
c
:
IsType
(
TYPE_PENDULUM
)
and
(
c
:
IsLocation
(
LOCATION_DECK
)
or
c
:
IsFaceup
())
and
not
c
:
IsForbidden
()
return
c
:
IsType
(
TYPE_PENDULUM
)
and
(
c
:
IsLocation
(
LOCATION_DECK
)
or
c
:
IsFaceup
())
and
not
c
:
IsForbidden
()
end
end
...
...
expansions/script/c15005013.lua
View file @
1b4d4cdb
...
@@ -48,7 +48,7 @@ function cm.SynOperation(f1,f2,minct,maxc)
...
@@ -48,7 +48,7 @@ function cm.SynOperation(f1,f2,minct,maxc)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
,
smat
,
mg
,
min
,
max
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
,
smat
,
mg
,
min
,
max
)
local
g
=
e
:
GetLabelObject
()
local
g
=
e
:
GetLabelObject
()
c
:
SetMaterial
(
g
)
c
:
SetMaterial
(
g
)
Duel
.
Destroy
(
g
,
REASON_MATERIAL
+
REASON_SYNCHRO
+
REASON_REPLACE
+
REASON_EFFECT
)
Duel
.
Destroy
(
g
,
REASON_MATERIAL
+
REASON_SYNCHRO
+
REASON_REPLACE
+
REASON_EFFECT
+
REASON_RULE
)
--Duel.SendtoGrave(g,REASON_MATERIAL+REASON_SYNCHRO)
--Duel.SendtoGrave(g,REASON_MATERIAL+REASON_SYNCHRO)
g
:
DeleteGroup
()
g
:
DeleteGroup
()
end
end
...
...
expansions/script/c15005018.lua
View file @
1b4d4cdb
...
@@ -51,7 +51,7 @@ function cm.SynOperation(f1,f2,minct,maxc)
...
@@ -51,7 +51,7 @@ function cm.SynOperation(f1,f2,minct,maxc)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
,
smat
,
mg
,
min
,
max
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
,
smat
,
mg
,
min
,
max
)
local
g
=
e
:
GetLabelObject
()
local
g
=
e
:
GetLabelObject
()
c
:
SetMaterial
(
g
)
c
:
SetMaterial
(
g
)
Duel
.
Destroy
(
g
,
REASON_MATERIAL
+
REASON_SYNCHRO
+
REASON_REPLACE
+
REASON_EFFECT
)
Duel
.
Destroy
(
g
,
REASON_MATERIAL
+
REASON_SYNCHRO
+
REASON_REPLACE
+
REASON_EFFECT
+
REASON_RULE
)
--Duel.SendtoGrave(g,REASON_MATERIAL+REASON_SYNCHRO)
--Duel.SendtoGrave(g,REASON_MATERIAL+REASON_SYNCHRO)
g
:
DeleteGroup
()
g
:
DeleteGroup
()
end
end
...
...
expansions/script/c15005020.lua
View file @
1b4d4cdb
...
@@ -43,7 +43,7 @@ function cm.SynOperation(f1,f2,minct,maxc)
...
@@ -43,7 +43,7 @@ function cm.SynOperation(f1,f2,minct,maxc)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
,
smat
,
mg
,
min
,
max
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
,
smat
,
mg
,
min
,
max
)
local
g
=
e
:
GetLabelObject
()
local
g
=
e
:
GetLabelObject
()
c
:
SetMaterial
(
g
)
c
:
SetMaterial
(
g
)
Duel
.
Destroy
(
g
,
REASON_MATERIAL
+
REASON_SYNCHRO
+
REASON_REPLACE
+
REASON_EFFECT
)
Duel
.
Destroy
(
g
,
REASON_MATERIAL
+
REASON_SYNCHRO
+
REASON_REPLACE
+
REASON_EFFECT
+
REASON_RULE
)
--Duel.SendtoGrave(g,REASON_MATERIAL+REASON_SYNCHRO)
--Duel.SendtoGrave(g,REASON_MATERIAL+REASON_SYNCHRO)
g
:
DeleteGroup
()
g
:
DeleteGroup
()
end
end
...
...
expansions/script/c15005022.lua
View file @
1b4d4cdb
...
@@ -72,7 +72,7 @@ function cm.SynOperation(f1,f2,minct,maxc)
...
@@ -72,7 +72,7 @@ function cm.SynOperation(f1,f2,minct,maxc)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
,
smat
,
mg
,
min
,
max
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
,
smat
,
mg
,
min
,
max
)
local
g
=
e
:
GetLabelObject
()
local
g
=
e
:
GetLabelObject
()
c
:
SetMaterial
(
g
)
c
:
SetMaterial
(
g
)
Duel
.
Destroy
(
g
,
REASON_MATERIAL
+
REASON_SYNCHRO
+
REASON_REPLACE
+
REASON_EFFECT
)
Duel
.
Destroy
(
g
,
REASON_MATERIAL
+
REASON_SYNCHRO
+
REASON_REPLACE
+
REASON_EFFECT
+
REASON_RULE
)
--Duel.SendtoGrave(g,REASON_MATERIAL+REASON_SYNCHRO)
--Duel.SendtoGrave(g,REASON_MATERIAL+REASON_SYNCHRO)
g
:
DeleteGroup
()
g
:
DeleteGroup
()
end
end
...
...
expansions/script/c7489826.lua
View file @
1b4d4cdb
...
@@ -3,7 +3,6 @@ local s,id,o=GetID()
...
@@ -3,7 +3,6 @@ local s,id,o=GetID()
function
s
.
initial_effect
(
c
)
function
s
.
initial_effect
(
c
)
--activate
--activate
local
e0
=
Effect
.
CreateEffect
(
c
)
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetCategory
(
CATEGORY_TOGRAVE
+
CATEGORY_DECKDES
)
e0
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e0
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e0
:
SetCode
(
EVENT_FREE_CHAIN
)
e0
:
SetCode
(
EVENT_FREE_CHAIN
)
c
:
RegisterEffect
(
e0
)
c
:
RegisterEffect
(
e0
)
...
...
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