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
Reinen
ygopro-scripts
Commits
c8f586d9
Commit
c8f586d9
authored
Feb 11, 2018
by
nekrozar
Committed by
mercury233
Feb 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add CATEGORY_TOEXTRA (#995)
parent
3d2ab093
Changes
31
Hide whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
59 additions
and
45 deletions
+59
-45
c10678778.lua
c10678778.lua
+2
-2
c11228035.lua
c11228035.lua
+1
-1
c12948099.lua
c12948099.lua
+2
-2
c14733538.lua
c14733538.lua
+2
-1
c16259549.lua
c16259549.lua
+2
-1
c18210764.lua
c18210764.lua
+2
-0
c24094258.lua
c24094258.lua
+2
-0
c28677304.lua
c28677304.lua
+2
-2
c29432356.lua
c29432356.lua
+2
-0
c31554054.lua
c31554054.lua
+2
-2
c32441317.lua
c32441317.lua
+2
-2
c37115973.lua
c37115973.lua
+2
-2
c37192109.lua
c37192109.lua
+2
-2
c41097056.lua
c41097056.lua
+2
-2
c47355498.lua
c47355498.lua
+1
-0
c48996569.lua
c48996569.lua
+2
-2
c49352945.lua
c49352945.lua
+2
-2
c55171412.lua
c55171412.lua
+2
-2
c59057953.lua
c59057953.lua
+2
-0
c59843383.lua
c59843383.lua
+2
-2
c66970002.lua
c66970002.lua
+2
-2
c67030233.lua
c67030233.lua
+2
-1
c71628381.lua
c71628381.lua
+2
-2
c74335036.lua
c74335036.lua
+2
-2
c74839123.lua
c74839123.lua
+2
-2
c7841112.lua
c7841112.lua
+2
-1
c78512663.lua
c78512663.lua
+2
-2
c78610936.lua
c78610936.lua
+2
-2
c81566151.lua
c81566151.lua
+2
-2
c95286165.lua
c95286165.lua
+2
-2
constant.lua
constant.lua
+1
-0
No files found.
c10678778.lua
View file @
c8f586d9
...
...
@@ -17,7 +17,7 @@ function c10678778.initial_effect(c)
--destroy
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
10678778
,
1
))
e2
:
SetCategory
(
CATEGORY_TO
DECK
+
CATEGORY_DESTROY
)
e2
:
SetCategory
(
CATEGORY_TO
EXTRA
+
CATEGORY_DESTROY
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
...
...
@@ -68,7 +68,7 @@ function c10678778.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c10678778
.
filter
,
tp
,
0
,
LOCATION_REMOVED
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c10678778
.
filter
,
tp
,
0
,
LOCATION_REMOVED
,
1
,
1
,
nil
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
DECK
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
EXTRA
,
g
,
1
,
0
,
0
)
local
ctype
=
bit
.
band
(
g
:
GetFirst
():
GetType
(),
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
)
local
dg
=
Duel
.
GetMatchingGroup
(
c10678778
.
filter2
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
ctype
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
dg
,
1
,
0
,
0
)
...
...
c11228035.lua
View file @
c8f586d9
...
...
@@ -2,7 +2,7 @@
function
c11228035
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_TOEXTRA
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
...
...
c12948099.lua
View file @
c8f586d9
...
...
@@ -6,7 +6,7 @@ function c12948099.initial_effect(c)
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
12948099
,
0
))
e1
:
SetCategory
(
CATEGORY_TO
DECK
)
e1
:
SetCategory
(
CATEGORY_TO
EXTRA
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
...
...
@@ -42,7 +42,7 @@ end
function
c12948099
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c12948099
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
c12948099
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
DECK
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
EXTRA
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
c12948099
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c12948099
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
...
...
c14733538.lua
View file @
c8f586d9
...
...
@@ -2,7 +2,7 @@
function
c14733538
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOEXTRA
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
14733538
+
EFFECT_COUNT_CODE_OATH
)
...
...
@@ -21,6 +21,7 @@ function c14733538.target(e,tp,eg,ep,ev,re,r,rp,chk)
and
Duel
.
IsExistingMatchingCard
(
c14733538
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
b1
,
0xc7
)
and
Duel
.
IsExistingMatchingCard
(
c14733538
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
b1
,
0xda
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
0
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOEXTRA
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c14733538
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
b1
=
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
...
...
c16259549.lua
View file @
c8f586d9
...
...
@@ -35,7 +35,7 @@ function c16259549.initial_effect(c)
--todeck
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
16259549
,
1
))
e4
:
SetCategory
(
CATEGORY_TODECK
)
e4
:
SetCategory
(
CATEGORY_TODECK
+
CATEGORY_TOEXTRA
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e4
:
SetCode
(
EVENT_TO_GRAVE
)
e4
:
SetCountLimit
(
1
,
16259549
)
...
...
@@ -81,6 +81,7 @@ function c16259549.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
sg
=
g
:
Select
(
tp
,
2
,
2
,
nil
)
Duel
.
SetTargetCard
(
sg
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
sg
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOEXTRA
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c16259549
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c18210764.lua
View file @
c8f586d9
...
...
@@ -13,6 +13,7 @@ function c18210764.initial_effect(c)
--toextra
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
18210764
,
0
))
e2
:
SetCategory
(
CATEGORY_TOEXTRA
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_PZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
...
...
@@ -51,6 +52,7 @@ function c18210764.tetg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c18210764
.
tefilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
18210764
,
1
))
local
g
=
Duel
.
SelectTarget
(
tp
,
c18210764
.
tefilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOEXTRA
,
g
,
1
,
0
,
0
)
if
g
:
GetFirst
():
IsLocation
(
LOCATION_GRAVE
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
g
,
1
,
0
,
0
)
end
...
...
c24094258.lua
View file @
c8f586d9
...
...
@@ -6,6 +6,7 @@ function c24094258.initial_effect(c)
--to extra
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
24094258
,
0
))
e1
:
SetCategory
(
CATEGORY_TOEXTRA
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
...
...
@@ -46,6 +47,7 @@ function c24094258.tefilter(c)
end
function
c24094258
.
tetg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c24094258
.
tefilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOEXTRA
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c24094258
.
teop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
24094258
,
3
))
...
...
c28677304.lua
View file @
c8f586d9
...
...
@@ -22,7 +22,7 @@ function c28677304.initial_effect(c)
--return
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
28677304
,
0
))
e3
:
SetCategory
(
CATEGORY_TO
DECK
)
e3
:
SetCategory
(
CATEGORY_TO
EXTRA
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e3
:
SetRange
(
LOCATION_MZONE
)
...
...
@@ -91,7 +91,7 @@ function c28677304.retcon2(e,tp,eg,ep,ev,re,r,rp)
end
function
c28677304
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToExtra
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
DECK
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
EXTRA
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c28677304
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
or
e
:
GetHandler
():
IsFacedown
()
then
return
end
...
...
c29432356.lua
View file @
c8f586d9
...
...
@@ -5,6 +5,7 @@ function c29432356.initial_effect(c)
--change scale
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
29432356
,
0
))
e1
:
SetCategory
(
CATEGORY_TOEXTRA
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetCountLimit
(
1
,
29432357
)
...
...
@@ -50,6 +51,7 @@ function c29432356.scfilter(c,pc)
end
function
c29432356
.
sctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c29432356
.
scfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
:
GetHandler
())
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOEXTRA
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c29432356
.
scop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
c31554054.lua
View file @
c8f586d9
...
...
@@ -2,7 +2,7 @@
function
c31554054
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOEXTRA
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_BE_BATTLE_TARGET
)
...
...
@@ -26,7 +26,7 @@ function c31554054.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c31554054
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
GetAttackTarget
():
CreateEffectRelation
(
e
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
DECK
,
Duel
.
GetAttackTarget
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
EXTRA
,
Duel
.
GetAttackTarget
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
function
c31554054
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c32441317.lua
View file @
c8f586d9
...
...
@@ -2,7 +2,7 @@
function
c32441317
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TO
DECK
+
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_TO
EXTRA
+
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
...
...
@@ -18,7 +18,7 @@ function c32441317.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c32441317
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c32441317
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
DECK
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
EXTRA
,
g
,
1
,
0
,
0
)
end
function
c32441317
.
mgfilter
(
c
,
e
,
tp
,
sync
)
return
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_GRAVE
)
...
...
c37115973.lua
View file @
c8f586d9
...
...
@@ -3,7 +3,7 @@ function c37115973.initial_effect(c)
--todeck
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
37115973
,
0
))
e1
:
SetCategory
(
CATEGORY_TO
DECK
)
e1
:
SetCategory
(
CATEGORY_TO
EXTRA
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetTarget
(
c37115973
.
target
)
...
...
@@ -45,7 +45,7 @@ end
function
c37115973
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
g
=
Duel
.
GetMatchingGroup
(
c37115973
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
DECK
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
EXTRA
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
c37115973
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c37115973
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
...
...
c37192109.lua
View file @
c8f586d9
...
...
@@ -19,7 +19,7 @@ function c37192109.initial_effect(c)
--to hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
37192109
,
1
))
e2
:
SetCategory
(
CATEGORY_TO
DECK
+
CATEGORY_TOHAND
)
e2
:
SetCategory
(
CATEGORY_TO
EXTRA
+
CATEGORY_TOHAND
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
...
...
@@ -111,7 +111,7 @@ function c37192109.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c37192109
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
e
:
GetHandler
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
DECK
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
EXTRA
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c37192109
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
...
...
c41097056.lua
View file @
c8f586d9
...
...
@@ -2,7 +2,7 @@
function
c41097056
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TO
DECK
+
CATEGORY_DESTROY
)
e1
:
SetCategory
(
CATEGORY_TO
EXTRA
+
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
...
...
@@ -23,7 +23,7 @@ function c41097056.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
c41097056
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
)
local
g2
=
Duel
.
GetMatchingGroup
(
c41097056
.
desfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
math.max
(
0
,
g1
:
GetFirst
():
GetTextAttack
()))
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
DECK
,
g1
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
EXTRA
,
g1
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g2
,
g2
:
GetCount
(),
0
,
0
)
end
function
c41097056
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c47355498.lua
View file @
c8f586d9
...
...
@@ -95,6 +95,7 @@ function c47355498.disop(e,tp,eg,ep,ev,re,r,rp)
if
not
res
and
c47355498
.
discheck
(
ev
,
CATEGORY_REMOVE
,
re
,
im0
,
im1
)
then
res
=
true
end
if
not
res
and
c47355498
.
discheck
(
ev
,
CATEGORY_TOHAND
,
re
,
im0
,
im1
)
then
res
=
true
end
if
not
res
and
c47355498
.
discheck
(
ev
,
CATEGORY_TODECK
,
re
,
im0
,
im1
)
then
res
=
true
end
if
not
res
and
c47355498
.
discheck
(
ev
,
CATEGORY_TOEXTRA
,
re
,
im0
,
im1
)
then
res
=
true
end
if
not
res
and
c47355498
.
discheck
(
ev
,
CATEGORY_LEAVE_GRAVE
,
re
,
im0
,
im1
)
then
res
=
true
end
if
res
then
Duel
.
NegateEffect
(
ev
)
end
end
c48996569.lua
View file @
c8f586d9
...
...
@@ -22,7 +22,7 @@ function c48996569.initial_effect(c)
--return
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
48996569
,
0
))
e3
:
SetCategory
(
CATEGORY_TO
DECK
)
e3
:
SetCategory
(
CATEGORY_TO
EXTRA
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e3
:
SetRange
(
LOCATION_MZONE
)
...
...
@@ -91,7 +91,7 @@ function c48996569.retcon2(e,tp,eg,ep,ev,re,r,rp)
end
function
c48996569
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToExtra
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
DECK
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
EXTRA
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c48996569
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
or
e
:
GetHandler
():
IsFacedown
()
then
return
end
...
...
c49352945.lua
View file @
c8f586d9
...
...
@@ -22,7 +22,7 @@ function c49352945.initial_effect(c)
--return
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
49352945
,
0
))
e3
:
SetCategory
(
CATEGORY_TO
DECK
)
e3
:
SetCategory
(
CATEGORY_TO
EXTRA
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e3
:
SetRange
(
LOCATION_MZONE
)
...
...
@@ -113,7 +113,7 @@ function c49352945.retcon2(e,tp,eg,ep,ev,re,r,rp)
end
function
c49352945
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToExtra
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
DECK
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
EXTRA
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c49352945
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
c55171412.lua
View file @
c8f586d9
...
...
@@ -22,7 +22,7 @@ function c55171412.initial_effect(c)
--return
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
55171412
,
0
))
e3
:
SetCategory
(
CATEGORY_TO
DECK
)
e3
:
SetCategory
(
CATEGORY_TO
EXTRA
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e3
:
SetRange
(
LOCATION_MZONE
)
...
...
@@ -91,7 +91,7 @@ function c55171412.retcon2(e,tp,eg,ep,ev,re,r,rp)
end
function
c55171412
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToExtra
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
DECK
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
EXTRA
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c55171412
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
or
e
:
GetHandler
():
IsFacedown
()
then
return
end
...
...
c59057953.lua
View file @
c8f586d9
...
...
@@ -2,6 +2,7 @@
function
c59057953
.
initial_effect
(
c
)
--activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOEXTRA
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
59057953
+
EFFECT_COUNT_CODE_OATH
)
...
...
@@ -21,6 +22,7 @@ function c59057953.target(e,tp,eg,ep,ev,re,r,rp,chk)
local
g
=
Duel
.
GetMatchingGroup
(
c59057953
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
return
g
:
GetClassCount
(
Card
.
GetCode
)
>=
2
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOEXTRA
,
nil
,
2
,
tp
,
LOCATION_DECK
)
end
function
c59057953
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c59057953
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
...
...
c59843383.lua
View file @
c8f586d9
...
...
@@ -7,7 +7,7 @@ function c59843383.initial_effect(c)
--to deck
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
59843383
,
0
))
e1
:
SetCategory
(
CATEGORY_TO
DECK
+
CATEGORY_DESTROY
)
e1
:
SetCategory
(
CATEGORY_TO
EXTRA
+
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
...
...
@@ -28,7 +28,7 @@ function c59843383.tdfilter(c)
end
function
c59843383
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c59843383
.
tdfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
DECK
,
nil
,
1
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
EXTRA
,
nil
,
1
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
)
end
function
c59843383
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c59843383
.
tdfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
nil
)
...
...
c66970002.lua
View file @
c8f586d9
...
...
@@ -6,7 +6,7 @@ function c66970002.initial_effect(c)
--todeck
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
66970002
,
0
))
e1
:
SetCategory
(
CATEGORY_TO
DECK
)
e1
:
SetCategory
(
CATEGORY_TO
EXTRA
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetCode
(
EVENT_DESTROYED
)
...
...
@@ -40,7 +40,7 @@ function c66970002.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c66970002
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c66970002
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
DECK
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
EXTRA
,
g
,
1
,
0
,
0
)
end
function
c66970002
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
...
...
c67030233.lua
View file @
c8f586d9
...
...
@@ -28,7 +28,7 @@ function c67030233.initial_effect(c)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
67030233
,
2
))
e4
:
SetType
(
EFFECT_TYPE_TRIGGER_F
+
EFFECT_TYPE_FIELD
)
e4
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e4
:
SetCategory
(
CATEGORY_
TOEXTRA
+
CATEGORY_
SPECIAL_SUMMON
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e4
:
SetCountLimit
(
1
)
...
...
@@ -108,6 +108,7 @@ function c67030233.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c67030233
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOEXTRA
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
function
c67030233
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c71628381.lua
View file @
c8f586d9
...
...
@@ -6,7 +6,7 @@ function c71628381.initial_effect(c)
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
71628381
,
0
))
e1
:
SetCategory
(
CATEGORY_TO
DECK
+
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_TO
EXTRA
+
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_BATTLE
)
e1
:
SetRange
(
LOCATION_MZONE
)
...
...
@@ -21,7 +21,7 @@ function c71628381.spcon(e,tp,eg,ep,ev,re,r,rp)
end
function
c71628381
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToDeck
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
DECK
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
EXTRA
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c71628381
.
mgfilter
(
c
,
e
,
tp
,
fusc
)
return
not
c
:
IsControler
(
tp
)
or
not
c
:
IsLocation
(
LOCATION_GRAVE
)
...
...
c74335036.lua
View file @
c8f586d9
...
...
@@ -12,7 +12,7 @@ function c74335036.initial_effect(c)
--to deck
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
74335036
,
1
))
e2
:
SetCategory
(
CATEGORY_TO
DECK
+
CATEGORY_DRAW
)
e2
:
SetCategory
(
CATEGORY_TO
EXTRA
+
CATEGORY_DRAW
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_GRAVE
)
...
...
@@ -87,7 +87,7 @@ function c74335036.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c74335036
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c74335036
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
DECK
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
EXTRA
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
function
c74335036
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c74839123.lua
View file @
c8f586d9
...
...
@@ -17,7 +17,7 @@ function c74839123.initial_effect(c)
c
:
RegisterEffect
(
e2
)
--return
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_TO
DECK
)
e3
:
SetCategory
(
CATEGORY_TO
EXTRA
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_TO_GRAVE
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
...
...
@@ -44,7 +44,7 @@ function c74839123.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c74839123
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c74839123
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
DECK
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
EXTRA
,
g
,
1
,
0
,
0
)
end
function
c74839123
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
...
...
c7841112.lua
View file @
c8f586d9
...
...
@@ -38,7 +38,7 @@ function c7841112.initial_effect(c)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetDescription
(
aux
.
Stringid
(
7841112
,
2
))
e5
:
SetType
(
EFFECT_TYPE_TRIGGER_F
+
EFFECT_TYPE_FIELD
)
e5
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e5
:
SetCategory
(
CATEGORY_
TOEXTRA
+
CATEGORY_
SPECIAL_SUMMON
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e5
:
SetCountLimit
(
1
)
...
...
@@ -124,6 +124,7 @@ function c7841112.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c7841112
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOEXTRA
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
function
c7841112
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c78512663.lua
View file @
c8f586d9
...
...
@@ -22,7 +22,7 @@ function c78512663.initial_effect(c)
--return
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
78512663
,
0
))
e3
:
SetCategory
(
CATEGORY_TO
DECK
)
e3
:
SetCategory
(
CATEGORY_TO
EXTRA
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e3
:
SetRange
(
LOCATION_MZONE
)
...
...
@@ -114,7 +114,7 @@ function c78512663.retcon2(e,tp,eg,ep,ev,re,r,rp)
end
function
c78512663
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToExtra
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
DECK
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
EXTRA
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c78512663
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
c78610936.lua
View file @
c8f586d9
...
...
@@ -2,7 +2,7 @@
function
c78610936
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TO
DECK
+
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_TO
EXTRA
+
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
...
...
@@ -19,7 +19,7 @@ function c78610936.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c78610936
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c78610936
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
DECK
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
EXTRA
,
g
,
1
,
0
,
0
)
if
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
then
Duel
.
SetChainLimit
(
aux
.
FALSE
)
end
...
...
c81566151.lua
View file @
c8f586d9
...
...
@@ -22,7 +22,7 @@ function c81566151.initial_effect(c)
--return
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
81566151
,
0
))
e3
:
SetCategory
(
CATEGORY_TO
DECK
)
e3
:
SetCategory
(
CATEGORY_TO
EXTRA
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e3
:
SetRange
(
LOCATION_MZONE
)
...
...
@@ -88,7 +88,7 @@ function c81566151.retcon2(e,tp,eg,ep,ev,re,r,rp)
end
function
c81566151
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToExtra
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
DECK
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
EXTRA
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c81566151
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
or
e
:
GetHandler
():
IsFacedown
()
then
return
end
...
...
c95286165.lua
View file @
c8f586d9
...
...
@@ -2,7 +2,7 @@
function
c95286165
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TO
DECK
+
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_TO
EXTRA
+
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
...
...
@@ -18,7 +18,7 @@ function c95286165.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c95286165
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c95286165
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
DECK
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
EXTRA
,
g
,
1
,
0
,
0
)
end
function
c95286165
.
mgfilter
(
c
,
e
,
tp
,
fusc
,
mg
)
return
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_GRAVE
)
...
...
constant.lua
View file @
c8f586d9
...
...
@@ -632,6 +632,7 @@ CATEGORY_LVCHANGE =0x8000000 --改变等级效果
CATEGORY_NEGATE
=
0x10000000
--使发动无效效果
CATEGORY_ANNOUNCE
=
0x20000000
--發動時宣言卡名的效果
CATEGORY_FUSION_SUMMON
=
0x40000000
--融合召唤效果(暴走魔法阵)
CATEGORY_TOEXTRA
=
0x80000000
--
--Hint
HINT_EVENT
=
1
HINT_MESSAGE
=
2
...
...
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