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
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
八宫一月
ygopro-scripts
Commits
5663ffe0
Commit
5663ffe0
authored
Mar 27, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Plain Diff
Merge #327
parents
c3453104
5efa0d95
Changes
25
Show whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
101 additions
and
1062 deletions
+101
-1062
c16889337.lua
c16889337.lua
+2
-46
c17241370.lua
c17241370.lua
+2
-46
c2134346.lua
c2134346.lua
+2
-46
c2356994.lua
c2356994.lua
+2
-46
c24701235.lua
c24701235.lua
+2
-46
c3078576.lua
c3078576.lua
+2
-47
c34853266.lua
c34853266.lua
+2
-47
c38538445.lua
c38538445.lua
+2
-46
c38975369.lua
c38975369.lua
+2
-46
c39751093.lua
c39751093.lua
+2
-46
c40473581.lua
c40473581.lua
+2
-46
c40695128.lua
c40695128.lua
+2
-46
c43378076.lua
c43378076.lua
+2
-46
c43543777.lua
c43543777.lua
+2
-47
c44877690.lua
c44877690.lua
+2
-2
c45452224.lua
c45452224.lua
+2
-46
c50866755.lua
c50866755.lua
+2
-46
c73551138.lua
c73551138.lua
+2
-47
c75745607.lua
c75745607.lua
+2
-46
c76862289.lua
c76862289.lua
+2
-46
c77084837.lua
c77084837.lua
+2
-46
c82841979.lua
c82841979.lua
+2
-43
c89111398.lua
c89111398.lua
+2
-46
c94215860.lua
c94215860.lua
+2
-46
utility.lua
utility.lua
+53
-1
No files found.
c16889337.lua
View file @
5663ffe0
--荒魂
function
c16889337
.
initial_effect
(
c
)
--spirit return
aux
.
EnableSpiritReturn
(
c
)
--cannot special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
...
...
@@ -7,16 +9,6 @@ function c16889337.initial_effect(c)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
aux
.
FALSE
)
c
:
RegisterEffect
(
e1
)
--summon,flip
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetOperation
(
c16889337
.
retreg
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_FLIP
)
c
:
RegisterEffect
(
e3
)
--search
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
16889337
,
0
))
...
...
@@ -46,39 +38,3 @@ function c16889337.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
function
c16889337
.
retreg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetDescription
(
aux
.
Stringid
(
16889337
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ee0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
c16889337
.
retcon
)
e1
:
SetTarget
(
c16889337
.
rettg
)
e1
:
SetOperation
(
c16889337
.
retop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
c
:
RegisterEffect
(
e2
)
end
function
c16889337
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsHasEffect
(
EFFECT_SPIRIT_DONOT_RETURN
)
then
return
false
end
if
e
:
IsHasType
(
EFFECT_TYPE_TRIGGER_F
)
then
return
not
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
else
return
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
end
end
function
c16889337
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c16889337
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
end
end
c17241370.lua
View file @
5663ffe0
--リチュア・ナタリア
function
c17241370
.
initial_effect
(
c
)
--spirit return
aux
.
EnableSpiritReturn
(
c
)
--cannot special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
...
...
@@ -7,16 +9,6 @@ function c17241370.initial_effect(c)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
aux
.
FALSE
)
c
:
RegisterEffect
(
e1
)
--summon,flip
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetOperation
(
c17241370
.
retreg
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_FLIP
)
c
:
RegisterEffect
(
e3
)
--to deck
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
17241370
,
1
))
...
...
@@ -47,39 +39,3 @@ function c17241370.tdop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoDeck
(
tc
,
nil
,
0
,
REASON_EFFECT
)
end
end
function
c17241370
.
retreg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetDescription
(
aux
.
Stringid
(
17241370
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ee0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
c17241370
.
retcon
)
e1
:
SetTarget
(
c17241370
.
rettg
)
e1
:
SetOperation
(
c17241370
.
retop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
c
:
RegisterEffect
(
e2
)
end
function
c17241370
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsHasEffect
(
EFFECT_SPIRIT_DONOT_RETURN
)
then
return
false
end
if
e
:
IsHasType
(
EFFECT_TYPE_TRIGGER_F
)
then
return
not
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
else
return
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
end
end
function
c17241370
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c17241370
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
end
end
c2134346.lua
View file @
5663ffe0
--阿修羅
function
c2134346
.
initial_effect
(
c
)
--spirit return
aux
.
EnableSpiritReturn
(
c
)
--cannot special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
...
...
@@ -7,16 +9,6 @@ function c2134346.initial_effect(c)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
aux
.
FALSE
)
c
:
RegisterEffect
(
e1
)
--summon,flip
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetOperation
(
c2134346
.
retreg
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_FLIP
)
c
:
RegisterEffect
(
e3
)
--attack all
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -24,39 +16,3 @@ function c2134346.initial_effect(c)
e4
:
SetValue
(
1
)
c
:
RegisterEffect
(
e4
)
end
function
c2134346
.
retreg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetDescription
(
aux
.
Stringid
(
2134346
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
c2134346
.
retcon
)
e1
:
SetTarget
(
c2134346
.
rettg
)
e1
:
SetOperation
(
c2134346
.
retop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
c
:
RegisterEffect
(
e2
)
end
function
c2134346
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsHasEffect
(
EFFECT_SPIRIT_DONOT_RETURN
)
then
return
false
end
if
e
:
IsHasType
(
EFFECT_TYPE_TRIGGER_F
)
then
return
not
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
else
return
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
end
end
function
c2134346
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c2134346
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
end
end
c2356994.lua
View file @
5663ffe0
--偉大天狗
function
c2356994
.
initial_effect
(
c
)
--spirit return
aux
.
EnableSpiritReturn
(
c
)
--cannot special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
c
:
RegisterEffect
(
e1
)
--summon,flip
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetOperation
(
c2356994
.
retreg
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_FLIP
)
c
:
RegisterEffect
(
e3
)
--skip BP
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
2356994
,
1
))
...
...
@@ -46,39 +38,3 @@ end
function
c2356994
.
bpcon
(
e
)
return
Duel
.
GetTurnCount
()
~=
e
:
GetLabel
()
end
function
c2356994
.
retreg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetDescription
(
aux
.
Stringid
(
2356994
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
c2356994
.
retcon
)
e1
:
SetTarget
(
c2356994
.
rettg
)
e1
:
SetOperation
(
c2356994
.
retop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
c
:
RegisterEffect
(
e2
)
end
function
c2356994
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsHasEffect
(
EFFECT_SPIRIT_DONOT_RETURN
)
then
return
false
end
if
e
:
IsHasType
(
EFFECT_TYPE_TRIGGER_F
)
then
return
not
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
else
return
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
end
end
function
c2356994
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c2356994
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
end
end
c24701235.lua
View file @
5663ffe0
--和魂
function
c24701235
.
initial_effect
(
c
)
--spirit
aux
.
EnableSpiritReturn
(
c
)
--cannot special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
c
:
RegisterEffect
(
e1
)
--summon,flip
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetOperation
(
c24701235
.
retreg
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_FLIP
)
c
:
RegisterEffect
(
e3
)
--extra summon
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
...
...
@@ -35,42 +27,6 @@ function c24701235.initial_effect(c)
e6
:
SetOperation
(
c24701235
.
operation
)
c
:
RegisterEffect
(
e6
)
end
function
c24701235
.
retreg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetDescription
(
aux
.
Stringid
(
24701235
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ee0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
c24701235
.
retcon
)
e1
:
SetTarget
(
c24701235
.
rettg
)
e1
:
SetOperation
(
c24701235
.
retop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
c
:
RegisterEffect
(
e2
)
end
function
c24701235
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
GetFlagEffect
(
24701235
)
>
0
or
c
:
IsHasEffect
(
EFFECT_SPIRIT_DONOT_RETURN
)
then
return
false
end
if
e
:
IsHasType
(
EFFECT_TYPE_TRIGGER_F
)
then
return
not
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
else
return
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
end
end
function
c24701235
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c24701235
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
end
end
function
c24701235
.
sumop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetFlagEffect
(
tp
,
24701235
)
~=
0
then
return
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
c3078576.lua
View file @
5663ffe0
--八汰烏
function
c3078576
.
initial_effect
(
c
)
--spirit return
aux
.
EnableSpiritReturn
(
c
)
--cannot special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
...
...
@@ -7,17 +9,6 @@ function c3078576.initial_effect(c)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
aux
.
FALSE
)
c
:
RegisterEffect
(
e1
)
--summon,flip
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
3078576
,
0
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetOperation
(
c3078576
.
retreg
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_FLIP
)
c
:
RegisterEffect
(
e3
)
--skip draw
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
3078576
,
1
))
...
...
@@ -39,39 +30,3 @@ function c3078576.skipop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
+
RESET_OPPO_TURN
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c3078576
.
retreg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetDescription
(
aux
.
Stringid
(
3078576
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ee0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
c3078576
.
retcon
)
e1
:
SetTarget
(
c3078576
.
rettg
)
e1
:
SetOperation
(
c3078576
.
retop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
c
:
RegisterEffect
(
e2
)
end
function
c3078576
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsHasEffect
(
EFFECT_SPIRIT_DONOT_RETURN
)
then
return
false
end
if
e
:
IsHasType
(
EFFECT_TYPE_TRIGGER_F
)
then
return
not
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
else
return
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
end
end
function
c3078576
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c3078576
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
end
end
c34853266.lua
View file @
5663ffe0
--月読命
function
c34853266
.
initial_effect
(
c
)
--spirit return
aux
.
EnableSpiritReturn
(
c
)
--cannot special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
...
...
@@ -7,17 +9,6 @@ function c34853266.initial_effect(c)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
aux
.
FALSE
)
c
:
RegisterEffect
(
e1
)
--summon,flip
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
34853266
,
0
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetOperation
(
c34853266
.
retreg
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_FLIP
)
c
:
RegisterEffect
(
e3
)
--pos
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
34853266
,
1
))
...
...
@@ -48,39 +39,3 @@ function c34853266.posop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ChangePosition
(
tc
,
POS_FACEDOWN_DEFENCE
)
end
end
function
c34853266
.
retreg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetDescription
(
aux
.
Stringid
(
34853266
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ee0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
c34853266
.
retcon
)
e1
:
SetTarget
(
c34853266
.
rettg
)
e1
:
SetOperation
(
c34853266
.
retop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
c
:
RegisterEffect
(
e2
)
end
function
c34853266
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsHasEffect
(
EFFECT_SPIRIT_DONOT_RETURN
)
then
return
false
end
if
e
:
IsHasType
(
EFFECT_TYPE_TRIGGER_F
)
then
return
not
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
else
return
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
end
end
function
c34853266
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c34853266
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
end
end
c38538445.lua
View file @
5663ffe0
--不死之炎鳥
function
c38538445
.
initial_effect
(
c
)
--spirit return
aux
.
EnableSpiritReturn
(
c
)
--cannot special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
...
...
@@ -7,16 +9,6 @@ function c38538445.initial_effect(c)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
aux
.
FALSE
)
c
:
RegisterEffect
(
e1
)
--summon,flip
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetOperation
(
c38538445
.
retreg
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_FLIP
)
c
:
RegisterEffect
(
e3
)
--recover
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
38538445
,
1
))
...
...
@@ -42,39 +34,3 @@ function c38538445.operation(e,tp,eg,ep,ev,re,r,rp)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
Duel
.
Recover
(
p
,
d
,
REASON_EFFECT
)
end
function
c38538445
.
retreg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetDescription
(
aux
.
Stringid
(
38538445
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
c38538445
.
retcon
)
e1
:
SetTarget
(
c38538445
.
rettg
)
e1
:
SetOperation
(
c38538445
.
retop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
c
:
RegisterEffect
(
e2
)
end
function
c38538445
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsHasEffect
(
EFFECT_SPIRIT_DONOT_RETURN
)
then
return
false
end
if
e
:
IsHasType
(
EFFECT_TYPE_TRIGGER_F
)
then
return
not
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
else
return
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
end
end
function
c38538445
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c38538445
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
end
end
c38975369.lua
View file @
5663ffe0
--軍荼利
function
c38975369
.
initial_effect
(
c
)
--spirit
aux
.
EnableSpiritReturn
(
c
)
--cannot special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
...
...
@@ -7,16 +9,6 @@ function c38975369.initial_effect(c)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
aux
.
FALSE
)
c
:
RegisterEffect
(
e1
)
--summon,flip
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetOperation
(
c38975369
.
retreg
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_FLIP
)
c
:
RegisterEffect
(
e3
)
--return to hand
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
38975369
,
0
))
...
...
@@ -28,42 +20,6 @@ function c38975369.initial_effect(c)
e4
:
SetOperation
(
c38975369
.
thop
)
c
:
RegisterEffect
(
e4
)
end
function
c38975369
.
retreg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetDescription
(
aux
.
Stringid
(
38975369
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ee0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
c38975369
.
retcon
)
e1
:
SetTarget
(
c38975369
.
rettg
)
e1
:
SetOperation
(
c38975369
.
retop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
c
:
RegisterEffect
(
e2
)
end
function
c38975369
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsHasEffect
(
EFFECT_SPIRIT_DONOT_RETURN
)
then
return
false
end
if
e
:
IsHasType
(
EFFECT_TYPE_TRIGGER_F
)
then
return
not
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
else
return
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
end
end
function
c38975369
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c38975369
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
end
end
function
c38975369
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
bc
=
c
:
GetBattleTarget
()
...
...
c39751093.lua
View file @
5663ffe0
--竜宮之姫
function
c39751093
.
initial_effect
(
c
)
--spirit return
aux
.
EnableSpiritReturn
(
c
)
--cannot special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
...
...
@@ -7,16 +9,6 @@ function c39751093.initial_effect(c)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
aux
.
FALSE
)
c
:
RegisterEffect
(
e1
)
--summon,flip
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetOperation
(
c39751093
.
retreg
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_FLIP
)
c
:
RegisterEffect
(
e3
)
--pos
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
39751093
,
1
))
...
...
@@ -44,39 +36,3 @@ function c39751093.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ChangePosition
(
tc
,
POS_FACEUP_DEFENCE
,
0
,
POS_FACEUP_ATTACK
,
0
)
end
end
function
c39751093
.
retreg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetDescription
(
aux
.
Stringid
(
39751093
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ee0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
c39751093
.
retcon
)
e1
:
SetTarget
(
c39751093
.
rettg
)
e1
:
SetOperation
(
c39751093
.
retop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
c
:
RegisterEffect
(
e2
)
end
function
c39751093
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsHasEffect
(
EFFECT_SPIRIT_DONOT_RETURN
)
then
return
false
end
if
e
:
IsHasType
(
EFFECT_TYPE_TRIGGER_F
)
then
return
not
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
else
return
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
end
end
function
c39751093
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c39751093
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
end
end
c40473581.lua
View file @
5663ffe0
--雷帝神
function
c40473581
.
initial_effect
(
c
)
--spirit return
aux
.
EnableSpiritReturn
(
c
)
--cannot special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
...
...
@@ -7,16 +9,6 @@ function c40473581.initial_effect(c)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
aux
.
FALSE
)
c
:
RegisterEffect
(
e1
)
--summon,flip
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetOperation
(
c40473581
.
retreg
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_FLIP
)
c
:
RegisterEffect
(
e3
)
--half damage
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
...
...
@@ -33,39 +25,3 @@ end
function
c40473581
.
dop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeBattleDamage
(
ep
,
ev
/
2
)
end
function
c40473581
.
retreg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetDescription
(
aux
.
Stringid
(
40473581
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
c40473581
.
retcon
)
e1
:
SetTarget
(
c40473581
.
rettg
)
e1
:
SetOperation
(
c40473581
.
retop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
c
:
RegisterEffect
(
e2
)
end
function
c40473581
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsHasEffect
(
EFFECT_SPIRIT_DONOT_RETURN
)
then
return
false
end
if
e
:
IsHasType
(
EFFECT_TYPE_TRIGGER_F
)
then
return
not
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
else
return
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
end
end
function
c40473581
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c40473581
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
end
end
c40695128.lua
View file @
5663ffe0
--磨破羅魏
function
c40695128
.
initial_effect
(
c
)
--spirit return
aux
.
EnableSpiritReturn
(
c
)
--cannot special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
...
...
@@ -7,16 +9,6 @@ function c40695128.initial_effect(c)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
aux
.
FALSE
)
c
:
RegisterEffect
(
e1
)
--summon,flip
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetOperation
(
c40695128
.
retreg
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_FLIP
)
c
:
RegisterEffect
(
e3
)
--summon success
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
40695128
,
1
))
...
...
@@ -28,42 +20,6 @@ function c40695128.initial_effect(c)
e5
:
SetCode
(
EVENT_FLIP
)
c
:
RegisterEffect
(
e5
)
end
function
c40695128
.
retreg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetDescription
(
aux
.
Stringid
(
40695128
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
c40695128
.
retcon
)
e1
:
SetTarget
(
c40695128
.
rettg
)
e1
:
SetOperation
(
c40695128
.
retop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
c
:
RegisterEffect
(
e2
)
end
function
c40695128
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsHasEffect
(
EFFECT_SPIRIT_DONOT_RETURN
)
then
return
false
end
if
e
:
IsHasType
(
EFFECT_TYPE_TRIGGER_F
)
then
return
not
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
else
return
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
end
end
function
c40695128
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c40695128
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
end
end
function
c40695128
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetFlagEffect
(
tp
,
40695128
)
~=
0
then
return
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
c43378076.lua
View file @
5663ffe0
--羅刹
function
c43378076
.
initial_effect
(
c
)
--spirit return
aux
.
EnableSpiritReturn
(
c
)
--cannot special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
...
...
@@ -7,16 +9,6 @@ function c43378076.initial_effect(c)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
aux
.
FALSE
)
c
:
RegisterEffect
(
e1
)
--summon,flip
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetOperation
(
c43378076
.
retreg
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_FLIP
)
c
:
RegisterEffect
(
e3
)
--return
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
43378076
,
0
))
...
...
@@ -66,39 +58,3 @@ function c43378076.sretop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
end
end
function
c43378076
.
retreg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetDescription
(
aux
.
Stringid
(
43378076
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ee0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
c43378076
.
retcon
)
e1
:
SetTarget
(
c43378076
.
rettg
)
e1
:
SetOperation
(
c43378076
.
retop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
c
:
RegisterEffect
(
e2
)
end
function
c43378076
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsHasEffect
(
EFFECT_SPIRIT_DONOT_RETURN
)
then
return
false
end
if
e
:
IsHasType
(
EFFECT_TYPE_TRIGGER_F
)
then
return
not
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
else
return
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
end
end
function
c43378076
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c43378076
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
end
end
c43543777.lua
View file @
5663ffe0
--伊弉波
function
c43543777
.
initial_effect
(
c
)
--spirit return
aux
.
EnableSpiritReturn
(
c
)
--cannot special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
...
...
@@ -7,17 +9,6 @@ function c43543777.initial_effect(c)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
aux
.
FALSE
)
c
:
RegisterEffect
(
e1
)
--summon,flip
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
43543777
,
0
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetOperation
(
c43543777
.
retreg
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_FLIP
)
c
:
RegisterEffect
(
e3
)
--salvage
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
43543777
,
1
))
...
...
@@ -54,39 +45,3 @@ function c43543777.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
end
function
c43543777
.
retreg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetDescription
(
aux
.
Stringid
(
43543777
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ee0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
c43543777
.
retcon
)
e1
:
SetTarget
(
c43543777
.
rettg
)
e1
:
SetOperation
(
c43543777
.
retop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
c
:
RegisterEffect
(
e2
)
end
function
c43543777
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsHasEffect
(
EFFECT_SPIRIT_DONOT_RETURN
)
then
return
false
end
if
e
:
IsHasType
(
EFFECT_TYPE_TRIGGER_F
)
then
return
not
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
else
return
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
end
end
function
c43543777
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c43543777
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
end
end
c44877690.lua
View file @
5663ffe0
...
...
@@ -23,7 +23,7 @@ function c44877690.retreg(e,tp,eg,ep,ev,re,r,rp)
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetDescription
(
aux
.
Stringid
(
44877690
,
0
)
)
e1
:
SetDescription
(
1104
)
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetRange
(
LOCATION_MZONE
)
...
...
@@ -38,7 +38,7 @@ function c44877690.retreg(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetDescription
(
aux
.
Stringid
(
44877690
,
0
)
)
e3
:
SetDescription
(
1104
)
e3
:
SetCategory
(
CATEGORY_TOHAND
)
e3
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e3
:
SetRange
(
LOCATION_MZONE
)
...
...
c45452224.lua
View file @
5663ffe0
--金華猫
function
c45452224
.
initial_effect
(
c
)
--spirit return
aux
.
EnableSpiritReturn
(
c
)
--cannot special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
...
...
@@ -7,16 +9,6 @@ function c45452224.initial_effect(c)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
aux
.
FALSE
)
c
:
RegisterEffect
(
e1
)
--summon,flip
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetOperation
(
c45452224
.
retreg
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_FLIP
)
c
:
RegisterEffect
(
e3
)
--spsummon
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
45452224
,
1
))
...
...
@@ -60,42 +52,6 @@ function c45452224.spop(e,tp,eg,ep,ev,re,r,rp)
tc
:
CreateRelation
(
c
,
RESET_EVENT
+
0x1fe0000
)
end
end
function
c45452224
.
retreg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetDescription
(
aux
.
Stringid
(
45452224
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ee0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
c45452224
.
retcon
)
e1
:
SetTarget
(
c45452224
.
rettg
)
e1
:
SetOperation
(
c45452224
.
retop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
c
:
RegisterEffect
(
e2
)
end
function
c45452224
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsHasEffect
(
EFFECT_SPIRIT_DONOT_RETURN
)
then
return
false
end
if
e
:
IsHasType
(
EFFECT_TYPE_TRIGGER_F
)
then
return
not
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
else
return
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
end
end
function
c45452224
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c45452224
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
end
end
function
c45452224
.
leave
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
e
:
GetLabelObject
()
...
...
c50866755.lua
View file @
5663ffe0
--鳳凰
function
c50866755
.
initial_effect
(
c
)
--spirit return
aux
.
EnableSpiritReturn
(
c
)
--cannot special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
...
...
@@ -7,16 +9,6 @@ function c50866755.initial_effect(c)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
aux
.
FALSE
)
c
:
RegisterEffect
(
e1
)
--summon,flip
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetOperation
(
c50866755
.
retreg
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_FLIP
)
c
:
RegisterEffect
(
e3
)
--destroy
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
50866755
,
1
))
...
...
@@ -42,39 +34,3 @@ function c50866755.desop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetMatchingGroup
(
c50866755
.
filter
,
tp
,
0
,
LOCATION_SZONE
,
nil
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
function
c50866755
.
retreg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetDescription
(
aux
.
Stringid
(
50866755
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ee0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
c50866755
.
retcon
)
e1
:
SetTarget
(
c50866755
.
rettg
)
e1
:
SetOperation
(
c50866755
.
retop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
c
:
RegisterEffect
(
e2
)
end
function
c50866755
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsHasEffect
(
EFFECT_SPIRIT_DONOT_RETURN
)
then
return
false
end
if
e
:
IsHasType
(
EFFECT_TYPE_TRIGGER_F
)
then
return
not
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
else
return
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
end
end
function
c50866755
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c50866755
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
end
end
c73551138.lua
View file @
5663ffe0
--リチュア・エミリア
function
c73551138
.
initial_effect
(
c
)
--spirit return
aux
.
EnableSpiritReturn
(
c
)
--cannot special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
...
...
@@ -7,17 +9,6 @@ function c73551138.initial_effect(c)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
aux
.
FALSE
)
c
:
RegisterEffect
(
e1
)
--summon,flip
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
73551138
,
0
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetOperation
(
c73551138
.
retreg
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_FLIP
)
c
:
RegisterEffect
(
e3
)
--negate trap
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
73551138
,
1
))
...
...
@@ -69,39 +60,3 @@ function c73551138.disop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
NegateEffect
(
ev
)
end
end
function
c73551138
.
retreg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetDescription
(
aux
.
Stringid
(
73551138
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ee0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
c73551138
.
retcon
)
e1
:
SetTarget
(
c73551138
.
rettg
)
e1
:
SetOperation
(
c73551138
.
retop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
c
:
RegisterEffect
(
e2
)
end
function
c73551138
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsHasEffect
(
EFFECT_SPIRIT_DONOT_RETURN
)
then
return
false
end
if
e
:
IsHasType
(
EFFECT_TYPE_TRIGGER_F
)
then
return
not
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
else
return
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
end
end
function
c73551138
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c73551138
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
end
end
c75745607.lua
View file @
5663ffe0
--火之迦具土
function
c75745607
.
initial_effect
(
c
)
--spirit return
aux
.
EnableSpiritReturn
(
c
)
--cannot special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
...
...
@@ -7,16 +9,6 @@ function c75745607.initial_effect(c)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
aux
.
FALSE
)
c
:
RegisterEffect
(
e1
)
--summon,flip
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetOperation
(
c75745607
.
retreg
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_FLIP
)
c
:
RegisterEffect
(
e3
)
--tograve
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
75745607
,
1
))
...
...
@@ -26,42 +18,6 @@ function c75745607.initial_effect(c)
e4
:
SetOperation
(
c75745607
.
hdreg
)
c
:
RegisterEffect
(
e4
)
end
function
c75745607
.
retreg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetDescription
(
aux
.
Stringid
(
75745607
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ee0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
c75745607
.
retcon
)
e1
:
SetTarget
(
c75745607
.
rettg
)
e1
:
SetOperation
(
c75745607
.
retop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
c
:
RegisterEffect
(
e2
)
end
function
c75745607
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsHasEffect
(
EFFECT_SPIRIT_DONOT_RETURN
)
then
return
false
end
if
e
:
IsHasType
(
EFFECT_TYPE_TRIGGER_F
)
then
return
not
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
else
return
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
end
end
function
c75745607
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c75745607
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
end
end
function
c75745607
.
hdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
end
...
...
c76862289.lua
View file @
5663ffe0
--八俣大蛇
function
c76862289
.
initial_effect
(
c
)
--spirit return
aux
.
EnableSpiritReturn
(
c
)
--cannot special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
...
...
@@ -7,16 +9,6 @@ function c76862289.initial_effect(c)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
aux
.
FALSE
)
c
:
RegisterEffect
(
e1
)
--summon,flip
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetOperation
(
c76862289
.
retreg
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_FLIP
)
c
:
RegisterEffect
(
e3
)
--draw
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
76862289
,
1
))
...
...
@@ -28,42 +20,6 @@ function c76862289.initial_effect(c)
e4
:
SetOperation
(
c76862289
.
drop
)
c
:
RegisterEffect
(
e4
)
end
function
c76862289
.
retreg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetDescription
(
aux
.
Stringid
(
76862289
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ee0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
c76862289
.
retcon
)
e1
:
SetTarget
(
c76862289
.
rettg
)
e1
:
SetOperation
(
c76862289
.
retop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
c
:
RegisterEffect
(
e2
)
end
function
c76862289
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsHasEffect
(
EFFECT_SPIRIT_DONOT_RETURN
)
then
return
false
end
if
e
:
IsHasType
(
EFFECT_TYPE_TRIGGER_F
)
then
return
not
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
else
return
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
end
end
function
c76862289
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c76862289
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
end
end
function
c76862289
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
end
...
...
c77084837.lua
View file @
5663ffe0
--因幡之白兎
function
c77084837
.
initial_effect
(
c
)
--spirit return
aux
.
EnableSpiritReturn
(
c
)
--cannot special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
...
...
@@ -7,16 +9,6 @@ function c77084837.initial_effect(c)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
aux
.
FALSE
)
c
:
RegisterEffect
(
e1
)
--summon,flip
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetOperation
(
c77084837
.
retreg
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_FLIP
)
c
:
RegisterEffect
(
e3
)
--attack limit
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -28,39 +20,3 @@ function c77084837.initial_effect(c)
e5
:
SetValue
(
1
)
c
:
RegisterEffect
(
e5
)
end
function
c77084837
.
retreg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetDescription
(
aux
.
Stringid
(
77084837
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
c77084837
.
retcon
)
e1
:
SetTarget
(
c77084837
.
rettg
)
e1
:
SetOperation
(
c77084837
.
retop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
c
:
RegisterEffect
(
e2
)
end
function
c77084837
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsHasEffect
(
EFFECT_SPIRIT_DONOT_RETURN
)
then
return
false
end
if
e
:
IsHasType
(
EFFECT_TYPE_TRIGGER_F
)
then
return
not
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
else
return
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
end
end
function
c77084837
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c77084837
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
end
end
c82841979.lua
View file @
5663ffe0
--大和神
function
c82841979
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
--spirit return
aux
.
EnableSpiritReturn
(
c
,
true
)
--cannot special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -16,13 +18,6 @@ function c82841979.initial_effect(c)
e2
:
SetCondition
(
c82841979
.
spcon
)
e2
:
SetOperation
(
c82841979
.
spop
)
c
:
RegisterEffect
(
e2
)
--spsummon success
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetOperation
(
c82841979
.
retreg
)
c
:
RegisterEffect
(
e3
)
--destroy
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
82841979
,
0
))
...
...
@@ -47,42 +42,6 @@ function c82841979.spop(e,tp,eg,ep,ev,re,r,rp,c)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c82841979
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
end
function
c82841979
.
retreg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetDescription
(
aux
.
Stringid
(
82841979
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ee0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
c82841979
.
retcon
)
e1
:
SetTarget
(
c82841979
.
rettg
)
e1
:
SetOperation
(
c82841979
.
retop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
c
:
RegisterEffect
(
e2
)
end
function
c82841979
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsHasEffect
(
EFFECT_SPIRIT_DONOT_RETURN
)
then
return
false
end
if
e
:
IsHasType
(
EFFECT_TYPE_TRIGGER_F
)
then
return
not
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
else
return
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
end
end
function
c82841979
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c82841979
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
end
end
function
c82841979
.
filter
(
c
)
return
c
:
IsDestructable
()
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
...
...
c89111398.lua
View file @
5663ffe0
--砂塵の悪霊
function
c89111398
.
initial_effect
(
c
)
--spirit
aux
.
EnableSpiritReturn
(
c
)
--cannot special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
...
...
@@ -7,16 +9,6 @@ function c89111398.initial_effect(c)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
aux
.
FALSE
)
c
:
RegisterEffect
(
e1
)
--summon,flip
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetOperation
(
c89111398
.
retreg
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_FLIP
)
c
:
RegisterEffect
(
e3
)
--destroy
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
89111398
,
1
))
...
...
@@ -44,39 +36,3 @@ function c89111398.desop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
end
function
c89111398
.
retreg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetDescription
(
aux
.
Stringid
(
89111398
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ee0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
c89111398
.
retcon
)
e1
:
SetTarget
(
c89111398
.
rettg
)
e1
:
SetOperation
(
c89111398
.
retop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
c
:
RegisterEffect
(
e2
)
end
function
c89111398
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsHasEffect
(
EFFECT_SPIRIT_DONOT_RETURN
)
then
return
false
end
if
e
:
IsHasType
(
EFFECT_TYPE_TRIGGER_F
)
then
return
not
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
else
return
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
end
end
function
c89111398
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c89111398
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
end
end
c94215860.lua
View file @
5663ffe0
--夜叉
function
c94215860
.
initial_effect
(
c
)
--spirit
aux
.
EnableSpiritReturn
(
c
)
--cannot special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
...
...
@@ -7,16 +9,6 @@ function c94215860.initial_effect(c)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
aux
.
FALSE
)
c
:
RegisterEffect
(
e1
)
--summon,flip
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetOperation
(
c94215860
.
retreg
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_FLIP
)
c
:
RegisterEffect
(
e3
)
--return
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
94215860
,
0
))
...
...
@@ -47,39 +39,3 @@ function c94215860.sretop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
end
end
function
c94215860
.
retreg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetDescription
(
aux
.
Stringid
(
94215860
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ee0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
c94215860
.
retcon
)
e1
:
SetTarget
(
c94215860
.
rettg
)
e1
:
SetOperation
(
c94215860
.
retop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
c
:
RegisterEffect
(
e2
)
end
function
c94215860
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsHasEffect
(
EFFECT_SPIRIT_DONOT_RETURN
)
then
return
false
end
if
e
:
IsHasType
(
EFFECT_TYPE_TRIGGER_F
)
then
return
not
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
else
return
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
end
end
function
c94215860
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c94215860
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
end
end
utility.lua
View file @
5663ffe0
...
...
@@ -1629,7 +1629,7 @@ function Auxiliary.damcon1(e,tp,eg,ep,ev,re,r,rp)
ex
,
cg
,
ct
,
cp
,
cv
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_RECOVER
)
return
ex
and
(
cp
==
tp
or
cp
==
PLAYER_ALL
)
and
rr
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_NO_EFFECT_DAMAGE
)
end
--filter for the immune effe
tc
of qli monsters
--filter for the immune effe
ct
of qli monsters
function
Auxiliary
.
qlifilter
(
e
,
te
)
if
te
:
IsActiveType
(
TYPE_MONSTER
)
and
te
:
IsActivated
()
then
local
lv
=
e
:
GetHandler
():
GetLevel
()
...
...
@@ -1647,3 +1647,55 @@ end
function
Auxiliary
.
nvfilter
(
c
)
return
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
end
--register effect of return to hand for Spirit monsters
function
Auxiliary
.
EnableSpiritReturn
(
c
,
sponly
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetOperation
(
Auxiliary
.
sprtreg
)
if
not
sponly
then
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EVENT_FLIP
)
c
:
RegisterEffect
(
e2
)
else
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e1
)
end
end
function
Auxiliary
.
sprtreg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetDescription
(
1104
)
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ee0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
Auxiliary
.
sprtcon
)
e1
:
SetTarget
(
Auxiliary
.
sprttg
)
e1
:
SetOperation
(
Auxiliary
.
sprtop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
c
:
RegisterEffect
(
e2
)
end
function
Auxiliary
.
sprtcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsHasEffect
(
EFFECT_SPIRIT_DONOT_RETURN
)
then
return
false
end
if
e
:
IsHasType
(
EFFECT_TYPE_TRIGGER_F
)
then
return
not
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
else
return
c
:
IsHasEffect
(
EFFECT_SPIRIT_MAYNOT_RETURN
)
end
end
function
Auxiliary
.
sprttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
Auxiliary
.
sprtop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
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