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
a6a654e6
Commit
a6a654e6
authored
Sep 24, 2023
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
4c6339a2
Pipeline
#23547
passed with stages
in 51 seconds
Changes
62
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
62 changed files
with
270 additions
and
189 deletions
+270
-189
expansions/pre-release.cdb
expansions/pre-release.cdb
+0
-0
script/c100200240.lua
script/c100200240.lua
+10
-2
script/c101201085.lua
script/c101201085.lua
+1
-0
script/c101201088.lua
script/c101201088.lua
+1
-0
script/c101202001.lua
script/c101202001.lua
+4
-4
script/c101202004.lua
script/c101202004.lua
+1
-1
script/c101202005.lua
script/c101202005.lua
+8
-7
script/c101202006.lua
script/c101202006.lua
+1
-1
script/c101202007.lua
script/c101202007.lua
+4
-2
script/c101202009.lua
script/c101202009.lua
+2
-1
script/c101202010.lua
script/c101202010.lua
+7
-3
script/c101202011.lua
script/c101202011.lua
+8
-2
script/c101202012.lua
script/c101202012.lua
+7
-7
script/c101202013.lua
script/c101202013.lua
+5
-4
script/c101202015.lua
script/c101202015.lua
+1
-1
script/c101202016.lua
script/c101202016.lua
+1
-1
script/c101202017.lua
script/c101202017.lua
+1
-1
script/c101202018.lua
script/c101202018.lua
+5
-2
script/c101202020.lua
script/c101202020.lua
+4
-2
script/c101202021.lua
script/c101202021.lua
+1
-1
script/c101202024.lua
script/c101202024.lua
+1
-1
script/c101202028.lua
script/c101202028.lua
+4
-2
script/c101202029.lua
script/c101202029.lua
+8
-7
script/c101202030.lua
script/c101202030.lua
+1
-1
script/c101202031.lua
script/c101202031.lua
+17
-9
script/c101202032.lua
script/c101202032.lua
+1
-0
script/c101202033.lua
script/c101202033.lua
+4
-5
script/c101202034.lua
script/c101202034.lua
+5
-2
script/c101202036.lua
script/c101202036.lua
+1
-1
script/c101202037.lua
script/c101202037.lua
+4
-3
script/c101202038.lua
script/c101202038.lua
+23
-22
script/c101202040.lua
script/c101202040.lua
+4
-4
script/c101202041.lua
script/c101202041.lua
+2
-1
script/c101202042.lua
script/c101202042.lua
+4
-1
script/c101202043.lua
script/c101202043.lua
+1
-1
script/c101202045.lua
script/c101202045.lua
+5
-2
script/c101202046.lua
script/c101202046.lua
+1
-1
script/c101202047.lua
script/c101202047.lua
+35
-27
script/c101202049.lua
script/c101202049.lua
+3
-3
script/c101202050.lua
script/c101202050.lua
+6
-3
script/c101202051.lua
script/c101202051.lua
+3
-1
script/c101202053.lua
script/c101202053.lua
+1
-0
script/c101202054.lua
script/c101202054.lua
+4
-2
script/c101202055.lua
script/c101202055.lua
+5
-2
script/c101202057.lua
script/c101202057.lua
+6
-6
script/c101202058.lua
script/c101202058.lua
+1
-1
script/c101202060.lua
script/c101202060.lua
+5
-2
script/c101202061.lua
script/c101202061.lua
+4
-2
script/c101202062.lua
script/c101202062.lua
+1
-0
script/c101202063.lua
script/c101202063.lua
+1
-0
script/c101202064.lua
script/c101202064.lua
+1
-0
script/c101202070.lua
script/c101202070.lua
+3
-1
script/c101202071.lua
script/c101202071.lua
+6
-6
script/c101202072.lua
script/c101202072.lua
+8
-12
script/c101202073.lua
script/c101202073.lua
+1
-0
script/c101202074.lua
script/c101202074.lua
+3
-2
script/c101202075.lua
script/c101202075.lua
+1
-0
script/c101202076.lua
script/c101202076.lua
+10
-12
script/c101202077.lua
script/c101202077.lua
+1
-1
script/c101202078.lua
script/c101202078.lua
+1
-0
script/c101202079.lua
script/c101202079.lua
+1
-0
script/c101202080.lua
script/c101202080.lua
+1
-1
No files found.
expansions/pre-release.cdb
View file @
a6a654e6
No preview for this file type
script/c100200240.lua
View file @
a6a654e6
...
...
@@ -13,6 +13,7 @@ function s.initial_effect(c)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetCondition
(
s
.
dmgcon
)
e1
:
SetTarget
(
s
.
dmgtg
)
e1
:
SetOperation
(
s
.
dmgop
)
c
:
RegisterEffect
(
e1
)
--handes
...
...
@@ -34,6 +35,13 @@ end
function
s
.
dmgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
and
eg
:
IsExists
(
s
.
dmgfilter
,
1
,
nil
,
1
-
tp
)
end
function
s
.
dmgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
ct
=
eg
:
FilterCount
(
s
.
dmgfilter
,
nil
,
1
-
tp
)
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetParam
(
ct
*
400
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
ct
*
400
)
end
function
s
.
dmgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
eg
:
FilterCount
(
s
.
dmgfilter
,
nil
,
1
-
tp
)
Duel
.
Damage
(
1
-
tp
,
ct
*
400
,
REASON_EFFECT
)
...
...
@@ -43,11 +51,11 @@ function s.handescon(e,tp,eg,ep,ev,re,r,rp)
end
function
s
.
handestg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
0
,
0
,
1
-
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
nil
,
0
,
1
-
tp
,
1
)
end
function
s
.
handesop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_HAND
)
if
g
:
GetCount
()
==
0
then
return
end
local
sg
=
g
:
RandomSelect
(
1
-
tp
,
1
)
local
sg
=
g
:
RandomSelect
(
tp
,
1
)
Duel
.
SendtoGrave
(
sg
,
REASON_DISCARD
+
REASON_EFFECT
)
end
script/c101201085.lua
View file @
a6a654e6
...
...
@@ -8,6 +8,7 @@ function s.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
)
e1
:
SetCountLimit
(
1
,
id
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetTarget
(
s
.
target
)
...
...
script/c101201088.lua
View file @
a6a654e6
...
...
@@ -21,6 +21,7 @@ function s.initial_effect(c)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
id
+
o
)
e2
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e2
:
SetCondition
(
s
.
setcon
)
e2
:
SetTarget
(
s
.
settg
)
e2
:
SetOperation
(
s
.
setop
)
...
...
script/c101202001.lua
View file @
a6a654e6
...
...
@@ -74,21 +74,21 @@ function s.spfilter(c)
return
c
:
IsSetCard
(
0x10f8
)
and
not
c
:
IsCode
(
id
)
end
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_PZONE
,
0
,
1
,
e
:
GetHandler
()
)
return
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_PZONE
,
0
,
1
,
nil
)
end
function
s
.
spfilter2
(
c
,
tp
)
function
s
.
spfilter2
(
c
)
return
c
:
IsSetCard
(
0x10f2
,
0x2073
,
0x2017
,
0x1046
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToGrave
()
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingMatchingCard
(
s
.
spfilter2
,
tp
,
LOCATION_HAND
+
LOCATION_EXTRA
,
0
,
1
,
nil
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
s
.
spfilter2
,
tp
,
LOCATION_HAND
+
LOCATION_EXTRA
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter2
,
tp
,
LOCATION_HAND
+
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter2
,
tp
,
LOCATION_HAND
+
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
)
local
gc
=
g
:
GetFirst
()
if
gc
and
Duel
.
SendtoGrave
(
gc
,
REASON_EFFECT
)
~=
0
and
gc
:
IsLocation
(
LOCATION_GRAVE
)
then
local
c
=
e
:
GetHandler
()
...
...
script/c101202004.lua
View file @
a6a654e6
...
...
@@ -37,7 +37,7 @@ function c101202004.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
tg
=
g
:
SelectSubGroup
(
tp
,
aux
.
mzctcheck
,
false
,
1
,
#
g
,
tp
)
Duel
.
SetTargetCard
(
tg
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
tg
,
#
tg
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
()
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
end
function
c101202004
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
script/c101202005.lua
View file @
a6a654e6
...
...
@@ -60,7 +60,7 @@ function c101202005.initial_effect(c)
--to hand
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetDescription
(
aux
.
Stringid
(
101202005
,
2
))
e6
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SPECIAL_SUMMON
)
e6
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_DECKDES
+
CATEGORY_GRAVE_SPSUMMON
)
e6
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e6
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e6
:
SetRange
(
LOCATION_MZONE
)
...
...
@@ -74,7 +74,7 @@ function c101202005.stcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
Card
.
IsType
,
1
,
nil
,
TYPE_MONSTER
)
end
function
c101202005
.
sttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanAddCounter
(
0x169
,
3
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
nil
,
3
,
0
,
0x169
)
end
function
c101202005
.
stop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -96,15 +96,15 @@ function c101202005.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c101202005
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
true
,
POS_FACEUP
)
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
true
,
POS_FACEUP
)
>
0
then
c
:
CompleteProcedure
(
)
end
end
function
c101202005
.
cfilter
(
c
,
tp
)
return
c
:
IsSummonLocation
(
LOCATION_EXTRA
)
and
c
:
IsSummonPlayer
(
1
-
tp
)
end
function
c101202005
.
etcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c101202005
.
cfilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c101202005
.
cfilter
,
1
,
nil
,
tp
)
and
Duel
.
GetCurrentPhase
()
~=
PHASE_END
end
function
c101202005
.
etcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemoveAsCost
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
12
,
nil
,
POS_FACEDOWN
)
end
...
...
@@ -123,9 +123,9 @@ function c101202005.etop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_BP
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
t
urn
p
)
end
function
c101202005
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
...
...
@@ -140,6 +140,7 @@ end
function
c101202005
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
>
0
and
c
:
IsLocation
(
LOCATION_HAND
)
then
Duel
.
ShuffleHand
(
tp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
c101202005
.
spfilter
),
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
nil
,
e
,
tp
)
if
ft
>
0
and
g
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
101202005
,
3
))
then
...
...
script/c101202006.lua
View file @
a6a654e6
...
...
@@ -10,7 +10,7 @@ function s.initial_effect(c)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCountLimit
(
1
,
id
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetProperty
(
EFFECT_FLAG_
CANNOT_DIS
ABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_
UNCOPY
ABLE
)
e1
:
SetCondition
(
s
.
sprcon
)
e1
:
SetOperation
(
s
.
sprop
)
c
:
RegisterEffect
(
e1
)
...
...
script/c101202007.lua
View file @
a6a654e6
...
...
@@ -39,8 +39,10 @@ end
function
s
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
if
#
g
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
function
s
.
cfilter
(
c
,
tc
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsAbleToGraveAsCost
()
and
Duel
.
GetMZoneCount
(
tp
,
Group
.
FromCards
(
c
,
tc
))
>
0
...
...
script/c101202009.lua
View file @
a6a654e6
...
...
@@ -10,7 +10,7 @@ function s.initial_effect(c)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCountLimit
(
1
,
id
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetProperty
(
EFFECT_FLAG_
CANNOT_DIS
ABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_
UNCOPY
ABLE
)
e1
:
SetCondition
(
s
.
spscon
)
c
:
RegisterEffect
(
e1
)
--spsummon
...
...
@@ -20,6 +20,7 @@ function s.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e2
:
SetCountLimit
(
1
,
id
+
o
)
e2
:
SetCondition
(
s
.
spcon
)
e2
:
SetCost
(
s
.
cost
)
...
...
script/c101202010.lua
View file @
a6a654e6
...
...
@@ -18,10 +18,11 @@ function s.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e2
:
SetCountLimit
(
1
,
id
+
o
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCondition
(
s
.
spscon
)
e2
:
SetTarget
(
s
.
spstg
)
e2
:
SetOperation
(
s
.
spsop
)
...
...
@@ -49,7 +50,10 @@ function s.mvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
+
LOCATION_MZONE
)
and
s
.
filter
(
chkc
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
s
.
filter
,
tp
,
LOCATION_GRAVE
+
LOCATION_MZONE
,
LOCATION_GRAVE
+
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
s
.
filter
,
tp
,
LOCATION_GRAVE
+
LOCATION_MZONE
,
LOCATION_GRAVE
+
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
s
.
filter
,
tp
,
LOCATION_GRAVE
+
LOCATION_MZONE
,
LOCATION_GRAVE
+
LOCATION_MZONE
,
1
,
1
,
nil
)
if
g
:
GetFirst
():
IsLocation
(
LOCATION_GRAVE
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
g
,
1
,
0
,
0
)
end
end
function
s
.
mvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
...
...
@@ -69,7 +73,7 @@ function s.spscon(e,tp,eg,ep,ev,re,r,rp)
end
function
s
.
sfilter
(
c
,
e
,
tp
)
return
c
:
GetOriginalType
()
&
TYPE_MONSTER
>
0
and
c
:
GetType
()
&
TYPE_CONTINUOUS
+
TYPE_SPELL
==
TYPE_CONTINUOUS
+
TYPE_SPELL
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
Is
Faceup
()
and
c
:
Is
CanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
s
.
spstg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
s
.
sfilter
(
chkc
,
e
,
tp
)
end
...
...
script/c101202011.lua
View file @
a6a654e6
...
...
@@ -16,8 +16,8 @@ function c101202011.initial_effect(c)
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
+
CATEGORY_DRAW
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetCost
(
c101202011
.
tgcost
)
e2
:
SetCountLimit
(
1
,
101202111
)
e2
:
SetCost
(
c101202011
.
tgcost
)
e2
:
SetTarget
(
c101202011
.
target
)
e2
:
SetOperation
(
c101202011
.
operation
)
c
:
RegisterEffect
(
e2
)
...
...
@@ -31,6 +31,7 @@ function c101202011.initial_effect(c)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
101202211
)
e3
:
SetCondition
(
c101202011
.
descon
)
e3
:
SetTarget
(
c101202011
.
destg
)
e3
:
SetOperation
(
c101202011
.
desop
)
c
:
RegisterEffect
(
e3
)
end
...
...
@@ -78,8 +79,13 @@ end
function
c101202011
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c101202011
.
cfilter
,
1
,
nil
,
tp
)
and
not
eg
:
IsContains
(
e
:
GetHandler
())
end
function
c101202011
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGrave
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_ONFIELD
)
end
function
c101202011
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToGrave
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
...
...
script/c101202012.lua
View file @
a6a654e6
...
...
@@ -55,16 +55,11 @@ function c101202012.cfilter(c,tp)
return
c
:
IsPreviousControler
(
tp
)
and
c
:
GetReasonPlayer
()
==
1
-
tp
and
c
:
IsReason
(
REASON_EFFECT
)
end
function
c101202012
.
drfilter
(
c
,
tp
)
return
c
:
GetSequence
()
<
5
and
c
:
IsFaceup
()
end
function
c101202012
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c101202012
.
cfilter
,
1
,
nil
,
tp
)
and
not
eg
:
IsContains
(
e
:
GetHandler
())
end
function
c101202012
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c101202012
.
drfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
ct
=
c101202012
.
count_unique_code
(
g
)
Duel
.
Draw
(
tp
,
ct
,
REASON_EFFECT
)
function
c101202012
.
drfilter
(
c
,
tp
)
return
c
:
GetSequence
()
<
5
and
c
:
IsFaceup
()
end
function
c101202012
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
...
...
@@ -76,6 +71,11 @@ function c101202012.destg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetTargetParam
(
e
:
GetLabel
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
e
:
GetLabel
())
end
function
c101202012
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c101202012
.
drfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
ct
=
c101202012
.
count_unique_code
(
g
)
Duel
.
Draw
(
tp
,
ct
,
REASON_EFFECT
)
end
function
c101202012
.
count_unique_code
(
g
)
local
check
=
{}
local
count
=
0
...
...
script/c101202013.lua
View file @
a6a654e6
...
...
@@ -13,15 +13,15 @@ function c101202013.initial_effect(c)
--Leave Field
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
101202013
,
1
))
e2
:
SetCategory
(
CATEGORY_GRAVE_ACTION
)
e2
:
SetCategory
(
CATEGORY_
TOHAND
+
CATEGORY_TODECK
+
CATEGORY_
GRAVE_ACTION
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e2
:
SetCode
(
EVENT_LEAVE_FIELD
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
101202113
)
e2
:
SetCondition
(
c101202013
.
descon
)
e2
:
SetOperation
(
c101202013
.
desop
)
e2
:
SetTarget
(
c101202013
.
destg
)
e2
:
SetOperation
(
c101202013
.
desop
)
c
:
RegisterEffect
(
e2
)
end
function
c101202013
.
sprfilter
(
c
)
...
...
@@ -58,8 +58,9 @@ function c101202013.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function
c101202013
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
tg
:
GetCount
()
==
2
and
tg
:
FilterCount
(
Card
.
IsAbleToHand
,
nil
,
e
)
==
tg
:
GetCount
()
and
(
not
tg
:
FilterCount
(
Card
.
IsAbleToDeck
,
nil
,
e
)
==
tg
:
GetCount
()
or
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
101202013
,
2
)))
then
if
tg
:
GetCount
()
==
2
and
tg
:
FilterCount
(
Card
.
IsAbleToHand
,
nil
)
==
2
and
(
not
tg
:
FilterCount
(
Card
.
IsAbleToDeck
,
nil
)
==
2
or
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
101202013
,
2
),
aux
.
Stringid
(
101202013
,
3
))
==
0
)
then
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
else
Duel
.
SendtoDeck
(
tg
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
...
...
script/c101202015.lua
View file @
a6a654e6
...
...
@@ -76,7 +76,7 @@ end
function
s
.
sstg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetReleaseGroup
(
tp
,
true
):
Filter
(
s
.
mfilter
,
c
)
if
chk
==
0
then
return
c
:
IsReleasableByEffect
()
if
chk
==
0
then
return
c
:
IsReleasableByEffect
()
and
c
:
GetLevel
()
>
0
and
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
g
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RELEASE
,
g
,
2
,
0
,
0
)
end
...
...
script/c101202016.lua
View file @
a6a654e6
...
...
@@ -58,7 +58,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
s
.
splim
(
e
,
c
)
return
c
:
GetRace
()
~=
RACE_REPTILE
return
not
c
:
IsRace
(
RACE_REPTILE
)
end
function
s
.
gscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonLocation
(
LOCATION_GRAVE
)
...
...
script/c101202017.lua
View file @
a6a654e6
...
...
@@ -66,7 +66,7 @@ function s.tfop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
setfilter
),
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
if
tc
and
Duel
.
SSet
(
tp
,
tc
)
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
()
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
...
...
script/c101202018.lua
View file @
a6a654e6
...
...
@@ -24,6 +24,7 @@ function s.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e2
:
SetCountLimit
(
1
,
id
+
o
)
e2
:
SetLabel
(
1
)
e2
:
SetCost
(
s
.
cost
)
...
...
@@ -92,6 +93,8 @@ end
function
s
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
if
#
g
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
script/c101202020.lua
View file @
a6a654e6
...
...
@@ -85,6 +85,8 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_CARD
,
0
,
id
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
if
#
g
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
script/c101202021.lua
View file @
a6a654e6
...
...
@@ -35,7 +35,7 @@ function s.initial_effect(c)
end
function
s
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ph
=
Duel
.
GetCurrentPhase
()
return
ph
>=
PHASE_BATTLE_START
and
ph
<=
PHASE_BATTLE
return
not
(
ph
>=
PHASE_BATTLE_START
and
ph
<=
PHASE_BATTLE
)
end
function
s
.
indtg
(
e
,
c
)
local
tc
=
e
:
GetHandler
()
...
...
script/c101202024.lua
View file @
a6a654e6
...
...
@@ -34,7 +34,7 @@ end
function
s
.
filter
(
c
,
e
,
tp
)
local
p
,
seq
=
c
:
GetControler
(),
c
:
GetSequence
()
return
c
:
IsFaceup
()
and
c
:
GetFlagEffect
(
id
)
>
0
and
Duel
.
GetMZoneCount
(
p
,
c
,
tp
,
LOCATION_REASON_TOFIELD
,
1
<<
seq
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
,
c
:
GetControler
()
)
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
,
p
)
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
s
.
filter
(
chkc
,
e
,
tp
)
end
...
...
script/c101202028.lua
View file @
a6a654e6
...
...
@@ -52,8 +52,10 @@ end
function
s
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
if
#
g
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
function
s
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
RegisterFlagEffect
(
id
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_STANDBY
,
0
,
2
,
Duel
.
GetTurnCount
())
...
...
script/c101202029.lua
View file @
a6a654e6
...
...
@@ -56,14 +56,15 @@ function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
2
,
tp
,
LOCATION_DECK
)
end
function
s
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Group
.
CreateGroup
()
for
_
,
typ
in
ipairs
{
TYPE_SPIRIT
,
0x82
}
do
if
not
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
0x82
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
TYPE_SPIRIT
)
if
#
g1
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
g
:
Merge
(
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
typ
))
end
if
#
g
==
2
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
0x82
)
g1
:
Merge
(
g2
)
Duel
.
SendtoHand
(
g1
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g1
)
end
end
function
s
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c101202030.lua
View file @
a6a654e6
...
...
@@ -97,7 +97,7 @@ end
function
c101202030
.
pop
(
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
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_PZONE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_PZONE
,
0
,
nil
)
if
g
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
101202030
,
1
))
then
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
...
...
script/c101202031.lua
View file @
a6a654e6
...
...
@@ -9,7 +9,7 @@ function s.initial_effect(c)
--search
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_
SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_
TOHAND
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCountLimit
(
1
,
id
)
...
...
@@ -24,7 +24,7 @@ function s.initial_effect(c)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
id
+
o
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCondition
(
Duel
.
IsAbleToEnterBP
)
e2
:
SetCondition
(
aux
.
bpcon
)
e2
:
SetTarget
(
s
.
dirtg
)
e2
:
SetOperation
(
s
.
dirop
)
c
:
RegisterEffect
(
e2
)
...
...
@@ -36,7 +36,7 @@ function s.initial_effect(c)
e3
:
SetCode
(
EVENT_DESTROYED
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
id
+
o
*
2
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetProperty
(
EFFECT_FLAG_
CARD_TARGET
+
EFFECT_FLAG_
DELAY
)
e3
:
SetTarget
(
s
.
damtg
)
e3
:
SetOperation
(
s
.
damop
)
c
:
RegisterEffect
(
e3
)
...
...
@@ -51,11 +51,14 @@ end
function
s
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
if
#
g
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
function
s
.
dfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
c
:
IsType
(
TYPE_SYNCHRO
)
and
not
c
:
IsHasEffect
(
EFFECT_DIRECT_ATTACK
)
end
function
s
.
dirtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
s
.
dfilter
(
chkc
)
end
...
...
@@ -79,16 +82,21 @@ function s.cfilter(c,e,tp)
and
c
:
GetBaseAttack
()
>
0
and
c
:
IsCanBeEffectTarget
(
e
)
and
not
c
:
IsType
(
TYPE_TOKEN
)
end
function
s
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
eg
:
IsContains
(
chkc
)
and
s
.
cfilter
(
chkc
,
e
,
tp
)
end
local
g
=
eg
:
Filter
(
s
.
cfilter
,
nil
,
e
,
tp
)
if
chk
==
0
then
return
#
g
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
local
tg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
SetTargetCard
(
tg
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
tp
,
tg
:
GetFirst
():
GetBaseAttack
())
local
tc
=
g
:
GetFirst
()
if
#
g
>
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
tc
=
g
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
end
Duel
.
SetTargetCard
(
tc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
tc
:
GetBaseAttack
())
end
function
s
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
GetBaseAttack
()
>
0
then
Duel
.
Damage
(
1
-
tp
,
tc
:
Get
Text
Attack
(),
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
tc
:
Get
Base
Attack
(),
REASON_EFFECT
)
end
end
script/c101202032.lua
View file @
a6a654e6
...
...
@@ -29,6 +29,7 @@ function s.initial_effect(c)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetCountLimit
(
1
,
id
+
o
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e2
:
SetCondition
(
s
.
spcon
)
e2
:
SetCost
(
aux
.
bfgcost
)
e2
:
SetTarget
(
s
.
sptg
)
...
...
script/c101202033.lua
View file @
a6a654e6
...
...
@@ -9,12 +9,11 @@ function s.initial_effect(c)
--negate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetCategory
(
CATEGORY_
NEGAT
E
+
CATEGORY_DESTROY
)
e1
:
SetCategory
(
CATEGORY_
DISABL
E
+
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e1
:
SetCondition
(
s
.
negcon
)
e1
:
SetCost
(
s
.
negcost
)
e1
:
SetTarget
(
s
.
negtg
)
...
...
@@ -39,7 +38,7 @@ function s.negcon(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
loc
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
return
not
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
rp
==
1
-
tp
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
loc
&
(
LOCATION_HAND
|
LOCATION_GRAVE
)
>
0
and
Duel
.
IsChain
Negat
able
(
ev
)
and
loc
&
(
LOCATION_HAND
|
LOCATION_GRAVE
)
>
0
and
Duel
.
IsChain
Disabl
able
(
ev
)
end
function
s
.
cfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsDiscardable
()
...
...
@@ -50,13 +49,13 @@ function s.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
s
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_
NEGAT
E
,
eg
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_
DISABL
E
,
eg
,
1
,
0
,
0
)
local
rc
=
re
:
GetHandler
()
if
rc
:
IsRelateToEffect
(
re
)
and
rc
:
IsDestructable
()
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
eg
,
1
,
0
,
0
)
end
end
function
s
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
if
Duel
.
Negate
Activation
(
ev
)
and
rc
:
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
end
if
Duel
.
Negate
Effect
(
ev
)
and
rc
:
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
end
end
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
script/c101202034.lua
View file @
a6a654e6
...
...
@@ -13,6 +13,7 @@ function s.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetHintTiming
(
0
,
TIMING_MAIN_END
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
s
.
scon
)
e1
:
SetTarget
(
s
.
stg
)
...
...
@@ -72,8 +73,10 @@ end
function
s
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
if
#
g
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
function
s
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_MZONE
)
...
...
script/c101202036.lua
View file @
a6a654e6
...
...
@@ -20,7 +20,7 @@ function s.initial_effect(c)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
)
e2
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCondition
(
s
.
rmcon
)
e2
:
SetTarget
(
s
.
rmtg
)
...
...
script/c101202037.lua
View file @
a6a654e6
...
...
@@ -36,7 +36,8 @@ function c101202037.spfilter(c,e,tp)
end
function
c101202037
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c101202037
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c101202037
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c101202037
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c101202037
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
...
...
@@ -60,13 +61,13 @@ function c101202037.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummonComplete
()
end
function
c101202037
.
lvfilter
(
c
)
return
c
:
IsType
(
TYPE_TUNER
)
and
not
c
:
IsLevel
(
2
)
and
c
:
IsFaceup
()
return
c
:
IsType
(
TYPE_TUNER
)
and
c
:
GetLevel
()
>
0
and
not
c
:
IsLevel
(
2
)
and
c
:
IsFaceup
()
end
function
c101202037
.
lvtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c101202037
.
lvfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c101202037
.
lvfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c101202037
.
lvfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
99
,
nil
)
Duel
.
SelectTarget
(
tp
,
c101202037
.
lvfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
6
,
nil
)
end
function
c101202037
.
lvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
):
Filter
(
Card
.
IsFaceup
,
nil
)
...
...
script/c101202038.lua
View file @
a6a654e6
--エレキュウキ
--Wattaurus
--coded by Lyris
--coded by Lyris
& mercury233
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
...
...
@@ -26,36 +26,37 @@ end
function
s
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
==
1
-
tp
and
Duel
.
GetAttackTarget
()
==
nil
end
function
s
.
filter
(
c
,
e
,
t
p
)
return
c
:
Is
Type
(
TYPE_SYNCHRO
)
and
c
:
IsSetCard
(
0xe
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
not
c
:
IsCode
(
id
)
function
s
.
nfilter
(
c
,
e
,
tp
,
o
p
)
return
c
:
Is
Faceup
()
and
c
:
IsRace
(
RACE_THUNDER
)
and
not
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsAbleToDeck
(
)
and
Duel
.
IsExistingMatchingCard
(
s
.
tfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
,
c
,
op
)
end
function
s
.
tfilter
(
c
)
function
s
.
tfilter
(
c
,
e
,
tp
,
c1
,
op
)
return
c
:
IsSetCard
(
0xe
)
and
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsAbleToDeck
()
and
(
op
or
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
Group
.
FromCards
(
c
,
c1
)))
end
function
s
.
nfilter
(
c
,
tp
)
return
c
:
Is
Faceup
()
and
c
:
IsRace
(
RACE_THUNDER
)
and
not
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsAbleToDeck
(
)
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
function
s
.
spfilter
(
c
,
e
,
tp
,
g
,
chk
)
return
c
:
Is
Type
(
TYPE_SYNCHRO
)
and
c
:
IsSetCard
(
0xe
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
not
c
:
IsCode
(
id
)
and
(
chk
or
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
g
,
c
)
>
0
)
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
tfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
if
chk
==
0
then
return
#
g
>
0
and
Duel
.
IsExistingMatchingCard
(
s
.
nfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
nfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
tp
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
2
,
tp
,
LOCATION_MZONE
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
function
s
.
chk
(
g
)
return
g
:
GetClassCount
(
Card
.
GetLocation
)
==#
g
end
function
s
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
=
Duel
.
GetMatchingGroup
(
s
.
tfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
mg
=
Duel
.
GetMatchingGroup
(
s
.
nfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
tp
)
local
opchk
=
not
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
nil
,
true
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
nfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
,
opchk
)
if
#
g1
<
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
dg
=
(
tg
+
mg
):
SelectSubGroup
(
tp
,
s
.
chk
,
false
,
2
,
2
)
if
not
dg
or
Duel
.
SendtoDeck
(
dg
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
<
2
or
dg
:
IsExists
(
aux
.
NOT
(
Card
.
IsLocation
),
1
,
nil
,
LOCATION_DECK
+
LOCATION_EXTRA
)
then
return
end
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
tfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
,
g1
:
GetFirst
(),
opchk
)
g1
:
Merge
(
g2
)
if
Duel
.
SendtoDeck
(
g1
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
<
2
or
not
g1
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_DECK
+
LOCATION_EXTRA
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
nil
)
if
#
sg
>
0
then
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
script/c101202040.lua
View file @
a6a654e6
...
...
@@ -32,9 +32,6 @@ function s.initial_effect(c)
e3
:
SetValue
(
aux
.
ChangeBattleDamage
(
1
,
DOUBLE_DAMAGE
))
c
:
RegisterEffect
(
e3
)
end
function
s
.
damcon
(
e
)
return
e
:
GetHandler
():
GetEquipTarget
():
GetBattleTarget
()
~=
nil
end
function
s
.
ovfilter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsRank
(
3
)
or
c
:
IsRank
(
4
))
end
...
...
@@ -43,7 +40,7 @@ function s.xyzop(e,tp,chk)
Duel
.
RegisterFlagEffect
(
tp
,
id
,
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
end
function
s
.
xyzcondition
(
e
)
return
e
:
GetHandler
():
GetOverlayCount
()
>
0
return
e
:
GetHandler
():
GetOverlayCount
()
>
0
end
function
s
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x4073
)
and
c
:
IsAbleToHand
()
...
...
@@ -77,3 +74,6 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function
s
.
damcon
(
e
)
return
e
:
GetHandler
():
GetEquipTarget
():
GetBattleTarget
()
~=
nil
end
script/c101202041.lua
View file @
a6a654e6
...
...
@@ -15,6 +15,7 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--tohand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e2
:
SetCategory
(
CATEGORY_TOHAND
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
...
...
@@ -25,7 +26,7 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e2
)
--Equip
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e3
:
SetDescription
(
aux
.
Stringid
(
id
,
2
))
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetCode
(
EVENT_EQUIP
)
...
...
script/c101202042.lua
View file @
a6a654e6
...
...
@@ -103,5 +103,8 @@ end
function
s
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToHand
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
if
#
g
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
end
end
script/c101202043.lua
View file @
a6a654e6
...
...
@@ -9,7 +9,7 @@ function s.initial_effect(c)
--search
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetCategory
(
CATEGORY_
SEARCH
+
CATEGORY_TOHAND
)
e1
:
SetCategory
(
CATEGORY_
TOHAND
+
CATEGORY_TOGRAVE
+
CATEGORY_SEARCH
+
CATEGORY_DECKDES
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
,
id
)
...
...
script/c101202045.lua
View file @
a6a654e6
...
...
@@ -33,6 +33,7 @@ function s.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_MAIN_END
)
e3
:
SetCountLimit
(
1
,
id
+
o
)
e3
:
SetCondition
(
s
.
spcon
)
e3
:
SetTarget
(
s
.
sptg
)
...
...
@@ -61,8 +62,10 @@ end
function
s
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
if
#
g
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ph
=
Duel
.
GetCurrentPhase
()
...
...
script/c101202046.lua
View file @
a6a654e6
...
...
@@ -55,7 +55,7 @@ function s.srmop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_DIRECT_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_
OATH
+
EFFECT_FLAG_
IGNORE_IMMUNE
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
...
...
script/c101202047.lua
View file @
a6a654e6
...
...
@@ -26,6 +26,7 @@ function c101202047.initial_effect(c)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetCountLimit
(
1
,
101202047
+
100
)
e3
:
SetCondition
(
c101202047
.
pcon
)
e3
:
SetTarget
(
c101202047
.
ptg
)
e3
:
SetOperation
(
c101202047
.
pop
)
c
:
RegisterEffect
(
e3
)
--multi attack
...
...
@@ -64,11 +65,12 @@ function c101202047.cfilter(c,tp)
and
Duel
.
IsExistingMatchingCard
(
c101202047
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
:
GetCode
())
end
function
c101202047
.
thfilter
(
c
,
code
)
return
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
GetAttack
()
==
2500
and
not
c
:
IsCode
(
code
)
and
c
:
IsAbleToHand
()
return
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsAttack
(
2500
)
and
not
c
:
IsCode
(
code
)
and
c
:
IsAbleToHand
()
end
function
c101202047
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
IsCostChecked
()
and
Duel
.
IsExistingMatchingCard
(
c101202047
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101202047
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
tp
)
e
:
SetLabel
(
g
:
GetFirst
():
GetCode
())
...
...
@@ -85,31 +87,36 @@ function c101202047.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c101202047
.
pcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetFlagEffect
(
tp
,
101202047
)
<=
0
then
return
false
end
local
c
=
e
:
GetHandler
()
local
lpz
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
0
)
local
rpz
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
if
lpz
==
nil
or
rpz
==
nil
then
return
false
end
local
loc
=
0
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
loc
=
loc
+
LOCATION_HAND
end
if
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
TYPE_PENDULUM
)
>
0
then
loc
=
loc
+
LOCATION_EXTRA
end
if
loc
==
0
then
return
false
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_EXTRA_PENDULUM_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetValue
(
aux
.
TRUE
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
eset
=
{
e1
}
local
lscale
=
lpz
:
GetLeftScale
()
local
rscale
=
rpz
:
GetRightScale
()
if
lscale
>
rscale
then
lscale
,
rscale
=
rscale
,
lscale
end
local
g
=
Duel
.
GetFieldGroup
(
tp
,
loc
,
0
)
local
res
=
g
:
IsExists
(
aux
.
PConditionFilter
,
1
,
nil
,
e
,
tp
,
lscale
,
rscale
,
eset
)
e1
:
Reset
()
return
res
return
Duel
.
GetFlagEffect
(
tp
,
101202047
)
>
0
end
function
c101202047
.
ptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
local
c
=
e
:
GetHandler
()
local
lpz
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
0
)
local
rpz
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
if
lpz
==
nil
or
rpz
==
nil
then
return
false
end
local
loc
=
0
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
loc
=
loc
+
LOCATION_HAND
end
if
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
TYPE_PENDULUM
)
>
0
then
loc
=
loc
+
LOCATION_EXTRA
end
if
loc
==
0
then
return
false
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_EXTRA_PENDULUM_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetValue
(
aux
.
TRUE
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
eset
=
{
e1
}
local
lscale
=
lpz
:
GetLeftScale
()
local
rscale
=
rpz
:
GetRightScale
()
if
lscale
>
rscale
then
lscale
,
rscale
=
rscale
,
lscale
end
local
g
=
Duel
.
GetFieldGroup
(
tp
,
loc
,
0
)
local
res
=
g
:
IsExists
(
aux
.
PConditionFilter
,
1
,
nil
,
e
,
tp
,
lscale
,
rscale
,
eset
)
e1
:
Reset
()
return
res
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
end
function
c101202047
.
pop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
@@ -166,6 +173,7 @@ end
function
c101202047
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
chkc
:
IsCode
(
13331639
)
and
chkc
:
IsFaceup
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c101202047
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c101202047
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
...
...
@@ -175,7 +183,7 @@ function c101202047.atkop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_ATTACK_ALL
)
e1
:
SetValue
(
aux
.
TRUE
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
end
...
...
script/c101202049.lua
View file @
a6a654e6
...
...
@@ -29,14 +29,14 @@ function s.initial_effect(c)
end
function
s
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
)
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
end
function
s
.
filter
(
c
)
return
c
:
IsSetCard
(
0x27
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMatchingGroup
(
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
):
GetClassCount
(
Card
.
GetCode
)
>
1
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
2
,
tp
,
LOCATION_DECK
)
end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
...
...
@@ -64,7 +64,7 @@ function s.rtop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
if
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
local
check
=
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
tc
:
IsAbleToHand
()
if
check
and
Duel
.
Select
EffectYesNo
(
tp
,
tc
,
aux
.
Stringid
(
id
,
2
))
then
if
check
and
Duel
.
Select
Option
(
tp
,
1190
,
1193
)
==
0
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
else
Duel
.
SendtoDeck
(
tc
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
end
...
...
script/c101202050.lua
View file @
a6a654e6
...
...
@@ -38,7 +38,8 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e4
)
end
function
s
.
cfilter
(
c
,
tp
)
return
c
:
IsFaceupEx
()
and
c
:
IsSetCard
(
0x27
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
c
:
GetCode
())
return
c
:
IsFaceupEx
()
and
c
:
IsSetCard
(
0x27
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
c
:
GetCode
())
end
function
s
.
filter
(
c
,
...
)
return
c
:
IsSetCard
(
0x27
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
and
(
#
{
...
}
==
0
or
not
c
:
IsCode
(
...
))
...
...
@@ -55,6 +56,8 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
filter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
g
:
GetFirst
():
GetCode
())
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
if
#
sg
>
0
then
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
end
end
script/c101202051.lua
View file @
a6a654e6
...
...
@@ -15,6 +15,7 @@ function s.initial_effect(c)
--spsum
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
...
...
@@ -64,7 +65,8 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_EQUIP
)
and
c
:
GetOriginalType
()
&
TYPE_XYZ
~=
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_EQUIP
)
and
c
:
GetOriginalType
()
&
TYPE_XYZ
~=
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_SZONE
)
and
chkc
:
IsControler
(
tp
)
and
s
.
spfilter
(
chkc
,
e
,
tp
)
end
...
...
script/c101202053.lua
View file @
a6a654e6
...
...
@@ -10,6 +10,7 @@ function c101202053.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e1
:
SetCountLimit
(
1
,
101202053
)
e1
:
SetTarget
(
c101202053
.
target
)
e1
:
SetOperation
(
c101202053
.
activate
)
...
...
script/c101202054.lua
View file @
a6a654e6
...
...
@@ -36,8 +36,10 @@ end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
filter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
if
#
g
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
function
s
.
cfilter
(
c
)
return
c
:
IsFaceupEx
()
and
c
:
IsSetCard
(
0x29e
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToDeck
()
...
...
script/c101202055.lua
View file @
a6a654e6
...
...
@@ -9,8 +9,10 @@ function s.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetHintTiming
(
TIMING_DAMAGE_STEP
,
TIMING_DAMAGE_STEP
+
TIMINGS_CHECK_MONSTER
)
e1
:
SetCountLimit
(
1
,
id
+
EFFECT_COUNT_CODE_OATH
)
e1
:
Set
Property
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
Set
Condition
(
aux
.
bpcon
)
e1
:
SetTarget
(
s
.
target
)
e1
:
SetOperation
(
s
.
activate
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -56,13 +58,14 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
if
chk
then
Duel
.
BreakEffect
()
end
local
dg
=
Group
.
CreateGroup
()
for
sc
in
aux
.
Next
(
g
)
do
local
patk
=
sc
:
GetAttack
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
-
tc
:
GetAttack
())
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
sc
:
RegisterEffect
(
e1
)
if
sc
:
IsAttack
(
0
)
then
dg
:
AddCard
(
sc
)
end
if
patk
~=
0
and
sc
:
IsAttack
(
0
)
then
dg
:
AddCard
(
sc
)
end
end
if
#
dg
>
0
then
Duel
.
BreakEffect
()
...
...
script/c101202057.lua
View file @
a6a654e6
...
...
@@ -27,23 +27,22 @@ function s.initial_effect(c)
e2
:
SetOperation
(
s
.
thop
)
c
:
RegisterEffect
(
e2
)
end
function
s
.
cfilter
(
c
,
e
,
tp
)
function
s
.
cfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsAbleToGraveAsCost
()
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
and
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
function
s
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
c
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
c
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
c
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
c
,
tp
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
function
s
.
filter
(
c
,
e
,
tp
)
return
c
:
IsLevel
(
1
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
IsCostChecked
()
or
(
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
)
end
if
chk
==
0
then
return
(
e
:
IsCostChecked
()
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
)
and
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
)
end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -74,6 +73,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
local
rc
=
Duel
.
GetFirstTarget
()
if
rc
:
IsRelateToEffect
(
e
)
then
Duel
.
ShuffleDeck
(
tp
)
Duel
.
BreakEffect
()
Duel
.
SendtoDeck
(
rc
,
nil
,
SEQ_DECKBOTTOM
,
REASON_EFFECT
)
end
...
...
script/c101202058.lua
View file @
a6a654e6
...
...
@@ -53,7 +53,7 @@ function c101202058.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
DiscardHand
(
tp
,
Card
.
IsAbleToGraveAsCost
,
1
,
1
,
REASON_COST
)
end
function
c101202058
.
filter
(
c
)
return
c
:
IsSetCard
(
0x29c
)
and
c
:
IsAbleToGrave
()
return
c
:
IsSetCard
(
0x29c
)
and
c
:
Is
Type
(
TYPE_MONSTER
)
and
c
:
Is
AbleToGrave
()
end
function
c101202058
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c101202058
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
script/c101202060.lua
View file @
a6a654e6
...
...
@@ -39,7 +39,10 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
if
not
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
...
...
@@ -64,5 +67,5 @@ function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
return
Duel
.
SelectEffectYesNo
(
tp
,
c
,
96
)
end
function
s
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_EFFECT
+
REASON_REPLACE
)
end
script/c101202061.lua
View file @
a6a654e6
...
...
@@ -65,8 +65,10 @@ end
function
s
.
retrieve
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
filter
),
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
if
#
g
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
function
s
.
ssettrap
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
...
...
script/c101202062.lua
View file @
a6a654e6
...
...
@@ -73,6 +73,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sc
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
:
GetCode
()):
GetFirst
()
if
sc
and
Duel
.
SpecialSummon
(
sc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
and
aux
.
nzatk
(
sc
)
then
Duel
.
BreakEffect
()
local
lp
=
Duel
.
GetLP
(
tp
)
Duel
.
SetLP
(
tp
,
lp
-
sc
:
GetAttack
())
end
...
...
script/c101202063.lua
View file @
a6a654e6
...
...
@@ -9,6 +9,7 @@ function s.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOKEN
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetCost
(
s
.
cost
)
e1
:
SetTarget
(
s
.
target
)
...
...
script/c101202064.lua
View file @
a6a654e6
...
...
@@ -9,6 +9,7 @@ function s.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetTarget
(
s
.
target
)
e1
:
SetOperation
(
s
.
activate
)
...
...
script/c101202070.lua
View file @
a6a654e6
...
...
@@ -50,7 +50,9 @@ function s.setcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
s
.
cfilter
,
1
,
nil
)
end
function
s
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsSSetable
()
end
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsSSetable
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
c
,
1
,
0
,
0
)
end
function
s
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
script/c101202071.lua
View file @
a6a654e6
...
...
@@ -7,7 +7,7 @@ function s.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e1
:
SetCondition
(
s
.
xyzcond
)
e1
:
SetTarget
(
s
.
xyztg
)
e1
:
SetOperation
(
s
.
xyzop
)
...
...
@@ -26,15 +26,15 @@ function s.initial_effect(c)
e2
:
SetOperation
(
s
.
eqop
)
c
:
RegisterEffect
(
e2
)
end
function
s
.
xyzfilter
(
c
)
return
c
:
IsXyzSummonable
(
nil
)
end
function
s
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
end
function
s
.
xyzcond
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
function
s
.
xyzfilter
(
c
)
return
c
:
IsXyzSummonable
(
nil
)
end
function
s
.
xyztg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
xyzfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
...
...
@@ -65,8 +65,8 @@ end
function
s
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
end
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
Get
TargetsRelateToChain
():
GetFirs
t
()
if
not
tc
then
return
end
local
tc
=
Duel
.
Get
FirstTarge
t
()
if
not
(
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
())
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
ec
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
eqfilter
),
tp
,
LOCATION_MZONE
+
LOCATION_GRAVE
,
0
,
1
,
1
,
tc
,
tp
):
GetFirst
()
if
ec
and
Duel
.
Equip
(
tp
,
ec
,
tc
)
then
...
...
script/c101202072.lua
View file @
a6a654e6
...
...
@@ -10,6 +10,7 @@ function c101202072.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e1
:
SetCountLimit
(
1
,
101202072
)
e1
:
SetCondition
(
c101202072
.
condition
)
e1
:
SetTarget
(
c101202072
.
target
)
...
...
@@ -48,6 +49,9 @@ end
function
c101202072
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoDeck
(
tc
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
>
0
and
tc
:
IsLocation
(
LOCATION_DECK
+
LOCATION_EXTRA
)
then
local
op
=
tc
:
GetOwner
()
local
race
=
tc
:
GetRace
()
local
lv
=
tc
:
GetLevel
()
|
tc
:
GetRank
()
|
tc
:
GetLink
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
...
...
@@ -55,7 +59,7 @@ function c101202072.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCondition
(
c101202072
.
srcon
)
e1
:
SetOperation
(
c101202072
.
srop
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetLabel
Object
(
tc
)
e1
:
SetLabel
(
op
,
race
,
lv
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
...
...
@@ -63,25 +67,17 @@ function c101202072.srfilter(c,race,lv)
return
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsRace
(
race
)
and
c
:
IsLevelBelow
(
lv
-
1
)
and
c
:
IsAbleToHand
()
end
function
c101202072
.
srcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
if
not
tc
then
return
false
end
local
op
=
tc
:
GetOwner
()
local
race
=
tc
:
GetRace
()
local
lv
=
tc
:
GetLevel
()
|
tc
:
GetRank
()
|
tc
:
GetLink
()
local
op
,
race
,
lv
=
e
:
GetLabel
()
return
Duel
.
IsExistingMatchingCard
(
c101202072
.
srfilter
,
op
,
LOCATION_DECK
,
0
,
1
,
nil
,
race
,
lv
)
end
function
c101202072
.
srop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
if
not
tc
then
return
end
Duel
.
Hint
(
HINT_CARD
,
0
,
101202072
)
local
op
=
tc
:
GetOwner
()
local
race
=
tc
:
GetRace
()
local
lv
=
tc
:
GetLevel
()
|
tc
:
GetRank
()
|
tc
:
GetLink
()
local
op
,
race
,
lv
=
e
:
GetLabel
()
if
Duel
.
SelectYesNo
(
op
,
aux
.
Stringid
(
101202072
,
2
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
op
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
op
,
c101202072
.
srfilter
,
op
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
race
,
lv
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
,
op
)
Duel
.
ConfirmCards
(
1
-
op
,
g
)
end
end
...
...
script/c101202073.lua
View file @
a6a654e6
...
...
@@ -9,6 +9,7 @@ function c101202073.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
)
e1
:
SetCountLimit
(
1
,
101202073
)
e1
:
SetCost
(
c101202073
.
cost
)
e1
:
SetTarget
(
c101202073
.
target
)
...
...
script/c101202074.lua
View file @
a6a654e6
...
...
@@ -10,6 +10,7 @@ function s.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCost
(
s
.
cost
)
e1
:
SetTarget
(
s
.
target
)
...
...
@@ -34,9 +35,9 @@ function s.filter(c,e,tp)
and
Duel
.
IsExistingTarget
(
aux
.
NegateAnyFilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
Group
.
FromCards
(
c
,
e
:
GetHandler
()))
end
function
s
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_
ONFIELD
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_
MZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_
ONFIELD
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_
MZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
script/c101202075.lua
View file @
a6a654e6
...
...
@@ -9,6 +9,7 @@ function s.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
id
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCondition
(
s
.
condition
)
e1
:
SetTarget
(
s
.
target
)
...
...
script/c101202076.lua
View file @
a6a654e6
...
...
@@ -38,7 +38,6 @@ function c101202076.filter(c,e,tp)
return
c
:
IsSetCard
(
0x29c
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
)
end
function
c101202076
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c101202076
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
)
...
...
@@ -49,20 +48,19 @@ function c101202076.op(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c101202076
.
filter
),
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
#
g
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
e
:
SetLabel
(
g
:
GetFirst
():
GetOriginalCode
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
c101202076
.
splimit
)
e1
:
SetLabel
(
g
:
GetFirst
():
GetOriginalCodeRule
())
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
c101202076
.
splimit
)
e1
:
SetLabel
(
e
:
GetLabel
())
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c101202076
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
e
:
GetHandler
()
==
se
:
GetHandler
()
and
c
:
Is
Cod
e
(
e
:
GetLabel
())
return
e
:
GetHandler
()
==
se
:
GetHandler
()
and
c
:
Is
OriginalCodeRul
e
(
e
:
GetLabel
())
end
function
c101202076
.
stcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_HAND
+
LOCATION_ONFIELD
)
...
...
script/c101202077.lua
View file @
a6a654e6
...
...
@@ -42,7 +42,7 @@ function s.initial_effect(c)
e4
:
SetCategory
(
CATEGORY_TOGRAVE
)
e4
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e4
:
SetCode
(
EVENT_FREE_CHAIN
)
e4
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e4
:
SetHintTiming
(
0
,
TIMING
S_CHECK_MONSTER
+
TIMING
_END_PHASE
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetCountLimit
(
1
,
id
)
e4
:
SetCondition
(
s
.
effcon
)
...
...
script/c101202078.lua
View file @
a6a654e6
...
...
@@ -9,6 +9,7 @@ function s.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DAMAGE
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e1
:
SetCountLimit
(
1
,
id
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCost
(
s
.
cost
)
e1
:
SetTarget
(
s
.
target
)
...
...
script/c101202079.lua
View file @
a6a654e6
...
...
@@ -9,6 +9,7 @@ function s.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOEXTRA
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e1
:
SetCountLimit
(
1
,
id
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetTarget
(
s
.
target
)
...
...
script/c101202080.lua
View file @
a6a654e6
...
...
@@ -33,7 +33,7 @@ function s.tfilter(c,tp)
return
not
c
:
IsType
(
TYPE_TOKEN
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsControler
(
tp
)
end
function
s
.
tkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
if
rp
~=
1
-
tp
or
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
return
g
and
g
:
IsExists
(
s
.
tfilter
,
1
,
nil
,
tp
)
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