Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
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
MyCard
ygopro-scripts
Commits
1fdc6bc9
Commit
1fdc6bc9
authored
Jan 29, 2017
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
c31eb623
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
21 additions
and
272 deletions
+21
-272
c10875327.lua
c10875327.lua
+1
-1
c15187079.lua
c15187079.lua
+1
-1
c1710476.lua
c1710476.lua
+1
-43
c28674152.lua
c28674152.lua
+1
-1
c29726552.lua
c29726552.lua
+1
-1
c33537328.lua
c33537328.lua
+1
-1
c36521459.lua
c36521459.lua
+1
-43
c36956512.lua
c36956512.lua
+1
-1
c37115575.lua
c37115575.lua
+1
-42
c41181774.lua
c41181774.lua
+1
-1
c46263076.lua
c46263076.lua
+1
-1
c48770333.lua
c48770333.lua
+1
-1
c55063751.lua
c55063751.lua
+1
-1
c55343236.lua
c55343236.lua
+1
-43
c598988.lua
c598988.lua
+1
-43
c63941210.lua
c63941210.lua
+1
-1
c69931927.lua
c69931927.lua
+1
-1
c79798060.lua
c79798060.lua
+1
-1
c84769941.lua
c84769941.lua
+1
-1
c93332803.lua
c93332803.lua
+1
-1
c9433350.lua
c9433350.lua
+1
-43
No files found.
c10875327.lua
View file @
1fdc6bc9
--地縛神 Aslla piscu
--地縛神 Aslla piscu
function
c10875327
.
initial_effect
(
c
)
function
c10875327
.
initial_effect
(
c
)
c
:
SetUniqueOnField
(
1
,
1
,
10000000
,
LOCATION_MZONE
)
c
:
SetUniqueOnField
(
1
,
1
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0x21
)
,
LOCATION_MZONE
)
--
--
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c15187079.lua
View file @
1fdc6bc9
--地縛神 Uru
--地縛神 Uru
function
c15187079
.
initial_effect
(
c
)
function
c15187079
.
initial_effect
(
c
)
c
:
SetUniqueOnField
(
1
,
1
,
10000000
,
LOCATION_MZONE
)
c
:
SetUniqueOnField
(
1
,
1
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0x21
)
,
LOCATION_MZONE
)
--
--
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c1710476.lua
View file @
1fdc6bc9
--Sin サイバー・エンド・ドラゴン
--Sin サイバー・エンド・ドラゴン
function
c1710476
.
initial_effect
(
c
)
function
c1710476
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
c
:
SetUniqueOnField
(
1
,
1
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0x23
),
LOCATION_MZONE
)
--special summon
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
@@ -10,29 +11,6 @@ function c1710476.initial_effect(c)
...
@@ -10,29 +11,6 @@ function c1710476.initial_effect(c)
e1
:
SetCondition
(
c1710476
.
spcon
)
e1
:
SetCondition
(
c1710476
.
spcon
)
e1
:
SetOperation
(
c1710476
.
spop
)
e1
:
SetOperation
(
c1710476
.
spop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--only 1 can exists
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_CANNOT_FLIP_SUMMON
)
e2
:
SetCondition
(
c1710476
.
excon
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e4
:
SetTargetRange
(
1
,
1
)
e4
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
e4
:
SetTarget
(
c1710476
.
sumlimit
)
c
:
RegisterEffect
(
e4
)
local
e5
=
e4
:
Clone
()
e5
:
SetCode
(
EFFECT_CANNOT_FLIP_SUMMON
)
c
:
RegisterEffect
(
e5
)
local
e6
=
e4
:
Clone
()
e6
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
c
:
RegisterEffect
(
e6
)
--selfdes
--selfdes
local
e7
=
Effect
.
CreateEffect
(
c
)
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetType
(
EFFECT_TYPE_SINGLE
)
e7
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
@@ -41,13 +19,6 @@ function c1710476.initial_effect(c)
...
@@ -41,13 +19,6 @@ function c1710476.initial_effect(c)
e7
:
SetCode
(
EFFECT_SELF_DESTROY
)
e7
:
SetCode
(
EFFECT_SELF_DESTROY
)
e7
:
SetCondition
(
c1710476
.
descon
)
e7
:
SetCondition
(
c1710476
.
descon
)
c
:
RegisterEffect
(
e7
)
c
:
RegisterEffect
(
e7
)
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_FIELD
)
e8
:
SetCode
(
EFFECT_SELF_DESTROY
)
e8
:
SetRange
(
LOCATION_MZONE
)
e8
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e8
:
SetTarget
(
c1710476
.
destarget
)
c
:
RegisterEffect
(
e8
)
--cannot announce
--cannot announce
local
e8
=
Effect
.
CreateEffect
(
c
)
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_FIELD
)
e8
:
SetType
(
EFFECT_TYPE_FIELD
)
...
@@ -64,15 +35,6 @@ function c1710476.initial_effect(c)
...
@@ -64,15 +35,6 @@ function c1710476.initial_effect(c)
e9
:
SetValue
(
aux
.
FALSE
)
e9
:
SetValue
(
aux
.
FALSE
)
c
:
RegisterEffect
(
e9
)
c
:
RegisterEffect
(
e9
)
end
end
function
c1710476
.
sumlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0x23
)
end
function
c1710476
.
exfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x23
)
end
function
c1710476
.
excon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
c1710476
.
exfilter
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
function
c1710476
.
spfilter
(
c
)
function
c1710476
.
spfilter
(
c
)
return
c
:
IsCode
(
1546123
)
and
c
:
IsAbleToRemoveAsCost
()
return
c
:
IsCode
(
1546123
)
and
c
:
IsAbleToRemoveAsCost
()
end
end
...
@@ -80,7 +42,6 @@ function c1710476.spcon(e,c)
...
@@ -80,7 +42,6 @@ function c1710476.spcon(e,c)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
return
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
return
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c1710476
.
spfilter
,
c
:
GetControler
(),
LOCATION_EXTRA
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c1710476
.
spfilter
,
c
:
GetControler
(),
LOCATION_EXTRA
,
0
,
1
,
nil
)
and
not
Duel
.
IsExistingMatchingCard
(
c1710476
.
exfilter
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
end
function
c1710476
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c1710476
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
tc
=
Duel
.
GetFirstMatchingCard
(
c1710476
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
local
tc
=
Duel
.
GetFirstMatchingCard
(
c1710476
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
...
@@ -91,9 +52,6 @@ function c1710476.descon(e)
...
@@ -91,9 +52,6 @@ function c1710476.descon(e)
local
f2
=
Duel
.
GetFieldCard
(
1
,
LOCATION_SZONE
,
5
)
local
f2
=
Duel
.
GetFieldCard
(
1
,
LOCATION_SZONE
,
5
)
return
(
f1
==
nil
or
f1
:
IsFacedown
())
and
(
f2
==
nil
or
f2
:
IsFacedown
())
return
(
f1
==
nil
or
f1
:
IsFacedown
())
and
(
f2
==
nil
or
f2
:
IsFacedown
())
end
end
function
c1710476
.
destarget
(
e
,
c
)
return
c
:
IsSetCard
(
0x23
)
and
c
:
GetFieldID
()
>
e
:
GetHandler
():
GetFieldID
()
end
function
c1710476
.
antarget
(
e
,
c
)
function
c1710476
.
antarget
(
e
,
c
)
return
c
~=
e
:
GetHandler
()
return
c
~=
e
:
GetHandler
()
end
end
c28674152.lua
View file @
1fdc6bc9
--多次元壊獣ラディアン
--多次元壊獣ラディアン
function
c28674152
.
initial_effect
(
c
)
function
c28674152
.
initial_effect
(
c
)
c
:
SetUniqueOnField
(
1
,
0
,
20000000
,
LOCATION_MZONE
)
c
:
SetUniqueOnField
(
1
,
0
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0xd3
)
,
LOCATION_MZONE
)
--special summon rule
--special summon rule
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
c29726552.lua
View file @
1fdc6bc9
--粘糸壊獣クモグス
--粘糸壊獣クモグス
function
c29726552
.
initial_effect
(
c
)
function
c29726552
.
initial_effect
(
c
)
c
:
SetUniqueOnField
(
1
,
0
,
20000000
,
LOCATION_MZONE
)
c
:
SetUniqueOnField
(
1
,
0
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0xd3
)
,
LOCATION_MZONE
)
--special summon rule
--special summon rule
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
c33537328.lua
View file @
1fdc6bc9
--地縛神 Cusillu
--地縛神 Cusillu
function
c33537328
.
initial_effect
(
c
)
function
c33537328
.
initial_effect
(
c
)
c
:
SetUniqueOnField
(
1
,
1
,
10000000
,
LOCATION_MZONE
)
c
:
SetUniqueOnField
(
1
,
1
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0x21
)
,
LOCATION_MZONE
)
--
--
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c36521459.lua
View file @
1fdc6bc9
--Sin スターダスト・ドラゴン
--Sin スターダスト・ドラゴン
function
c36521459
.
initial_effect
(
c
)
function
c36521459
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
c
:
SetUniqueOnField
(
1
,
1
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0x23
),
LOCATION_MZONE
)
--special summon
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
@@ -10,29 +11,6 @@ function c36521459.initial_effect(c)
...
@@ -10,29 +11,6 @@ function c36521459.initial_effect(c)
e1
:
SetCondition
(
c36521459
.
spcon
)
e1
:
SetCondition
(
c36521459
.
spcon
)
e1
:
SetOperation
(
c36521459
.
spop
)
e1
:
SetOperation
(
c36521459
.
spop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--only 1 can exists
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_CANNOT_FLIP_SUMMON
)
e2
:
SetCondition
(
c36521459
.
excon
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e4
:
SetTargetRange
(
1
,
1
)
e4
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
e4
:
SetTarget
(
c36521459
.
sumlimit
)
c
:
RegisterEffect
(
e4
)
local
e5
=
e4
:
Clone
()
e5
:
SetCode
(
EFFECT_CANNOT_FLIP_SUMMON
)
c
:
RegisterEffect
(
e5
)
local
e6
=
e4
:
Clone
()
e6
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
c
:
RegisterEffect
(
e6
)
--selfdes
--selfdes
local
e7
=
Effect
.
CreateEffect
(
c
)
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetType
(
EFFECT_TYPE_SINGLE
)
e7
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
@@ -41,13 +19,6 @@ function c36521459.initial_effect(c)
...
@@ -41,13 +19,6 @@ function c36521459.initial_effect(c)
e7
:
SetCode
(
EFFECT_SELF_DESTROY
)
e7
:
SetCode
(
EFFECT_SELF_DESTROY
)
e7
:
SetCondition
(
c36521459
.
descon
)
e7
:
SetCondition
(
c36521459
.
descon
)
c
:
RegisterEffect
(
e7
)
c
:
RegisterEffect
(
e7
)
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_FIELD
)
e8
:
SetCode
(
EFFECT_SELF_DESTROY
)
e8
:
SetRange
(
LOCATION_MZONE
)
e8
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e8
:
SetTarget
(
c36521459
.
destarget
)
c
:
RegisterEffect
(
e8
)
--cannot announce
--cannot announce
local
e8
=
Effect
.
CreateEffect
(
c
)
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_FIELD
)
e8
:
SetType
(
EFFECT_TYPE_FIELD
)
...
@@ -73,18 +44,9 @@ function c36521459.initial_effect(c)
...
@@ -73,18 +44,9 @@ function c36521459.initial_effect(c)
ea
:
SetValue
(
aux
.
FALSE
)
ea
:
SetValue
(
aux
.
FALSE
)
c
:
RegisterEffect
(
ea
)
c
:
RegisterEffect
(
ea
)
end
end
function
c36521459
.
sumlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0x23
)
end
function
c36521459
.
indes
(
e
,
c
)
function
c36521459
.
indes
(
e
,
c
)
return
c
:
IsFaceup
()
and
c
:
GetSequence
()
==
5
return
c
:
IsFaceup
()
and
c
:
GetSequence
()
==
5
end
end
function
c36521459
.
exfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x23
)
end
function
c36521459
.
excon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
c36521459
.
exfilter
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
function
c36521459
.
spfilter
(
c
)
function
c36521459
.
spfilter
(
c
)
return
c
:
IsCode
(
44508094
)
and
c
:
IsAbleToRemoveAsCost
()
return
c
:
IsCode
(
44508094
)
and
c
:
IsAbleToRemoveAsCost
()
end
end
...
@@ -92,7 +54,6 @@ function c36521459.spcon(e,c)
...
@@ -92,7 +54,6 @@ function c36521459.spcon(e,c)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
return
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
return
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c36521459
.
spfilter
,
c
:
GetControler
(),
LOCATION_EXTRA
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c36521459
.
spfilter
,
c
:
GetControler
(),
LOCATION_EXTRA
,
0
,
1
,
nil
)
and
not
Duel
.
IsExistingMatchingCard
(
c36521459
.
exfilter
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
end
function
c36521459
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c36521459
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
tc
=
Duel
.
GetFirstMatchingCard
(
c36521459
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
local
tc
=
Duel
.
GetFirstMatchingCard
(
c36521459
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
...
@@ -103,9 +64,6 @@ function c36521459.descon(e)
...
@@ -103,9 +64,6 @@ function c36521459.descon(e)
local
f2
=
Duel
.
GetFieldCard
(
1
,
LOCATION_SZONE
,
5
)
local
f2
=
Duel
.
GetFieldCard
(
1
,
LOCATION_SZONE
,
5
)
return
(
f1
==
nil
or
f1
:
IsFacedown
())
and
(
f2
==
nil
or
f2
:
IsFacedown
())
return
(
f1
==
nil
or
f1
:
IsFacedown
())
and
(
f2
==
nil
or
f2
:
IsFacedown
())
end
end
function
c36521459
.
destarget
(
e
,
c
)
return
c
:
IsSetCard
(
0x23
)
and
c
:
GetFieldID
()
>
e
:
GetHandler
():
GetFieldID
()
end
function
c36521459
.
antarget
(
e
,
c
)
function
c36521459
.
antarget
(
e
,
c
)
return
c
~=
e
:
GetHandler
()
return
c
~=
e
:
GetHandler
()
end
end
c36956512.lua
View file @
1fdc6bc9
--怪粉壊獣ガダーラ
--怪粉壊獣ガダーラ
function
c36956512
.
initial_effect
(
c
)
function
c36956512
.
initial_effect
(
c
)
c
:
SetUniqueOnField
(
1
,
0
,
20000000
,
LOCATION_MZONE
)
c
:
SetUniqueOnField
(
1
,
0
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0xd3
)
,
LOCATION_MZONE
)
--special summon rule
--special summon rule
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
c37115575.lua
View file @
1fdc6bc9
--Sin トゥルース・ドラゴン
--Sin トゥルース・ドラゴン
function
c37115575
.
initial_effect
(
c
)
function
c37115575
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
c
:
SetUniqueOnField
(
1
,
1
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0x23
),
LOCATION_MZONE
)
--special summon
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
37115575
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
37115575
,
0
))
...
@@ -14,29 +15,6 @@ function c37115575.initial_effect(c)
...
@@ -14,29 +15,6 @@ function c37115575.initial_effect(c)
e1
:
SetTarget
(
c37115575
.
sptg
)
e1
:
SetTarget
(
c37115575
.
sptg
)
e1
:
SetOperation
(
c37115575
.
spop
)
e1
:
SetOperation
(
c37115575
.
spop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--only 1 can exists
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_CANNOT_FLIP_SUMMON
)
e2
:
SetCondition
(
c37115575
.
excon
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e4
:
SetTargetRange
(
1
,
1
)
e4
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
e4
:
SetTarget
(
c37115575
.
sumlimit
)
c
:
RegisterEffect
(
e4
)
local
e5
=
e4
:
Clone
()
e5
:
SetCode
(
EFFECT_CANNOT_FLIP_SUMMON
)
c
:
RegisterEffect
(
e5
)
local
e6
=
e4
:
Clone
()
e6
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
c
:
RegisterEffect
(
e6
)
--selfdes
--selfdes
local
e7
=
Effect
.
CreateEffect
(
c
)
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetType
(
EFFECT_TYPE_SINGLE
)
e7
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
@@ -45,13 +23,6 @@ function c37115575.initial_effect(c)
...
@@ -45,13 +23,6 @@ function c37115575.initial_effect(c)
e7
:
SetCode
(
EFFECT_SELF_DESTROY
)
e7
:
SetCode
(
EFFECT_SELF_DESTROY
)
e7
:
SetCondition
(
c37115575
.
descon
)
e7
:
SetCondition
(
c37115575
.
descon
)
c
:
RegisterEffect
(
e7
)
c
:
RegisterEffect
(
e7
)
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_FIELD
)
e8
:
SetCode
(
EFFECT_SELF_DESTROY
)
e8
:
SetRange
(
LOCATION_MZONE
)
e8
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e8
:
SetTarget
(
c37115575
.
destarget
)
c
:
RegisterEffect
(
e8
)
--spson
--spson
local
e8
=
Effect
.
CreateEffect
(
c
)
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_SINGLE
)
e8
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
@@ -70,15 +41,6 @@ function c37115575.initial_effect(c)
...
@@ -70,15 +41,6 @@ function c37115575.initial_effect(c)
e9
:
SetOperation
(
c37115575
.
deop
)
e9
:
SetOperation
(
c37115575
.
deop
)
c
:
RegisterEffect
(
e9
)
c
:
RegisterEffect
(
e9
)
end
end
function
c37115575
.
sumlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0x23
)
end
function
c37115575
.
exfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x23
)
end
function
c37115575
.
excon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
c37115575
.
exfilter
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
function
c37115575
.
cfilter
(
c
,
tp
)
function
c37115575
.
cfilter
(
c
,
tp
)
return
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
return
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
c
:
IsPreviousSetCard
(
0x23
)
and
c
:
GetPreviousCodeOnField
()
~=
37115575
and
not
c
:
IsReason
(
REASON_RULE
)
and
c
:
IsPreviousSetCard
(
0x23
)
and
c
:
GetPreviousCodeOnField
()
~=
37115575
and
not
c
:
IsReason
(
REASON_RULE
)
...
@@ -110,9 +72,6 @@ function c37115575.descon(e)
...
@@ -110,9 +72,6 @@ function c37115575.descon(e)
local
f2
=
Duel
.
GetFieldCard
(
1
,
LOCATION_SZONE
,
5
)
local
f2
=
Duel
.
GetFieldCard
(
1
,
LOCATION_SZONE
,
5
)
return
(
f1
==
nil
or
f1
:
IsFacedown
())
and
(
f2
==
nil
or
f2
:
IsFacedown
())
return
(
f1
==
nil
or
f1
:
IsFacedown
())
and
(
f2
==
nil
or
f2
:
IsFacedown
())
end
end
function
c37115575
.
destarget
(
e
,
c
)
return
c
:
IsSetCard
(
0x23
)
and
c
:
GetFieldID
()
>
e
:
GetHandler
():
GetFieldID
()
end
function
c37115575
.
decon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c37115575
.
decon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsRelateToBattle
()
and
c
:
GetBattleTarget
():
IsType
(
TYPE_MONSTER
)
return
c
:
IsRelateToBattle
()
and
c
:
GetBattleTarget
():
IsType
(
TYPE_MONSTER
)
...
...
c41181774.lua
View file @
1fdc6bc9
--地縛神 Wiraqocha Rasca
--地縛神 Wiraqocha Rasca
function
c41181774
.
initial_effect
(
c
)
function
c41181774
.
initial_effect
(
c
)
c
:
SetUniqueOnField
(
1
,
1
,
10000000
,
LOCATION_MZONE
)
c
:
SetUniqueOnField
(
1
,
1
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0x21
)
,
LOCATION_MZONE
)
--
--
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c46263076.lua
View file @
1fdc6bc9
--地縛神 Ccapac Apu
--地縛神 Ccapac Apu
function
c46263076
.
initial_effect
(
c
)
function
c46263076
.
initial_effect
(
c
)
c
:
SetUniqueOnField
(
1
,
1
,
10000000
,
LOCATION_MZONE
)
c
:
SetUniqueOnField
(
1
,
1
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0x21
)
,
LOCATION_MZONE
)
--
--
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c48770333.lua
View file @
1fdc6bc9
--雷撃壊獣サンダー・ザ・キング
--雷撃壊獣サンダー・ザ・キング
function
c48770333
.
initial_effect
(
c
)
function
c48770333
.
initial_effect
(
c
)
c
:
SetUniqueOnField
(
1
,
0
,
20000000
,
LOCATION_MZONE
)
c
:
SetUniqueOnField
(
1
,
0
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0xd3
)
,
LOCATION_MZONE
)
--special summon rule
--special summon rule
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
c55063751.lua
View file @
1fdc6bc9
--海亀壊獣ガメシエル
--海亀壊獣ガメシエル
function
c55063751
.
initial_effect
(
c
)
function
c55063751
.
initial_effect
(
c
)
c
:
SetUniqueOnField
(
1
,
0
,
20000000
,
LOCATION_MZONE
)
c
:
SetUniqueOnField
(
1
,
0
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0xd3
)
,
LOCATION_MZONE
)
--special summon rule
--special summon rule
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
c55343236.lua
View file @
1fdc6bc9
--Sin 真紅眼の黒竜
--Sin 真紅眼の黒竜
function
c55343236
.
initial_effect
(
c
)
function
c55343236
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
c
:
SetUniqueOnField
(
1
,
1
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0x23
),
LOCATION_MZONE
)
--special summon
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
@@ -10,29 +11,6 @@ function c55343236.initial_effect(c)
...
@@ -10,29 +11,6 @@ function c55343236.initial_effect(c)
e1
:
SetCondition
(
c55343236
.
spcon
)
e1
:
SetCondition
(
c55343236
.
spcon
)
e1
:
SetOperation
(
c55343236
.
spop
)
e1
:
SetOperation
(
c55343236
.
spop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--only 1 can exists
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_CANNOT_FLIP_SUMMON
)
e2
:
SetCondition
(
c55343236
.
excon
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e4
:
SetTargetRange
(
1
,
1
)
e4
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
e4
:
SetTarget
(
c55343236
.
sumlimit
)
c
:
RegisterEffect
(
e4
)
local
e5
=
e4
:
Clone
()
e5
:
SetCode
(
EFFECT_CANNOT_FLIP_SUMMON
)
c
:
RegisterEffect
(
e5
)
local
e6
=
e4
:
Clone
()
e6
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
c
:
RegisterEffect
(
e6
)
--selfdes
--selfdes
local
e7
=
Effect
.
CreateEffect
(
c
)
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetType
(
EFFECT_TYPE_SINGLE
)
e7
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
@@ -41,13 +19,6 @@ function c55343236.initial_effect(c)
...
@@ -41,13 +19,6 @@ function c55343236.initial_effect(c)
e7
:
SetCode
(
EFFECT_SELF_DESTROY
)
e7
:
SetCode
(
EFFECT_SELF_DESTROY
)
e7
:
SetCondition
(
c55343236
.
descon
)
e7
:
SetCondition
(
c55343236
.
descon
)
c
:
RegisterEffect
(
e7
)
c
:
RegisterEffect
(
e7
)
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_FIELD
)
e8
:
SetCode
(
EFFECT_SELF_DESTROY
)
e8
:
SetRange
(
LOCATION_MZONE
)
e8
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e8
:
SetTarget
(
c55343236
.
destarget
)
c
:
RegisterEffect
(
e8
)
--cannot announce
--cannot announce
local
e8
=
Effect
.
CreateEffect
(
c
)
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_FIELD
)
e8
:
SetType
(
EFFECT_TYPE_FIELD
)
...
@@ -57,15 +28,6 @@ function c55343236.initial_effect(c)
...
@@ -57,15 +28,6 @@ function c55343236.initial_effect(c)
e8
:
SetTarget
(
c55343236
.
antarget
)
e8
:
SetTarget
(
c55343236
.
antarget
)
c
:
RegisterEffect
(
e8
)
c
:
RegisterEffect
(
e8
)
end
end
function
c55343236
.
sumlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0x23
)
end
function
c55343236
.
exfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x23
)
end
function
c55343236
.
excon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
c55343236
.
exfilter
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
function
c55343236
.
spfilter
(
c
)
function
c55343236
.
spfilter
(
c
)
return
c
:
IsCode
(
74677422
)
and
c
:
IsAbleToRemoveAsCost
()
return
c
:
IsCode
(
74677422
)
and
c
:
IsAbleToRemoveAsCost
()
end
end
...
@@ -73,7 +35,6 @@ function c55343236.spcon(e,c)
...
@@ -73,7 +35,6 @@ function c55343236.spcon(e,c)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
return
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
return
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c55343236
.
spfilter
,
c
:
GetControler
(),
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c55343236
.
spfilter
,
c
:
GetControler
(),
LOCATION_DECK
,
0
,
1
,
nil
)
and
not
Duel
.
IsExistingMatchingCard
(
c55343236
.
exfilter
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
end
function
c55343236
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c55343236
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
tc
=
Duel
.
GetFirstMatchingCard
(
c55343236
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
tc
=
Duel
.
GetFirstMatchingCard
(
c55343236
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
...
@@ -84,9 +45,6 @@ function c55343236.descon(e)
...
@@ -84,9 +45,6 @@ function c55343236.descon(e)
local
f2
=
Duel
.
GetFieldCard
(
1
,
LOCATION_SZONE
,
5
)
local
f2
=
Duel
.
GetFieldCard
(
1
,
LOCATION_SZONE
,
5
)
return
(
f1
==
nil
or
f1
:
IsFacedown
())
and
(
f2
==
nil
or
f2
:
IsFacedown
())
return
(
f1
==
nil
or
f1
:
IsFacedown
())
and
(
f2
==
nil
or
f2
:
IsFacedown
())
end
end
function
c55343236
.
destarget
(
e
,
c
)
return
c
:
IsSetCard
(
0x23
)
and
c
:
GetFieldID
()
>
e
:
GetHandler
():
GetFieldID
()
end
function
c55343236
.
antarget
(
e
,
c
)
function
c55343236
.
antarget
(
e
,
c
)
return
c
~=
e
:
GetHandler
()
return
c
~=
e
:
GetHandler
()
end
end
c598988.lua
View file @
1fdc6bc9
--Sin レインボー・ドラゴン
--Sin レインボー・ドラゴン
function
c598988
.
initial_effect
(
c
)
function
c598988
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
c
:
SetUniqueOnField
(
1
,
1
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0x23
),
LOCATION_MZONE
)
--special summon
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
@@ -10,29 +11,6 @@ function c598988.initial_effect(c)
...
@@ -10,29 +11,6 @@ function c598988.initial_effect(c)
e1
:
SetCondition
(
c598988
.
spcon
)
e1
:
SetCondition
(
c598988
.
spcon
)
e1
:
SetOperation
(
c598988
.
spop
)
e1
:
SetOperation
(
c598988
.
spop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--only 1 can exists
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_CANNOT_FLIP_SUMMON
)
e2
:
SetCondition
(
c598988
.
excon
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e4
:
SetTargetRange
(
1
,
1
)
e4
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
e4
:
SetTarget
(
c598988
.
sumlimit
)
c
:
RegisterEffect
(
e4
)
local
e5
=
e4
:
Clone
()
e5
:
SetCode
(
EFFECT_CANNOT_FLIP_SUMMON
)
c
:
RegisterEffect
(
e5
)
local
e6
=
e4
:
Clone
()
e6
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
c
:
RegisterEffect
(
e6
)
--selfdes
--selfdes
local
e7
=
Effect
.
CreateEffect
(
c
)
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetType
(
EFFECT_TYPE_SINGLE
)
e7
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
@@ -41,13 +19,6 @@ function c598988.initial_effect(c)
...
@@ -41,13 +19,6 @@ function c598988.initial_effect(c)
e7
:
SetCode
(
EFFECT_SELF_DESTROY
)
e7
:
SetCode
(
EFFECT_SELF_DESTROY
)
e7
:
SetCondition
(
c598988
.
descon
)
e7
:
SetCondition
(
c598988
.
descon
)
c
:
RegisterEffect
(
e7
)
c
:
RegisterEffect
(
e7
)
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_FIELD
)
e8
:
SetCode
(
EFFECT_SELF_DESTROY
)
e8
:
SetRange
(
LOCATION_MZONE
)
e8
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e8
:
SetTarget
(
c598988
.
destarget
)
c
:
RegisterEffect
(
e8
)
--cannot announce
--cannot announce
local
e8
=
Effect
.
CreateEffect
(
c
)
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_FIELD
)
e8
:
SetType
(
EFFECT_TYPE_FIELD
)
...
@@ -64,15 +35,6 @@ function c598988.initial_effect(c)
...
@@ -64,15 +35,6 @@ function c598988.initial_effect(c)
e9
:
SetValue
(
aux
.
FALSE
)
e9
:
SetValue
(
aux
.
FALSE
)
c
:
RegisterEffect
(
e9
)
c
:
RegisterEffect
(
e9
)
end
end
function
c598988
.
sumlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0x23
)
end
function
c598988
.
exfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x23
)
end
function
c598988
.
excon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
c598988
.
exfilter
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
function
c598988
.
spfilter
(
c
)
function
c598988
.
spfilter
(
c
)
return
c
:
IsCode
(
79856792
)
and
c
:
IsAbleToRemoveAsCost
()
return
c
:
IsCode
(
79856792
)
and
c
:
IsAbleToRemoveAsCost
()
end
end
...
@@ -80,7 +42,6 @@ function c598988.spcon(e,c)
...
@@ -80,7 +42,6 @@ function c598988.spcon(e,c)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
return
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
return
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c598988
.
spfilter
,
c
:
GetControler
(),
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c598988
.
spfilter
,
c
:
GetControler
(),
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
)
and
not
Duel
.
IsExistingMatchingCard
(
c598988
.
exfilter
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
end
function
c598988
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c598988
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
...
@@ -92,9 +53,6 @@ function c598988.descon(e)
...
@@ -92,9 +53,6 @@ function c598988.descon(e)
local
f2
=
Duel
.
GetFieldCard
(
1
,
LOCATION_SZONE
,
5
)
local
f2
=
Duel
.
GetFieldCard
(
1
,
LOCATION_SZONE
,
5
)
return
(
f1
==
nil
or
f1
:
IsFacedown
())
and
(
f2
==
nil
or
f2
:
IsFacedown
())
return
(
f1
==
nil
or
f1
:
IsFacedown
())
and
(
f2
==
nil
or
f2
:
IsFacedown
())
end
end
function
c598988
.
destarget
(
e
,
c
)
return
c
:
IsSetCard
(
0x23
)
and
c
:
GetFieldID
()
>
e
:
GetHandler
():
GetFieldID
()
end
function
c598988
.
antarget
(
e
,
c
)
function
c598988
.
antarget
(
e
,
c
)
return
c
~=
e
:
GetHandler
()
return
c
~=
e
:
GetHandler
()
end
end
c63941210.lua
View file @
1fdc6bc9
--壊星壊獣ジズキエル
--壊星壊獣ジズキエル
function
c63941210
.
initial_effect
(
c
)
function
c63941210
.
initial_effect
(
c
)
c
:
SetUniqueOnField
(
1
,
0
,
20000000
,
LOCATION_MZONE
)
c
:
SetUniqueOnField
(
1
,
0
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0xd3
)
,
LOCATION_MZONE
)
--special summon rule
--special summon rule
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
c69931927.lua
View file @
1fdc6bc9
--地縛神 Chacu Challhua
--地縛神 Chacu Challhua
function
c69931927
.
initial_effect
(
c
)
function
c69931927
.
initial_effect
(
c
)
c
:
SetUniqueOnField
(
1
,
1
,
10000000
,
LOCATION_MZONE
)
c
:
SetUniqueOnField
(
1
,
1
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0x21
)
,
LOCATION_MZONE
)
--
--
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c79798060.lua
View file @
1fdc6bc9
--地縛神 Ccarayhua
--地縛神 Ccarayhua
function
c79798060
.
initial_effect
(
c
)
function
c79798060
.
initial_effect
(
c
)
c
:
SetUniqueOnField
(
1
,
1
,
10000000
,
LOCATION_MZONE
)
c
:
SetUniqueOnField
(
1
,
1
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0x21
)
,
LOCATION_MZONE
)
--
--
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c84769941.lua
View file @
1fdc6bc9
--対壊獣用決戦兵器スーパーメカドゴラン
--対壊獣用決戦兵器スーパーメカドゴラン
function
c84769941
.
initial_effect
(
c
)
function
c84769941
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
c
:
SetUniqueOnField
(
1
,
0
,
20000000
,
LOCATION_MZONE
)
c
:
SetUniqueOnField
(
1
,
0
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0xd3
)
,
LOCATION_MZONE
)
--special summon
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
c93332803.lua
View file @
1fdc6bc9
--怒炎壊獣ドゴラン
--怒炎壊獣ドゴラン
function
c93332803
.
initial_effect
(
c
)
function
c93332803
.
initial_effect
(
c
)
c
:
SetUniqueOnField
(
1
,
0
,
20000000
,
LOCATION_MZONE
)
c
:
SetUniqueOnField
(
1
,
0
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0xd3
)
,
LOCATION_MZONE
)
--special summon rule
--special summon rule
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
c9433350.lua
View file @
1fdc6bc9
--Sin 青眼の白龍
--Sin 青眼の白龍
function
c9433350
.
initial_effect
(
c
)
function
c9433350
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
c
:
SetUniqueOnField
(
1
,
1
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0x23
),
LOCATION_MZONE
)
--special summon
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
@@ -10,29 +11,6 @@ function c9433350.initial_effect(c)
...
@@ -10,29 +11,6 @@ function c9433350.initial_effect(c)
e1
:
SetCondition
(
c9433350
.
spcon
)
e1
:
SetCondition
(
c9433350
.
spcon
)
e1
:
SetOperation
(
c9433350
.
spop
)
e1
:
SetOperation
(
c9433350
.
spop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--only 1 can exists
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_CANNOT_FLIP_SUMMON
)
e2
:
SetCondition
(
c9433350
.
excon
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e4
:
SetTargetRange
(
1
,
1
)
e4
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
e4
:
SetTarget
(
c9433350
.
sumlimit
)
c
:
RegisterEffect
(
e4
)
local
e5
=
e4
:
Clone
()
e5
:
SetCode
(
EFFECT_CANNOT_FLIP_SUMMON
)
c
:
RegisterEffect
(
e5
)
local
e6
=
e4
:
Clone
()
e6
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
c
:
RegisterEffect
(
e6
)
--selfdes
--selfdes
local
e7
=
Effect
.
CreateEffect
(
c
)
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetType
(
EFFECT_TYPE_SINGLE
)
e7
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
@@ -41,13 +19,6 @@ function c9433350.initial_effect(c)
...
@@ -41,13 +19,6 @@ function c9433350.initial_effect(c)
e7
:
SetCode
(
EFFECT_SELF_DESTROY
)
e7
:
SetCode
(
EFFECT_SELF_DESTROY
)
e7
:
SetCondition
(
c9433350
.
descon
)
e7
:
SetCondition
(
c9433350
.
descon
)
c
:
RegisterEffect
(
e7
)
c
:
RegisterEffect
(
e7
)
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_FIELD
)
e8
:
SetCode
(
EFFECT_SELF_DESTROY
)
e8
:
SetRange
(
LOCATION_MZONE
)
e8
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e8
:
SetTarget
(
c9433350
.
destarget
)
c
:
RegisterEffect
(
e8
)
--cannot announce
--cannot announce
local
e8
=
Effect
.
CreateEffect
(
c
)
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_FIELD
)
e8
:
SetType
(
EFFECT_TYPE_FIELD
)
...
@@ -57,15 +28,6 @@ function c9433350.initial_effect(c)
...
@@ -57,15 +28,6 @@ function c9433350.initial_effect(c)
e8
:
SetTarget
(
c9433350
.
antarget
)
e8
:
SetTarget
(
c9433350
.
antarget
)
c
:
RegisterEffect
(
e8
)
c
:
RegisterEffect
(
e8
)
end
end
function
c9433350
.
sumlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0x23
)
end
function
c9433350
.
exfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x23
)
end
function
c9433350
.
excon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
c9433350
.
exfilter
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
function
c9433350
.
spfilter
(
c
)
function
c9433350
.
spfilter
(
c
)
return
c
:
IsCode
(
89631139
)
and
c
:
IsAbleToRemoveAsCost
()
return
c
:
IsCode
(
89631139
)
and
c
:
IsAbleToRemoveAsCost
()
end
end
...
@@ -73,7 +35,6 @@ function c9433350.spcon(e,c)
...
@@ -73,7 +35,6 @@ function c9433350.spcon(e,c)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
return
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
return
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c9433350
.
spfilter
,
c
:
GetControler
(),
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c9433350
.
spfilter
,
c
:
GetControler
(),
LOCATION_DECK
,
0
,
1
,
nil
)
and
not
Duel
.
IsExistingMatchingCard
(
c9433350
.
exfilter
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
end
function
c9433350
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c9433350
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
tc
=
Duel
.
GetFirstMatchingCard
(
c9433350
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
tc
=
Duel
.
GetFirstMatchingCard
(
c9433350
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
...
@@ -84,9 +45,6 @@ function c9433350.descon(e)
...
@@ -84,9 +45,6 @@ function c9433350.descon(e)
local
f2
=
Duel
.
GetFieldCard
(
1
,
LOCATION_SZONE
,
5
)
local
f2
=
Duel
.
GetFieldCard
(
1
,
LOCATION_SZONE
,
5
)
return
(
f1
==
nil
or
f1
:
IsFacedown
())
and
(
f2
==
nil
or
f2
:
IsFacedown
())
return
(
f1
==
nil
or
f1
:
IsFacedown
())
and
(
f2
==
nil
or
f2
:
IsFacedown
())
end
end
function
c9433350
.
destarget
(
e
,
c
)
return
c
:
IsSetCard
(
0x23
)
and
c
:
GetFieldID
()
>
e
:
GetHandler
():
GetFieldID
()
end
function
c9433350
.
antarget
(
e
,
c
)
function
c9433350
.
antarget
(
e
,
c
)
return
c
~=
e
:
GetHandler
()
return
c
~=
e
:
GetHandler
()
end
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