Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
Nguyễn Anh Kiệt
ygopro-222DIY-cards
Commits
35d8a537
Commit
35d8a537
authored
Aug 05, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1+1=3
parent
332a19d3
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
55 additions
and
236 deletions
+55
-236
expansions/script/c21580001.lua
expansions/script/c21580001.lua
+1
-47
expansions/script/c21580002.lua
expansions/script/c21580002.lua
+1
-47
expansions/script/c21580003.lua
expansions/script/c21580003.lua
+1
-47
expansions/script/c21580004.lua
expansions/script/c21580004.lua
+1
-47
expansions/script/c21580006.lua
expansions/script/c21580006.lua
+1
-47
expansions/script/c81000000.lua
expansions/script/c81000000.lua
+49
-0
expansions/script/c81000525.lua
expansions/script/c81000525.lua
+1
-1
No files found.
expansions/script/c21580001.lua
View file @
35d8a537
...
...
@@ -3,26 +3,7 @@ local m=21580001
local
cm
=
_G
[
"c"
..
m
]
Duel
.
LoadScript
(
"c81000000.lua"
)
function
cm
.
initial_effect
(
c
)
--fusion material
c
:
EnableReviveLimit
()
aux
.
AddFusionProcFun2
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_PSYCHO
),
aux
.
FilterBoolFunction
(
Card
.
IsFusionAttribute
,
ATTRIBUTE_WATER
),
true
)
--spsummon condition
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
cm
.
splimit
)
c
:
RegisterEffect
(
e1
)
--spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e2
:
SetRange
(
LOCATION_EXTRA
)
e2
:
SetCondition
(
cm
.
hspcon
)
e2
:
SetTarget
(
cm
.
hsptg
)
e2
:
SetOperation
(
cm
.
hspop
)
c
:
RegisterEffect
(
e2
)
Tenka
.
Nagiko
(
c
)
--special summon
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
...
...
@@ -50,33 +31,6 @@ function cm.initial_effect(c)
e4
:
SetOperation
(
cm
.
thop
)
c
:
RegisterEffect
(
e4
)
end
function
cm
.
splimit
(
e
,
se
,
sp
,
st
)
return
not
e
:
GetHandler
():
IsLocation
(
LOCATION_EXTRA
)
or
aux
.
fuslimit
(
e
,
se
,
sp
,
st
)
end
function
cm
.
hspfilter
(
c
,
tp
,
sc
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsControler
(
tp
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
sc
)
>
0
and
c
:
IsCanBeFusionMaterial
(
sc
,
SUMMON_TYPE_SPECIAL
)
end
function
cm
.
hspcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
return
Duel
.
CheckReleaseGroupEx
(
c
:
GetControler
(),
cm
.
hspfilter
,
2
,
REASON_SPSUMMON
,
false
,
nil
,
c
:
GetControler
(),
c
)
and
Duel
.
CheckLPCost
(
c
:
GetControler
(),
1000
)
end
function
cm
.
hsptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
c
)
local
g
=
Duel
.
GetReleaseGroup
(
tp
,
false
,
REASON_SPSUMMON
):
Filter
(
cm
.
hspfilter
,
nil
,
tp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
tc
=
g
:
SelectUnselect
(
nil
,
tp
,
false
,
true
,
2
,
2
)
if
tc
then
e
:
SetLabelObject
(
tc
)
return
true
else
return
false
end
end
function
cm
.
hspop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
tc
=
e
:
GetLabelObject
()
c
:
SetMaterial
(
Group
.
FromCards
(
tc
))
Duel
.
Release
(
tc
,
REASON_SPSUMMON
)
Duel
.
PayLPCost
(
tp
,
1000
)
end
function
cm
.
cfilter
(
c
,
tp
)
return
c
:
IsSummonPlayer
(
1
-
tp
)
end
...
...
expansions/script/c21580002.lua
View file @
35d8a537
...
...
@@ -3,26 +3,7 @@ local m=21580002
local
cm
=
_G
[
"c"
..
m
]
Duel
.
LoadScript
(
"c81000000.lua"
)
function
cm
.
initial_effect
(
c
)
--fusion material
c
:
EnableReviveLimit
()
aux
.
AddFusionProcFun2
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_PSYCHO
),
aux
.
FilterBoolFunction
(
Card
.
IsFusionAttribute
,
ATTRIBUTE_WATER
),
true
)
--spsummon condition
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
cm
.
splimit
)
c
:
RegisterEffect
(
e1
)
--spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e2
:
SetRange
(
LOCATION_EXTRA
)
e2
:
SetCondition
(
cm
.
hspcon
)
e2
:
SetTarget
(
cm
.
hsptg
)
e2
:
SetOperation
(
cm
.
hspop
)
c
:
RegisterEffect
(
e2
)
Tenka
.
Nagiko
(
c
)
--spsummon
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
...
...
@@ -50,33 +31,6 @@ function cm.initial_effect(c)
e4
:
SetOperation
(
cm
.
atkop
)
c
:
RegisterEffect
(
e4
)
end
function
cm
.
splimit
(
e
,
se
,
sp
,
st
)
return
not
e
:
GetHandler
():
IsLocation
(
LOCATION_EXTRA
)
or
aux
.
fuslimit
(
e
,
se
,
sp
,
st
)
end
function
cm
.
hspfilter
(
c
,
tp
,
sc
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsControler
(
tp
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
sc
)
>
0
and
c
:
IsCanBeFusionMaterial
(
sc
,
SUMMON_TYPE_SPECIAL
)
end
function
cm
.
hspcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
return
Duel
.
CheckReleaseGroupEx
(
c
:
GetControler
(),
cm
.
hspfilter
,
2
,
REASON_SPSUMMON
,
false
,
nil
,
c
:
GetControler
(),
c
)
and
Duel
.
CheckLPCost
(
c
:
GetControler
(),
1000
)
end
function
cm
.
hsptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
c
)
local
g
=
Duel
.
GetReleaseGroup
(
tp
,
false
,
REASON_SPSUMMON
):
Filter
(
cm
.
hspfilter
,
nil
,
tp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
tc
=
g
:
SelectUnselect
(
nil
,
tp
,
false
,
true
,
2
,
2
)
if
tc
then
e
:
SetLabelObject
(
tc
)
return
true
else
return
false
end
end
function
cm
.
hspop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
tc
=
e
:
GetLabelObject
()
c
:
SetMaterial
(
Group
.
FromCards
(
tc
))
Duel
.
Release
(
tc
,
REASON_SPSUMMON
)
Duel
.
PayLPCost
(
tp
,
1000
)
end
function
cm
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rp
==
1
-
tp
end
...
...
expansions/script/c21580003.lua
View file @
35d8a537
...
...
@@ -3,26 +3,7 @@ local m=21580003
local
cm
=
_G
[
"c"
..
m
]
Duel
.
LoadScript
(
"c81000000.lua"
)
function
cm
.
initial_effect
(
c
)
--fusion material
c
:
EnableReviveLimit
()
aux
.
AddFusionProcFun2
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_PSYCHO
),
aux
.
FilterBoolFunction
(
Card
.
IsFusionAttribute
,
ATTRIBUTE_WATER
),
true
)
--spsummon condition
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
cm
.
splimit
)
c
:
RegisterEffect
(
e1
)
--spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e2
:
SetRange
(
LOCATION_EXTRA
)
e2
:
SetCondition
(
cm
.
hspcon
)
e2
:
SetTarget
(
cm
.
hsptg
)
e2
:
SetOperation
(
cm
.
hspop
)
c
:
RegisterEffect
(
e2
)
Tenka
.
Nagiko
(
c
)
--special summon
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
...
...
@@ -51,33 +32,6 @@ function cm.initial_effect(c)
e4
:
SetOperation
(
cm
.
thop
)
c
:
RegisterEffect
(
e4
)
end
function
cm
.
splimit
(
e
,
se
,
sp
,
st
)
return
not
e
:
GetHandler
():
IsLocation
(
LOCATION_EXTRA
)
or
aux
.
fuslimit
(
e
,
se
,
sp
,
st
)
end
function
cm
.
hspfilter
(
c
,
tp
,
sc
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsControler
(
tp
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
sc
)
>
0
and
c
:
IsCanBeFusionMaterial
(
sc
,
SUMMON_TYPE_SPECIAL
)
end
function
cm
.
hspcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
return
Duel
.
CheckReleaseGroupEx
(
c
:
GetControler
(),
cm
.
hspfilter
,
2
,
REASON_SPSUMMON
,
false
,
nil
,
c
:
GetControler
(),
c
)
and
Duel
.
CheckLPCost
(
c
:
GetControler
(),
1000
)
end
function
cm
.
hsptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
c
)
local
g
=
Duel
.
GetReleaseGroup
(
tp
,
false
,
REASON_SPSUMMON
):
Filter
(
cm
.
hspfilter
,
nil
,
tp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
tc
=
g
:
SelectUnselect
(
nil
,
tp
,
false
,
true
,
2
,
2
)
if
tc
then
e
:
SetLabelObject
(
tc
)
return
true
else
return
false
end
end
function
cm
.
hspop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
tc
=
e
:
GetLabelObject
()
c
:
SetMaterial
(
Group
.
FromCards
(
tc
))
Duel
.
Release
(
tc
,
REASON_SPSUMMON
)
Duel
.
PayLPCost
(
tp
,
1000
)
end
function
cm
.
drcfilter
(
c
,
tp
)
return
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
c
:
IsPreviousControler
(
1
-
tp
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
end
...
...
expansions/script/c21580004.lua
View file @
35d8a537
...
...
@@ -3,26 +3,7 @@ local m=21580004
local
cm
=
_G
[
"c"
..
m
]
Duel
.
LoadScript
(
"c81000000.lua"
)
function
cm
.
initial_effect
(
c
)
--fusion material
c
:
EnableReviveLimit
()
aux
.
AddFusionProcFun2
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_PSYCHO
),
aux
.
FilterBoolFunction
(
Card
.
IsFusionAttribute
,
ATTRIBUTE_WATER
),
true
)
--spsummon condition
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
cm
.
splimit
)
c
:
RegisterEffect
(
e1
)
--spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e2
:
SetRange
(
LOCATION_EXTRA
)
e2
:
SetCondition
(
cm
.
hspcon
)
e2
:
SetTarget
(
cm
.
hsptg
)
e2
:
SetOperation
(
cm
.
hspop
)
c
:
RegisterEffect
(
e2
)
Tenka
.
Nagiko
(
c
)
--to deck
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
...
...
@@ -51,33 +32,6 @@ function cm.initial_effect(c)
e4
:
SetOperation
(
cm
.
thop
)
c
:
RegisterEffect
(
e4
)
end
function
cm
.
splimit
(
e
,
se
,
sp
,
st
)
return
not
e
:
GetHandler
():
IsLocation
(
LOCATION_EXTRA
)
or
aux
.
fuslimit
(
e
,
se
,
sp
,
st
)
end
function
cm
.
hspfilter
(
c
,
tp
,
sc
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsControler
(
tp
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
sc
)
>
0
and
c
:
IsCanBeFusionMaterial
(
sc
,
SUMMON_TYPE_SPECIAL
)
end
function
cm
.
hspcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
return
Duel
.
CheckReleaseGroupEx
(
c
:
GetControler
(),
cm
.
hspfilter
,
2
,
REASON_SPSUMMON
,
false
,
nil
,
c
:
GetControler
(),
c
)
and
Duel
.
CheckLPCost
(
c
:
GetControler
(),
1000
)
end
function
cm
.
hsptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
c
)
local
g
=
Duel
.
GetReleaseGroup
(
tp
,
false
,
REASON_SPSUMMON
):
Filter
(
cm
.
hspfilter
,
nil
,
tp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
tc
=
g
:
SelectUnselect
(
nil
,
tp
,
false
,
true
,
2
,
2
)
if
tc
then
e
:
SetLabelObject
(
tc
)
return
true
else
return
false
end
end
function
cm
.
hspop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
tc
=
e
:
GetLabelObject
()
c
:
SetMaterial
(
Group
.
FromCards
(
tc
))
Duel
.
Release
(
tc
,
REASON_SPSUMMON
)
Duel
.
PayLPCost
(
tp
,
1000
)
end
function
cm
.
drcfilter
(
c
,
tp
)
return
c
:
IsPreviousLocation
(
LOCATION_DECK
+
LOCATION_HAND
+
LOCATION_EXTRA
)
and
c
:
IsPreviousControler
(
1
-
tp
)
end
...
...
expansions/script/c21580006.lua
View file @
35d8a537
...
...
@@ -3,26 +3,7 @@ local m=21580006
local
cm
=
_G
[
"c"
..
m
]
Duel
.
LoadScript
(
"c81000000.lua"
)
function
cm
.
initial_effect
(
c
)
--fusion material
c
:
EnableReviveLimit
()
aux
.
AddFusionProcFun2
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_PSYCHO
),
aux
.
FilterBoolFunction
(
Card
.
IsFusionAttribute
,
ATTRIBUTE_WATER
),
true
)
--spsummon condition
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
cm
.
splimit
)
c
:
RegisterEffect
(
e1
)
--spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e2
:
SetRange
(
LOCATION_EXTRA
)
e2
:
SetCondition
(
cm
.
hspcon
)
e2
:
SetTarget
(
cm
.
hsptg
)
e2
:
SetOperation
(
cm
.
hspop
)
c
:
RegisterEffect
(
e2
)
Tenka
.
Nagiko
(
c
)
--to grave
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
...
...
@@ -51,33 +32,6 @@ function cm.initial_effect(c)
e4
:
SetOperation
(
cm
.
rmop
)
c
:
RegisterEffect
(
e4
)
end
function
cm
.
splimit
(
e
,
se
,
sp
,
st
)
return
not
e
:
GetHandler
():
IsLocation
(
LOCATION_EXTRA
)
or
aux
.
fuslimit
(
e
,
se
,
sp
,
st
)
end
function
cm
.
hspfilter
(
c
,
tp
,
sc
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsControler
(
tp
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
sc
)
>
0
and
c
:
IsCanBeFusionMaterial
(
sc
,
SUMMON_TYPE_SPECIAL
)
end
function
cm
.
hspcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
return
Duel
.
CheckReleaseGroupEx
(
c
:
GetControler
(),
cm
.
hspfilter
,
2
,
REASON_SPSUMMON
,
false
,
nil
,
c
:
GetControler
(),
c
)
and
Duel
.
CheckLPCost
(
c
:
GetControler
(),
1000
)
end
function
cm
.
hsptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
c
)
local
g
=
Duel
.
GetReleaseGroup
(
tp
,
false
,
REASON_SPSUMMON
):
Filter
(
cm
.
hspfilter
,
nil
,
tp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
tc
=
g
:
SelectUnselect
(
nil
,
tp
,
false
,
true
,
2
,
2
)
if
tc
then
e
:
SetLabelObject
(
tc
)
return
true
else
return
false
end
end
function
cm
.
hspop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
tc
=
e
:
GetLabelObject
()
c
:
SetMaterial
(
Group
.
FromCards
(
tc
))
Duel
.
Release
(
tc
,
REASON_SPSUMMON
)
Duel
.
PayLPCost
(
tp
,
1000
)
end
function
cm
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DRAW
and
eg
:
IsExists
(
Card
.
IsControler
,
1
,
nil
,
1
-
tp
)
end
...
...
expansions/script/c81000000.lua
View file @
35d8a537
...
...
@@ -302,3 +302,52 @@ end
function
Tenka
.
costfilter
(
c
,
tp
)
return
c
:
IsCode
(
1090000
)
and
c
:
IsAbleToDeckOrExtraAsCost
()
end
--
function
Tenka
.
Nagiko
(
c
)
--fusion material
c
:
EnableReviveLimit
()
aux
.
AddFusionProcFun2
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_PSYCHO
),
aux
.
FilterBoolFunction
(
Card
.
IsFusionAttribute
,
ATTRIBUTE_WATER
),
true
)
local
ea
=
Effect
.
CreateEffect
(
c
)
ea
:
SetType
(
EFFECT_TYPE_SINGLE
)
ea
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
ea
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
ea
:
SetValue
(
Tenka
.
NagikoSplimit
)
c
:
RegisterEffect
(
ea
)
local
eb
=
Effect
.
CreateEffect
(
c
)
eb
:
SetType
(
EFFECT_TYPE_FIELD
)
eb
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
eb
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
eb
:
SetRange
(
LOCATION_EXTRA
)
eb
:
SetCondition
(
Tenka
.
NagikoSpcon
)
eb
:
SetTarget
(
Tenka
.
NagikoSptg
)
eb
:
SetOperation
(
Tenka
.
NagikoSpop
)
c
:
RegisterEffect
(
eb
)
end
function
Tenka
.
NagikoSplimit
(
e
,
se
,
sp
,
st
)
return
not
e
:
GetHandler
():
IsLocation
(
LOCATION_EXTRA
)
or
aux
.
fuslimit
(
e
,
se
,
sp
,
st
)
end
function
Tenka
.
NagikoSpfilter
(
c
,
tp
,
sc
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsControler
(
tp
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
sc
)
>
0
and
c
:
IsCanBeFusionMaterial
(
sc
,
SUMMON_TYPE_SPECIAL
)
end
function
Tenka
.
NagikoSpcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
return
Duel
.
CheckReleaseGroupEx
(
c
:
GetControler
(),
Tenka
.
NagikoSpfilter
,
2
,
REASON_SPSUMMON
,
false
,
nil
,
c
:
GetControler
(),
c
)
and
Duel
.
CheckLPCost
(
c
:
GetControler
(),
1000
)
end
function
Tenka
.
NagikoSptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
c
)
local
rg
=
Duel
.
GetReleaseGroup
(
tp
,
false
,
REASON_SPSUMMON
):
Filter
(
Tenka
.
NagikoSpfilter
,
nil
,
tp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
sg
=
rg
:
SelectSubGroup
(
tp
,
aux
.
mzctcheckrel
,
true
,
2
,
2
,
tp
,
REASON_SPSUMMON
)
if
sg
then
sg
:
KeepAlive
()
e
:
SetLabelObject
(
sg
)
return
true
else
return
false
end
end
function
Tenka
.
NagikoSpop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
tc
=
e
:
GetLabelObject
()
c
:
SetMaterial
(
Group
.
FromCards
(
tc
))
Duel
.
Release
(
tc
,
REASON_SPSUMMON
)
Duel
.
PayLPCost
(
tp
,
1000
)
end
expansions/script/c81000525.lua
View file @
35d8a537
...
...
@@ -51,8 +51,8 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e4
,
tp
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetCode
(
EFFECT_SET_SUMMON_COUNT_LIMIT
)
e5
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e5
:
SetCode
(
EFFECT_DRAW_COUNT
)
e5
:
SetTargetRange
(
1
,
0
)
e5
:
SetValue
(
2
)
Duel
.
RegisterEffect
(
e5
,
tp
)
...
...
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