Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-pre-data
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
MyCard
ygopro-pre-data
Commits
37c16ded
Commit
37c16ded
authored
Jul 31, 2021
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
09ff6d75
Changes
43
Show whitespace changes
Inline
Side-by-side
Showing
43 changed files
with
139 additions
and
117 deletions
+139
-117
script/c100417011.lua
script/c100417011.lua
+3
-3
script/c101106003.lua
script/c101106003.lua
+4
-4
script/c101106004.lua
script/c101106004.lua
+3
-3
script/c101106005.lua
script/c101106005.lua
+3
-3
script/c101106007.lua
script/c101106007.lua
+3
-3
script/c101106008.lua
script/c101106008.lua
+1
-1
script/c101106009.lua
script/c101106009.lua
+1
-1
script/c101106010.lua
script/c101106010.lua
+1
-2
script/c101106013.lua
script/c101106013.lua
+2
-1
script/c101106014.lua
script/c101106014.lua
+2
-1
script/c101106015.lua
script/c101106015.lua
+2
-1
script/c101106016.lua
script/c101106016.lua
+2
-1
script/c101106017.lua
script/c101106017.lua
+2
-1
script/c101106021.lua
script/c101106021.lua
+1
-1
script/c101106023.lua
script/c101106023.lua
+1
-0
script/c101106028.lua
script/c101106028.lua
+4
-2
script/c101106029.lua
script/c101106029.lua
+3
-2
script/c101106031.lua
script/c101106031.lua
+6
-3
script/c101106035.lua
script/c101106035.lua
+5
-4
script/c101106037.lua
script/c101106037.lua
+3
-3
script/c101106038.lua
script/c101106038.lua
+1
-0
script/c101106041.lua
script/c101106041.lua
+7
-7
script/c101106045.lua
script/c101106045.lua
+2
-1
script/c101106046.lua
script/c101106046.lua
+5
-9
script/c101106047.lua
script/c101106047.lua
+21
-21
script/c101106048.lua
script/c101106048.lua
+4
-4
script/c101106051.lua
script/c101106051.lua
+1
-0
script/c101106057.lua
script/c101106057.lua
+1
-0
script/c101106061.lua
script/c101106061.lua
+2
-1
script/c101106062.lua
script/c101106062.lua
+1
-1
script/c101106064.lua
script/c101106064.lua
+5
-5
script/c101106066.lua
script/c101106066.lua
+1
-1
script/c101106067.lua
script/c101106067.lua
+3
-1
script/c101106068.lua
script/c101106068.lua
+2
-1
script/c101106069.lua
script/c101106069.lua
+1
-1
script/c101106070.lua
script/c101106070.lua
+10
-10
script/c101106072.lua
script/c101106072.lua
+3
-3
script/c101106073.lua
script/c101106073.lua
+3
-3
script/c101106077.lua
script/c101106077.lua
+1
-0
script/c101106079.lua
script/c101106079.lua
+3
-2
script/c101106080.lua
script/c101106080.lua
+6
-2
script/c101106201.lua
script/c101106201.lua
+1
-2
script/c101106202.lua
script/c101106202.lua
+3
-2
No files found.
script/c100417011.lua
View file @
37c16ded
...
...
@@ -15,10 +15,10 @@ function c100417011.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c100417011
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
aux
.
disfilter1
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
aux
.
disfilter1
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
aux
.
NegateEffectMonsterFilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
aux
.
NegateEffectMonsterFilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
aux
.
disfilter1
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
aux
.
NegateEffectMonsterFilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
0
)
end
function
c100417011
.
cfilter
(
c
)
...
...
script/c101106003.lua
View file @
37c16ded
...
...
@@ -21,7 +21,7 @@ function c101106003.initial_effect(c)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_DRAW
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetCode
(
EVENT_BE_MATERIAL
)
e3
:
SetCountLimit
(
1
,
101106003
+
100
)
e3
:
SetCondition
(
c101106003
.
drcon
)
...
...
@@ -41,19 +41,19 @@ function c101106003.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c101106003
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
101106103
,
0
,
TYPES_TOKEN_MONSTER
+
TYPE_TUNER
,
0
,
0
,
4
,
RACE_WYRM
,
ATTRIBUTE_WATER
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
101106103
,
0
x26d
,
TYPES_TOKEN_MONSTER
+
TYPE_TUNER
,
0
,
0
,
4
,
RACE_WYRM
,
ATTRIBUTE_WATER
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
end
function
c101106003
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
101106103
,
0
,
TYPES_TOKEN_MONSTER
+
TYPE_TUNER
,
0
,
0
,
4
,
RACE_WYRM
,
ATTRIBUTE_WATER
)
then
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
101106103
,
0
x26d
,
TYPES_TOKEN_MONSTER
+
TYPE_TUNER
,
0
,
0
,
4
,
RACE_WYRM
,
ATTRIBUTE_WATER
)
then
local
token
=
Duel
.
CreateToken
(
tp
,
101106103
)
Duel
.
SpecialSummonStep
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetAbsoluteRange
(
tp
,
1
,
0
)
e1
:
SetTarget
(
c101106003
.
splimit
)
...
...
script/c101106004.lua
View file @
37c16ded
...
...
@@ -36,19 +36,19 @@ function c101106004.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c101106004
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
101106103
,
0
,
TYPES_TOKEN_MONSTER
+
TYPE_TUNER
,
0
,
0
,
4
,
RACE_WYRM
,
ATTRIBUTE_WATER
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
101106103
,
0
x26d
,
TYPES_TOKEN_MONSTER
+
TYPE_TUNER
,
0
,
0
,
4
,
RACE_WYRM
,
ATTRIBUTE_WATER
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
end
function
c101106004
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
101106103
,
0
,
TYPES_TOKEN_MONSTER
+
TYPE_TUNER
,
0
,
0
,
4
,
RACE_WYRM
,
ATTRIBUTE_WATER
)
then
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
101106103
,
0
x26d
,
TYPES_TOKEN_MONSTER
+
TYPE_TUNER
,
0
,
0
,
4
,
RACE_WYRM
,
ATTRIBUTE_WATER
)
then
local
token
=
Duel
.
CreateToken
(
tp
,
101106104
)
Duel
.
SpecialSummonStep
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetAbsoluteRange
(
tp
,
1
,
0
)
e1
:
SetTarget
(
c101106004
.
splimit
)
...
...
script/c101106005.lua
View file @
37c16ded
...
...
@@ -5,7 +5,7 @@ function c101106005.initial_effect(c)
--special summon (self)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
101106005
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOKEN
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCountLimit
(
1
,
101106005
)
...
...
@@ -42,7 +42,7 @@ function c101106005.spop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
ft
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
101106103
,
0
,
TYPES_TOKEN_MONSTER
+
TYPE_TUNER
,
0
,
0
,
4
,
RACE_WYRM
,
ATTRIBUTE_WATER
)
if
ft
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
101106103
,
0
x26d
,
TYPES_TOKEN_MONSTER
+
TYPE_TUNER
,
0
,
0
,
4
,
RACE_WYRM
,
ATTRIBUTE_WATER
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
101106005
,
2
))
then
Duel
.
BreakEffect
()
local
token
=
Duel
.
CreateToken
(
tp
,
101106105
)
...
...
@@ -50,7 +50,7 @@ function c101106005.spop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetAbsoluteRange
(
tp
,
1
,
0
)
e1
:
SetTarget
(
c101106005
.
splimit
)
...
...
script/c101106007.lua
View file @
37c16ded
...
...
@@ -17,10 +17,10 @@ function c101106007.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
101106007
,
0
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetHintTiming
(
0
,
TIMING_MAIN_END
)
e2
:
SetHintTiming
(
0
,
TIMING
S_CHECK_MONSTER
+
TIMING
_MAIN_END
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
101106007
)
e2
:
SetCountLimit
(
1
,
101106007
+
100
)
e2
:
SetCondition
(
c101106007
.
spcon
)
e2
:
SetCost
(
c101106007
.
spcost
)
e2
:
SetTarget
(
c101106007
.
sptg
)
...
...
@@ -32,7 +32,7 @@ function c101106007.initial_effect(c)
e3
:
SetCategory
(
CATEGORY_TOHAND
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e3
:
SetCountLimit
(
1
,
101106007
+
1
00
)
e3
:
SetCountLimit
(
1
,
101106007
+
2
00
)
e3
:
SetRange
(
LOCATION_GRAVE
)
e3
:
SetCondition
(
c101106007
.
thcon
)
e3
:
SetTarget
(
c101106007
.
thtg
)
...
...
script/c101106008.lua
View file @
37c16ded
...
...
@@ -69,7 +69,7 @@ end
function
c101106008
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<
1
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101106008
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c101106008
.
spfilter
)
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
...
...
script/c101106009.lua
View file @
37c16ded
...
...
@@ -72,7 +72,7 @@ end
function
c101106009
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<
1
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101106009
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c101106009
.
spfilter
)
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
...
...
script/c101106010.lua
View file @
37c16ded
...
...
@@ -7,7 +7,6 @@ function c101106010.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
101106010
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCountLimit
(
1
,
101106010
)
e1
:
SetCost
(
c101106010
.
spcost1
)
...
...
@@ -67,7 +66,7 @@ end
function
c101106010
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<
1
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101106010
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c101106010
.
spfilter
)
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
...
...
script/c101106013.lua
View file @
37c16ded
...
...
@@ -64,7 +64,8 @@ function c101106013.thop(e,tp,eg,ep,ev,re,r,rp)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
if
Duel
.
IsExistingMatchingCard
(
c101106013
.
sumfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
101106013
,
2
))
then
if
Duel
.
IsExistingMatchingCard
(
c101106013
.
sumfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
101106013
,
2
))
then
Duel
.
BreakEffect
()
Duel
.
ShuffleHand
(
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SUMMON
)
...
...
script/c101106014.lua
View file @
37c16ded
...
...
@@ -64,7 +64,8 @@ function c101106014.thop(e,tp,eg,ep,ev,re,r,rp)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
if
Duel
.
IsExistingMatchingCard
(
c101106014
.
sumfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
101106014
,
2
))
then
if
Duel
.
IsExistingMatchingCard
(
c101106014
.
sumfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
101106014
,
2
))
then
Duel
.
BreakEffect
()
Duel
.
ShuffleHand
(
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SUMMON
)
...
...
script/c101106015.lua
View file @
37c16ded
...
...
@@ -61,7 +61,8 @@ end
function
c101106015
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
~=
0
and
tc
:
IsLocation
(
LOCATION_REMOVED
)
and
Duel
.
IsExistingMatchingCard
(
c101106015
.
sumfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
101106015
,
2
))
then
and
Duel
.
IsExistingMatchingCard
(
c101106015
.
sumfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
101106015
,
2
))
then
Duel
.
BreakEffect
()
Duel
.
ShuffleHand
(
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SUMMON
)
...
...
script/c101106016.lua
View file @
37c16ded
...
...
@@ -64,7 +64,8 @@ end
function
c101106016
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
~=
0
and
tc
:
IsLocation
(
LOCATION_HAND
)
and
Duel
.
IsExistingMatchingCard
(
c101106016
.
sumfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
101106016
,
2
))
then
and
Duel
.
IsExistingMatchingCard
(
c101106016
.
sumfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
101106016
,
2
))
then
Duel
.
BreakEffect
()
Duel
.
ShuffleHand
(
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SUMMON
)
...
...
script/c101106017.lua
View file @
37c16ded
...
...
@@ -52,7 +52,8 @@ function c101106017.thop(e,tp,eg,ep,ev,re,r,rp)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
if
Duel
.
IsExistingMatchingCard
(
Card
.
IsSummonable
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
,
true
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
101106017
,
2
))
then
if
Duel
.
IsExistingMatchingCard
(
Card
.
IsSummonable
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
,
true
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
101106017
,
2
))
then
Duel
.
BreakEffect
()
Duel
.
ShuffleHand
(
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SUMMON
)
...
...
script/c101106021.lua
View file @
37c16ded
...
...
@@ -23,7 +23,7 @@ function c101106021.initial_effect(c)
c
:
RegisterEffect
(
e2
)
--special summon
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
101106021
,
0
))
e3
:
SetDescription
(
aux
.
Stringid
(
101106021
,
1
))
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
...
...
script/c101106023.lua
View file @
37c16ded
...
...
@@ -24,6 +24,7 @@ function c101106023.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c101106023
.
cfilter
(
c
)
if
not
c
:
IsFaceup
()
then
return
false
end
local
oc
=
c
:
GetOverlayGroup
()
return
c
:
IsCode
(
24639891
)
or
c
:
IsType
(
TYPE_XYZ
)
and
oc
and
oc
:
IsExists
(
Card
.
IsCode
,
1
,
nil
,
24639891
)
end
...
...
script/c101106028.lua
View file @
37c16ded
...
...
@@ -47,7 +47,7 @@ function c101106028.initial_effect(c)
c
:
RegisterEffect
(
e4
)
end
function
c101106028
.
hspfilter
(
c
)
return
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemoveAsCost
()
return
c
:
Is
LevelAbove
(
1
)
and
c
:
Is
Race
(
RACE_MACHINE
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemoveAsCost
()
end
function
c101106028
.
hspcheck
(
g
)
Duel
.
SetSelectedCard
(
g
)
...
...
@@ -124,6 +124,8 @@ function c101106028.spop(e,tp,eg,ep,ev,re,r,rp)
if
ft
<=
0
or
#
tg
==
0
then
return
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ft
=
1
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
tg
:
SelectSubGroup
(
tp
,
c101106028
.
spcheck
,
false
,
1
,
ft
)
aux
.
GCheckAdditional
=
c101106028
.
spcheck
local
g
=
tg
:
SelectSubGroup
(
tp
,
aux
.
TRUE
,
false
,
1
,
ft
)
aux
.
GCheckAdditional
=
nil
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
script/c101106029.lua
View file @
37c16ded
...
...
@@ -6,6 +6,7 @@ function c101106029.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
101106029
,
0
))
e1
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_ATKCHANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_FLIP
)
e1
:
SetTarget
(
c101106029
.
destg
)
e1
:
SetOperation
(
c101106029
.
desop
)
...
...
@@ -25,7 +26,7 @@ function c101106029.initial_effect(c)
end
function
c101106029
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
...
...
@@ -33,7 +34,7 @@ end
function
c101106029
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
and
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
if
tc
and
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
and
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
local
atk
=
tc
:
GetBaseAttack
()
if
atk
<=
0
then
return
end
local
race
=
tc
:
GetOriginalRace
()
...
...
script/c101106031.lua
View file @
37c16ded
...
...
@@ -63,13 +63,16 @@ function c101106031.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function
c101106031
.
desrepfilter
(
c
)
return
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsAbleToGrave
()
end
function
c101106031
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsRace
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
RACE_PLANT
)
end
if
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
()
,
96
)
then
and
Duel
.
IsExistingMatchingCard
(
c101106031
.
desrepfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
Duel
.
SelectEffectYesNo
(
tp
,
c
,
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsRace
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
RACE_PLANT
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101106031
.
desrepfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
+
REASON_REPLACE
)
return
true
else
return
false
end
...
...
script/c101106035.lua
View file @
37c16ded
...
...
@@ -17,8 +17,9 @@ function c101106035.thfilter(c)
return
c
:
IsCode
(
11548522
)
and
c
:
IsAbleToHand
()
end
function
c101106035
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
b1
=
e
:
GetHandler
():
IsAbleToDeck
()
local
b2
=
Duel
.
IsExistingMatchingCard
(
c101106035
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
e
:
GetHandler
():
IsAbleToDeck
()
local
c
=
e
:
GetHandler
()
local
b1
=
c
:
IsAbleToDeck
()
local
b2
=
Duel
.
IsExistingMatchingCard
(
c101106035
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
c
:
IsAbleToDeck
()
if
chk
==
0
then
return
b1
or
b2
end
local
op
=
0
if
b1
and
b2
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
101106035
,
1
),
aux
.
Stringid
(
101106035
,
2
))
...
...
@@ -27,10 +28,10 @@ function c101106035.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
e
:
SetLabel
(
op
)
if
op
==
0
then
e
:
SetCategory
(
CATEGORY_TODECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
e
:
GetHandler
()
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
c
,
1
,
0
,
0
)
else
e
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
+
CATEGORY_TODECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
e
:
GetHandler
()
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
c
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
...
...
script/c101106037.lua
View file @
37c16ded
...
...
@@ -38,7 +38,7 @@ function c101106037.initial_effect(c)
e3
:
SetOperation
(
c101106037
.
negop
)
c
:
RegisterEffect
(
e3
)
end
function
c101106037
.
tdfilter
(
c
)
function
c101106037
.
tdfilter
(
c
,
tp
)
return
bit
.
band
(
c
:
GetType
(),
0x82
)
==
0x82
and
c
:
IsAbleToDeck
()
and
not
c
:
IsPublic
()
and
Duel
.
IsExistingMatchingCard
(
c101106037
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
)
end
...
...
@@ -46,13 +46,13 @@ function c101106037.thfilter(c,mc)
return
bit
.
band
(
c
:
GetType
(),
0x81
)
==
0x81
and
c
:
IsAbleToHand
()
and
aux
.
IsCodeListed
(
mc
,
c
:
GetCode
())
end
function
c101106037
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c101106037
.
tdfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c101106037
.
tdfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c101106037
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
c101106037
.
tdfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
c101106037
.
tdfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
tp
)
if
g1
:
GetCount
()
==
0
then
return
end
Duel
.
ConfirmCards
(
1
-
tp
,
g1
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
...
...
script/c101106038.lua
View file @
37c16ded
...
...
@@ -31,6 +31,7 @@ function c101106038.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetRange
(
LOCATION_GRAVE
)
e3
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e3
:
SetCountLimit
(
1
,
101106038
)
e3
:
SetCondition
(
c101106038
.
spcon
)
e3
:
SetTarget
(
c101106038
.
sptg
)
...
...
script/c101106041.lua
View file @
37c16ded
...
...
@@ -72,16 +72,16 @@ function c101106041.disop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
NegateRelatedChain
(
tc
,
RESET_TURN_SET
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_DISABLE
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetValue
(
RESET_TURN_SET
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e3
:
SetValue
(
RESET_TURN_SET
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e3
)
end
end
script/c101106045.lua
View file @
37c16ded
...
...
@@ -49,7 +49,8 @@ function c101106045.eqtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c101106045
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101106045
.
eqfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
c
)
if
g
:
GetCount
()
>
0
then
...
...
script/c101106046.lua
View file @
37c16ded
...
...
@@ -30,9 +30,8 @@ function c101106046.initial_effect(c)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
101106046
,
0
))
e3
:
SetCategory
(
CATEGORY_DAMAGE
+
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_
O
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_
F
)
e3
:
SetCode
(
EVENT_BE_MATERIAL
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetCountLimit
(
1
,
101106046
)
e3
:
SetCondition
(
c101106046
.
thcon
)
e3
:
SetTarget
(
c101106046
.
thtg
)
...
...
@@ -80,12 +79,12 @@ function c101106046.thcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
)
and
r
==
REASON_SYNCHRO
end
function
c101106046
.
thfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsLevelBelow
(
8
)
and
c
:
IsDefense
(
600
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsLevelBelow
(
8
)
and
c
:
IsDefense
(
600
)
and
c
:
IsAbleToHand
()
end
function
c101106046
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
rc
=
e
:
GetHandler
():
GetReasonCard
()
local
lv
=
rc
:
GetLevel
()
if
chk
==
0
then
return
lv
>
0
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
lv
*
100
)
end
function
c101106046
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -93,12 +92,9 @@ function c101106046.thop(e,tp,eg,ep,ev,re,r,rp)
local
lv
=
rc
:
GetLevel
()
if
Duel
.
Damage
(
1
-
tp
,
lv
*
100
,
REASON_EFFECT
)
~=
0
and
Duel
.
IsExistingMatchingCard
(
c101106046
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
101106046
,
3
))
then
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101106046
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
end
script/c101106047.lua
View file @
37c16ded
...
...
@@ -5,28 +5,28 @@ function c101106047.initial_effect(c)
aux
.
AddXyzProcedure
(
c
,
nil
,
4
,
2
)
c
:
EnableReviveLimit
()
--to hand
local
e
3
=
Effect
.
CreateEffect
(
c
)
e
3
:
SetDescription
(
aux
.
Stringid
(
101106047
,
0
))
e
3
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
+
CATEGORY_GRAVE_ACTION
)
e
3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e
3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e
3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e
3
:
SetCost
(
c101106047
.
thcost
)
e
3
:
SetCondition
(
c101106047
.
thcon
)
e
3
:
SetTarget
(
c101106047
.
thtg
)
e
3
:
SetOperation
(
c101106047
.
thop
)
c
:
RegisterEffect
(
e
3
)
local
e
1
=
Effect
.
CreateEffect
(
c
)
e
1
:
SetDescription
(
aux
.
Stringid
(
101106047
,
0
))
e
1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
+
CATEGORY_GRAVE_ACTION
)
e
1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e
1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e
1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e
1
:
SetCost
(
c101106047
.
thcost
)
e
1
:
SetCondition
(
c101106047
.
thcon
)
e
1
:
SetTarget
(
c101106047
.
thtg
)
e
1
:
SetOperation
(
c101106047
.
thop
)
c
:
RegisterEffect
(
e
1
)
--tograve
local
e
4
=
Effect
.
CreateEffect
(
c
)
e
4
:
SetDescription
(
aux
.
Stringid
(
101106047
,
1
))
e
4
:
SetCategory
(
CATEGORY_TOGRAVE
)
e
4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e
4
:
SetCode
(
EVENT_BATTLE_START
)
e
4
:
SetCondition
(
c101106047
.
rmcon
)
e
4
:
SetCost
(
c101106047
.
rmcost
)
e
4
:
SetTarget
(
c101106047
.
rmtg
)
e
4
:
SetOperation
(
c101106047
.
rmop
)
c
:
RegisterEffect
(
e
4
)
local
e
2
=
Effect
.
CreateEffect
(
c
)
e
2
:
SetDescription
(
aux
.
Stringid
(
101106047
,
1
))
e
2
:
SetCategory
(
CATEGORY_TOGRAVE
)
e
2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e
2
:
SetCode
(
EVENT_BATTLE_START
)
e
2
:
SetCondition
(
c101106047
.
rmcon
)
e
2
:
SetCost
(
c101106047
.
rmcost
)
e
2
:
SetTarget
(
c101106047
.
rmtg
)
e
2
:
SetOperation
(
c101106047
.
rmop
)
c
:
RegisterEffect
(
e
2
)
end
function
c101106047
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_XYZ
)
...
...
script/c101106048.lua
View file @
37c16ded
...
...
@@ -22,7 +22,7 @@ function c101106048.initial_effect(c)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetHintTiming
(
0
,
TIMING_
MAIN
_END
)
e2
:
SetHintTiming
(
0
,
TIMING_
BATTLE_START
+
TIMING_BATTLE
_END
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCondition
(
c101106048
.
discon
)
e2
:
SetTarget
(
c101106048
.
distg
)
...
...
@@ -70,10 +70,10 @@ function c101106048.ctfilter(c)
end
function
c101106048
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
c101106048
.
ctfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
1
-
tp
)
and
aux
.
disfilter1
(
chkc
)
end
if
chk
==
0
then
return
ct
>
0
and
Duel
.
IsExistingTarget
(
aux
.
disfilter1
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
1
-
tp
)
and
aux
.
NegateAnyFilter
(
chkc
)
end
if
chk
==
0
then
return
ct
>
0
and
Duel
.
IsExistingTarget
(
aux
.
NegateAnyFilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISABLE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
disfilter1
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
ct
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
NegateAnyFilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
ct
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
c101106048
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c101106051.lua
View file @
37c16ded
...
...
@@ -12,6 +12,7 @@ function c101106051.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e1
:
SetCountLimit
(
1
,
101106051
)
e1
:
SetCost
(
c101106051
.
spcost
)
e1
:
SetTarget
(
c101106051
.
sptg
)
...
...
script/c101106057.lua
View file @
37c16ded
...
...
@@ -7,6 +7,7 @@ function c101106057.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_FUSION_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCountLimit
(
1
,
101106057
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetTarget
(
c101106057
.
target
)
e1
:
SetOperation
(
c101106057
.
activate
)
...
...
script/c101106061.lua
View file @
37c16ded
...
...
@@ -24,7 +24,7 @@ function c101106061.initial_effect(c)
e3
:
SetCategory
(
CATEGORY_CONTROL
+
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_CHAINING
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetRange
(
LOCATION_FZONE
)
e3
:
SetCountLimit
(
1
,
101106061
+
100
)
e3
:
SetCondition
(
c101106061
.
ctcon
)
...
...
@@ -75,6 +75,7 @@ end
function
c101106061
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
GetControl
(
tc
,
tp
)
and
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
,
tp
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
21179144
,
0x3c
,
TYPES_TOKEN_MONSTER
,
0
,
0
,
1
,
RACE_REPTILE
,
ATTRIBUTE_EARTH
)
then
Duel
.
BreakEffect
()
local
token
=
Duel
.
CreateToken
(
tp
,
101106061
+
100
)
...
...
script/c101106062.lua
View file @
37c16ded
...
...
@@ -15,7 +15,7 @@ function c101106062.filter(c)
return
(
c
:
IsType
(
TYPE_NORMAL
)
or
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x165
)
or
c
:
IsCode
(
99426088
))
and
c
:
IsAbleToDeck
()
end
function
c101106062
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c101106062
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
Is
Controler
(
tp
)
and
chkc
:
Is
Location
(
LOCATION_GRAVE
)
and
c101106062
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c101106062
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c101106062
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
...
...
script/c101106064.lua
View file @
37c16ded
...
...
@@ -63,14 +63,14 @@ function c101106064.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_CHANGE_LEVEL
)
e1
:
SetValue
(
lv
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
)
tc
:
CompleteProcedure
()
end
Duel
.
SpecialSummonComplete
()
end
end
function
c101106064
.
checkfilter
(
c
)
function
c101106064
.
checkfilter
(
c
,
tp
)
local
att
=
c
:
GetAttribute
()
local
race
=
c
:
GetRace
()
return
c
:
IsFaceup
()
and
bit
.
band
(
c
:
GetType
(),
0x81
)
==
0x81
...
...
@@ -80,10 +80,10 @@ function c101106064.tgfilter(c,att,race)
return
bit
.
band
(
c
:
GetType
(),
0x81
)
==
0x81
and
(
c
:
IsAttribute
(
att
)
or
c
:
IsRace
(
race
))
and
c
:
IsAbleToGrave
()
end
function
c101106064
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c101106064
.
checkfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c101106064
.
checkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c101106064
.
checkfilter
(
chkc
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c101106064
.
checkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c101106064
.
checkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c101106064
.
checkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c101106064
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c101106066.lua
View file @
37c16ded
...
...
@@ -4,7 +4,7 @@
function
c101106066
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_REMOVE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetTarget
(
c101106066
.
target
)
...
...
script/c101106067.lua
View file @
37c16ded
...
...
@@ -53,7 +53,9 @@ function c101106067.desop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c101106067
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_SZONE
)
and
rp
==
1
-
tp
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_SZONE
)
and
c
:
IsPreviousControler
(
tp
)
and
rp
==
1
-
tp
and
c
:
IsReason
(
REASON_EFFECT
)
end
function
c101106067
.
spfilter
(
c
,
e
,
tp
)
return
not
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
script/c101106068.lua
View file @
37c16ded
...
...
@@ -25,7 +25,8 @@ function c101106068.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function
c101106068
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
>
0
and
tc
:
IsLocation
(
LOCATION_HAND
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
>
0
and
tc
:
IsLocation
(
LOCATION_HAND
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
...
script/c101106069.lua
View file @
37c16ded
...
...
@@ -4,7 +4,7 @@
function
c101106069
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_
TODECK
+
CATEGORY_SEARCH
)
e1
:
SetCategory
(
CATEGORY_
REMOVE
+
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
101106069
+
EFFECT_COUNT_CODE_OATH
)
...
...
script/c101106070.lua
View file @
37c16ded
...
...
@@ -11,16 +11,16 @@ function c101106070.initial_effect(c)
e1
:
SetOperation
(
c101106070
.
activate
)
c
:
RegisterEffect
(
e1
)
--inflict double damage
local
e
3
=
Effect
.
CreateEffect
(
c
)
e
3
:
SetDescription
(
aux
.
Stringid
(
101106070
,
0
))
e
3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e
3
:
SetCode
(
EVENT_CHAINING
)
e
3
:
SetCountLimit
(
1
,
101106070
)
e
3
:
SetRange
(
LOCATION_GRAVE
)
e
3
:
SetCost
(
aux
.
bfgcost
)
e
3
:
SetCondition
(
c101106070
.
ddcon
)
e
3
:
SetOperation
(
c101106070
.
ddop
)
c
:
RegisterEffect
(
e
3
)
local
e
2
=
Effect
.
CreateEffect
(
c
)
e
2
:
SetDescription
(
aux
.
Stringid
(
101106070
,
0
))
e
2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e
2
:
SetCode
(
EVENT_CHAINING
)
e
2
:
SetCountLimit
(
1
,
101106070
)
e
2
:
SetRange
(
LOCATION_GRAVE
)
e
2
:
SetCost
(
aux
.
bfgcost
)
e
2
:
SetCondition
(
c101106070
.
ddcon
)
e
2
:
SetOperation
(
c101106070
.
ddop
)
c
:
RegisterEffect
(
e
2
)
end
function
c101106070
.
setfilter
(
c
)
return
c
:
IsCode
(
62279055
)
and
c
:
IsSSetable
()
...
...
script/c101106072.lua
View file @
37c16ded
...
...
@@ -53,19 +53,19 @@ function c101106072.activate(e,tp,eg,ep,ev,re,r,rp)
end
function
c101106072
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
101106103
,
0
,
TYPES_TOKEN_MONSTER
,
0
,
0
,
4
,
RACE_WYRM
,
ATTRIBUTE_WATER
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
101106103
,
0
x26d
,
TYPES_TOKEN_MONSTER
,
0
,
0
,
4
,
RACE_WYRM
,
ATTRIBUTE_WATER
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
end
function
c101106072
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
101106103
,
0
,
TYPES_TOKEN_MONSTER
,
0
,
0
,
4
,
RACE_WYRM
,
ATTRIBUTE_WATER
)
then
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
101106103
,
0
x26d
,
TYPES_TOKEN_MONSTER
,
0
,
0
,
4
,
RACE_WYRM
,
ATTRIBUTE_WATER
)
then
local
token
=
Duel
.
CreateToken
(
tp
,
101106172
)
Duel
.
SpecialSummonStep
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetAbsoluteRange
(
tp
,
1
,
0
)
e1
:
SetTarget
(
c101106072
.
splimit
)
...
...
script/c101106073.lua
View file @
37c16ded
...
...
@@ -46,19 +46,19 @@ function c101106073.activate(e,tp,eg,ep,ev,re,r,rp)
end
function
c101106073
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
101106103
,
0
,
TYPES_TOKEN_MONSTER
,
0
,
0
,
4
,
RACE_WYRM
,
ATTRIBUTE_WATER
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
101106103
,
0
x26d
,
TYPES_TOKEN_MONSTER
,
0
,
0
,
4
,
RACE_WYRM
,
ATTRIBUTE_WATER
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
end
function
c101106073
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
101106103
,
0
,
TYPES_TOKEN_MONSTER
,
0
,
0
,
4
,
RACE_WYRM
,
ATTRIBUTE_WATER
)
then
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
101106103
,
0
x26d
,
TYPES_TOKEN_MONSTER
,
0
,
0
,
4
,
RACE_WYRM
,
ATTRIBUTE_WATER
)
then
local
token
=
Duel
.
CreateToken
(
tp
,
101106173
)
Duel
.
SpecialSummonStep
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetAbsoluteRange
(
tp
,
1
,
0
)
e1
:
SetTarget
(
c101106073
.
splimit
)
...
...
script/c101106077.lua
View file @
37c16ded
...
...
@@ -7,6 +7,7 @@ function c101106077.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e1
:
SetCost
(
c101106077
.
cost
)
e1
:
SetTarget
(
c101106077
.
target
)
e1
:
SetOperation
(
c101106077
.
activate
)
...
...
script/c101106079.lua
View file @
37c16ded
...
...
@@ -5,9 +5,10 @@ function c101106079.initial_effect(c)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
)
e1
:
SetHintTiming
(
TIMING_DAMAGE_STEP
,
TIMING_DAMAGE_STEP
+
TIMINGS_CHECK_MONSTER
)
e1
:
SetCondition
(
aux
.
dscon
)
e1
:
SetTarget
(
c101106079
.
target
)
e1
:
SetOperation
(
c101106079
.
activate
)
c
:
RegisterEffect
(
e1
)
...
...
script/c101106080.lua
View file @
37c16ded
...
...
@@ -13,6 +13,7 @@ function c101106080.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetCondition
(
c101106080
.
discon
)
e2
:
SetTarget
(
c101106080
.
distg
)
e2
:
SetOperation
(
c101106080
.
disop
)
c
:
RegisterEffect
(
e2
)
...
...
@@ -25,15 +26,18 @@ function c101106080.initial_effect(c)
e4
:
SetCategory
(
CATEGORY_TOHAND
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetCode
(
EVENT_TO_GRAVE
)
e4
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e4
:
SetProperty
(
EFFECT_FLAG_
DELAY
+
EFFECT_FLAG_
CARD_TARGET
)
e4
:
SetCountLimit
(
1
,
101106080
)
e4
:
SetCondition
(
c101106080
.
thcon
)
e4
:
SetTarget
(
c101106080
.
thtg
)
e4
:
SetOperation
(
c101106080
.
thop
)
c
:
RegisterEffect
(
e4
)
end
function
c101106080
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
Card
.
IsControler
,
1
,
nil
,
tp
)
end
function
c101106080
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
rp
==
tp
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
1
)
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
1
)
...
...
script/c101106201.lua
View file @
37c16ded
...
...
@@ -8,7 +8,6 @@ function c101106201.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
101106201
)
e1
:
SetCost
(
c101106201
.
spcost
)
e1
:
SetTarget
(
c101106201
.
sptg
)
...
...
@@ -57,7 +56,7 @@ function c101106201.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
function
c101106201
.
thfilter
(
c
)
return
c
:
IsCode
(
101106203
)
or
c
:
IsCode
(
67526112
)
and
c
:
IsAbleToHand
()
return
c
:
IsCode
(
101106203
,
67526112
)
and
c
:
IsAbleToHand
()
end
function
c101106201
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c101106201
.
thfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
script/c101106202.lua
View file @
37c16ded
...
...
@@ -20,6 +20,7 @@ function c101106202.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
101106202
,
1
))
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_DESTROY
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetCountLimit
(
1
,
101106202
+
100
)
e2
:
SetTarget
(
c101106202
.
thtg
)
...
...
@@ -42,11 +43,11 @@ function c101106202.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
eg
:
GetCount
()
+
1
,
0
,
0
)
end
function
c101106202
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
t
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
Duel
.
NegateSummon
(
eg
)
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
local
g
=
Duel
.
GetMatchingGroup
(
c101106202
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
g
:
AddCard
(
tc
)
if
c
:
IsRelateToEffect
(
e
)
then
g
:
AddCard
(
c
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
if
sg
:
GetCount
()
>
0
then
...
...
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