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
847816ab
Commit
847816ab
authored
Mar 27, 2023
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
379e9969
Changes
27
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
105 additions
and
81 deletions
+105
-81
expansions/pre-release.cdb
expansions/pre-release.cdb
+0
-0
script/c100420001.lua
script/c100420001.lua
+4
-5
script/c100420002.lua
script/c100420002.lua
+1
-2
script/c100420003.lua
script/c100420003.lua
+1
-2
script/c100420004.lua
script/c100420004.lua
+0
-1
script/c100420005.lua
script/c100420005.lua
+0
-1
script/c100420006.lua
script/c100420006.lua
+2
-0
script/c100420018.lua
script/c100420018.lua
+4
-3
script/c100420019.lua
script/c100420019.lua
+8
-5
script/c100420020.lua
script/c100420020.lua
+2
-2
script/c100420021.lua
script/c100420021.lua
+4
-3
script/c100420022.lua
script/c100420022.lua
+16
-12
script/c100420024.lua
script/c100420024.lua
+5
-2
script/c100420025.lua
script/c100420025.lua
+3
-2
script/c100420026.lua
script/c100420026.lua
+4
-2
script/c100420027.lua
script/c100420027.lua
+13
-10
script/c100420029.lua
script/c100420029.lua
+4
-3
script/c100420030.lua
script/c100420030.lua
+3
-2
script/c100420031.lua
script/c100420031.lua
+3
-2
script/c100420032.lua
script/c100420032.lua
+3
-2
script/c100420033.lua
script/c100420033.lua
+6
-5
script/c100420034.lua
script/c100420034.lua
+6
-5
script/c100420035.lua
script/c100420035.lua
+1
-2
script/c100420037.lua
script/c100420037.lua
+3
-1
script/c100420038.lua
script/c100420038.lua
+1
-1
script/c100420039.lua
script/c100420039.lua
+1
-0
script/c100420040.lua
script/c100420040.lua
+7
-6
No files found.
expansions/pre-release.cdb
View file @
847816ab
No preview for this file type
script/c100420001.lua
View file @
847816ab
...
...
@@ -50,8 +50,7 @@ function c100420001.spfilter(c,e,tp)
return
c
:
IsRace
(
RACE_DINOSAUR
)
and
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c100420001
.
dsptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
c100420001
.
desfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
nil
,
e
,
tp
)
if
chk
==
0
then
return
#
g
>
0
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c100420001
.
desfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
)
end
...
...
@@ -67,11 +66,11 @@ function c100420001.dspop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetMatchingGroup
(
c100420001
.
desfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
nil
,
e
,
tp
)
if
#
g
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
d
c
=
g
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
(
)
if
Duel
.
Destroy
(
d
c
,
REASON_EFFECT
)
==
0
then
return
false
end
local
d
g
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
if
Duel
.
Destroy
(
d
g
,
REASON_EFFECT
)
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c100420001
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
#
sg
==
0
then
return
false
end
if
#
sg
==
0
then
return
end
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
...
...
script/c100420002.lua
View file @
847816ab
...
...
@@ -67,7 +67,7 @@ function c100420002.dspop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
dg
=
g
:
SelectSubGroup
(
tp
,
aux
.
mzctcheck
,
false
,
2
,
2
,
tp
)
Duel
.
HintSelection
(
dg
)
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
==
0
or
not
c
:
IsRelateToEffect
(
e
)
then
return
false
end
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
==
0
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
function
c100420002
.
tgfilter
(
c
)
...
...
@@ -101,7 +101,6 @@ function c100420002.tdop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c100420002
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
if
#
g
>
0
then
local
c
=
e
:
GetHandler
()
Duel
.
HintSelection
(
g
)
if
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
>
0
and
g
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_DECK
)
>
0
and
c
:
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
script/c100420003.lua
View file @
847816ab
...
...
@@ -7,7 +7,7 @@ function c100420003.initial_effect(c)
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
100420003
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
...
...
@@ -78,7 +78,6 @@ function c100420003.tdop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c100420003
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
if
#
g
>
0
then
local
c
=
e
:
GetHandler
()
Duel
.
HintSelection
(
g
)
if
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
>
0
and
g
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_DECK
)
>
0
and
c
:
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
script/c100420004.lua
View file @
847816ab
...
...
@@ -58,7 +58,6 @@ function c100420004.tdop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c100420004
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
if
#
g
>
0
then
local
c
=
e
:
GetHandler
()
Duel
.
HintSelection
(
g
)
if
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
>
0
and
g
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_DECK
)
>
0
and
c
:
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
script/c100420005.lua
View file @
847816ab
...
...
@@ -77,7 +77,6 @@ function c100420005.tdop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c100420005
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
if
#
g
>
0
then
local
c
=
e
:
GetHandler
()
Duel
.
HintSelection
(
g
)
if
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
>
0
and
g
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_DECK
)
>
0
and
c
:
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
script/c100420006.lua
View file @
847816ab
...
...
@@ -3,6 +3,7 @@
function
c100420006
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
100420006
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
+
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
...
...
@@ -12,6 +13,7 @@ function c100420006.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--fusion
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
100420006
,
1
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_FUSION_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_GRAVE
)
...
...
script/c100420018.lua
View file @
847816ab
...
...
@@ -4,13 +4,13 @@ function c100420018.initial_effect(c)
--return and spsummon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
100420018
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_
TOHAND
+
CATEGORY_
SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCountLimit
(
1
,
100420018
)
e1
:
SetHintTiming
(
0
,
TIMING
_END_PHASE
)
e1
:
SetHintTiming
(
0
,
TIMING
S_CHECK_MONSTER
+
TIMING_MAIN_END
)
e1
:
SetCondition
(
c100420018
.
spcon
)
e1
:
SetTarget
(
c100420018
.
sptg
)
e1
:
SetOperation
(
c100420018
.
spop
)
...
...
@@ -64,7 +64,8 @@ end
function
c100420018
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToChain
()
and
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
>
0
and
c
:
IsRelateToChain
()
then
if
tc
:
IsRelateToChain
()
and
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
>
0
and
tc
:
IsLocation
(
LOCATION_HAND
)
and
c
:
IsRelateToChain
()
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
...
...
script/c100420019.lua
View file @
847816ab
...
...
@@ -20,10 +20,12 @@ function c100420019.initial_effect(c)
e3
:
SetDescription
(
aux
.
Stringid
(
100420019
,
1
))
e3
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_DEFCHANGE
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
100420019
+
100
)
e3
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e3
:
SetHintTiming
(
TIMING_DAMAGE_STEP
,
TIMING_DAMAGE_STEP
+
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e3
:
SetCondition
(
aux
.
dscon
)
e3
:
SetCost
(
c100420019
.
adcost
)
e3
:
SetTarget
(
c100420019
.
adtg
)
e3
:
SetOperation
(
c100420019
.
adop
)
...
...
@@ -104,11 +106,12 @@ function c100420019.rthtgfilter(c)
return
c
:
IsFaceup
()
and
not
c
:
IsType
(
TYPE_LINK
)
end
function
c100420019
.
rthtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c100420019
.
rthtgfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c100420019
.
rthtgfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
tg
=
g
:
GetMinGroup
(
Card
.
GetDefense
)
if
chk
==
0
then
return
tg
:
IsExists
(
Card
.
IsAbleToHand
,
1
,
nil
)
and
Duel
.
GetFlagEffect
(
tp
,
100420019
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
100420019
,
RESET_CHAIN
,
0
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
PLAYER_ALL
,
LOCATION_MZONE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
tg
,
1
,
PLAYER_ALL
,
LOCATION_MZONE
)
end
function
c100420019
.
rthop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c100420019
.
rthtgfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
...
...
@@ -116,7 +119,7 @@ function c100420019.rthop(e,tp,eg,ep,ev,re,r,rp)
local
tg
=
g
:
GetMinGroup
(
Card
.
GetDefense
)
if
#
tg
>
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
tg
=
tg
:
Select
(
tp
,
1
,
1
,
nil
)
tg
=
tg
:
FilterSelect
(
tp
,
Card
.
IsAbleToHand
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
tg
)
end
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
...
...
script/c100420020.lua
View file @
847816ab
...
...
@@ -92,7 +92,7 @@ function c100420020.defop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
e1
:
SetValue
(
3000
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_
DISABLE
+
RESET_
PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
end
function
c100420020
.
atkcfilter
(
c
)
...
...
@@ -117,6 +117,6 @@ function c100420020.atkop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
3000
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_
DISABLE
+
RESET_
PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
end
script/c100420021.lua
View file @
847816ab
...
...
@@ -4,13 +4,13 @@ function c100420021.initial_effect(c)
--return and spsummon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
100420021
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_
TOHAND
+
CATEGORY_
SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCountLimit
(
1
,
100420021
)
e1
:
SetHintTiming
(
0
,
TIMING
_END_PHASE
)
e1
:
SetHintTiming
(
0
,
TIMING
S_CHECK_MONSTER
+
TIMING_MAIN_END
)
e1
:
SetCondition
(
c100420021
.
spcon
)
e1
:
SetTarget
(
c100420021
.
sptg
)
e1
:
SetOperation
(
c100420021
.
spop
)
...
...
@@ -62,7 +62,8 @@ end
function
c100420021
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToChain
()
and
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
>
0
and
c
:
IsRelateToChain
()
then
if
tc
:
IsRelateToChain
()
and
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
>
0
and
tc
:
IsLocation
(
LOCATION_HAND
)
and
c
:
IsRelateToChain
()
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
...
...
script/c100420022.lua
View file @
847816ab
...
...
@@ -5,20 +5,24 @@ function c100420022.initial_effect(c)
c
:
EnableReviveLimit
()
aux
.
AddLinkProcedure
(
c
,
c100420022
.
matfilter
,
1
,
1
)
--cannot be link material
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e0
:
SetCode
(
EFFECT_CANNOT_BE_LINK_MATERIAL
)
e0
:
SetValue
(
1
)
c
:
RegisterEffect
(
e0
)
--cannot be battle target
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_LINK_MATERIAL
)
e1
:
SetValue
(
1
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetCondition
(
c100420022
.
atkcon
)
e1
:
SetValue
(
c100420022
.
atkval
)
c
:
RegisterEffect
(
e1
)
--cannot be battle target
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e2
:
SetCondition
(
c100420022
.
atkcon
)
e2
:
SetValue
(
c100420022
.
atkval
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_CANNOT_DIRECT_ATTACK
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
--special summon
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
script/c100420024.lua
View file @
847816ab
...
...
@@ -37,8 +37,11 @@ function c100420024.activate(e,tp,eg,ep,ev,re,r,rp)
local
num
=
g
:
GetClassCount
(
Card
.
GetCode
)
local
g2
=
Duel
.
GetMatchingGroup
(
c100420024
.
filter3
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
if
#
g
>
0
and
#
g2
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
100420024
,
1
))
then
g2
=
g2
:
Select
(
tp
,
1
,
num
,
nil
)
Duel
.
ChangePosition
(
g2
,
POS_FACEDOWN_DEFENSE
)
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_POSCHANGE
)
local
sg
=
g2
:
Select
(
tp
,
1
,
num
,
nil
)
Duel
.
HintSelection
(
sg
)
Duel
.
ChangePosition
(
sg
,
POS_FACEDOWN_DEFENSE
)
end
end
end
script/c100420025.lua
View file @
847816ab
...
...
@@ -5,9 +5,10 @@ function c100420025.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_ACTION
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e1
:
SetCountLimit
(
1
,
100420025
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCost
(
c100420025
.
cost
)
e1
:
SetTarget
(
c100420025
.
target
)
e1
:
SetOperation
(
c100420025
.
activate
)
...
...
@@ -35,7 +36,7 @@ function c100420025.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
aux
.
NecroValleyFilter
()(
tc
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
and
(
not
tc
:
IsAbleToHand
()
or
Duel
.
SelectOption
(
tp
,
1190
,
1152
)
==
1
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
_DEFENSE
)
else
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
end
...
...
script/c100420026.lua
View file @
847816ab
...
...
@@ -5,9 +5,10 @@ function c100420026.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCountLimit
(
1
,
100420026
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
100420026
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e1
:
SetTarget
(
c100420026
.
target
)
e1
:
SetOperation
(
c100420026
.
activate
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -44,7 +45,6 @@ function c100420026.activate(e,tp,eg,ep,ev,re,r,rp)
local
rg
=
tc
:
GetColumnGroup
():
Filter
(
Card
.
IsControler
,
nil
,
1
-
tp
)
local
fid
=
c
:
GetFieldID
()
local
sg
=
Group
.
CreateGroup
()
sg
:
KeepAlive
()
for
sc
in
aux
.
Next
(
tg
)
do
if
Duel
.
SpecialSummonStep
(
sc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -64,6 +64,7 @@ function c100420026.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
if
#
sg
>
0
then
sg
:
KeepAlive
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
...
...
@@ -77,6 +78,7 @@ function c100420026.activate(e,tp,eg,ep,ev,re,r,rp)
end
Duel
.
SpecialSummonComplete
()
if
#
rg
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
100420026
,
1
))
then
Duel
.
BreakEffect
()
Duel
.
SendtoHand
(
rg
,
nil
,
REASON_EFFECT
)
end
end
...
...
script/c100420027.lua
View file @
847816ab
...
...
@@ -11,15 +11,18 @@ function c100420027.initial_effect(c)
e1
:
SetOperation
(
c100420027
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c100420027
.
cfilter
(
c
)
function
c100420027
.
cfilter
1
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x195
)
end
function
c100420027
.
cfilter2
(
c
,
tp
)
return
c
:
IsOnField
()
and
c
:
IsControler
(
tp
)
end
function
c100420027
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
end
if
rp
~=
1
-
tp
or
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
if
not
re
:
IsActiveType
(
TYPE_MONSTER
)
and
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
then
return
false
end
local
tg
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
return
tg
and
tg
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_ONFIELD
)
and
Duel
.
IsChainNegatable
(
ev
)
and
Duel
.
IsExistingMatchingCard
(
c100420027
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
return
tg
and
tg
:
IsExists
(
c100420027
.
cfilter2
,
1
,
nil
,
tp
)
and
Duel
.
IsChainNegatable
(
ev
)
and
Duel
.
IsExistingMatchingCard
(
c100420027
.
cfilter
1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c100420027
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
...
...
@@ -29,16 +32,16 @@ function c100420027.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c100420027
.
dmgfilter
(
c
)
return
c
100420027
.
cfilter
(
c
)
and
c
:
GetAttack
()
>
0
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x195
)
and
c
:
GetAttack
()
>
0
end
function
c100420027
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
and
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c100420027
.
dmgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
and
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c100420027
.
dmgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
100420027
,
1
))
then
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c100420027
.
dmgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
if
#
g
>
0
then
Duel
.
Damage
(
1
-
tp
,
g
:
GetFirst
():
GetAttack
(),
REASON_EFFECT
)
end
Duel
.
Damage
(
1
-
tp
,
g
:
GetFirst
():
GetAttack
(),
REASON_EFFECT
)
end
end
script/c100420029.lua
View file @
847816ab
...
...
@@ -30,8 +30,9 @@ function s.initial_effect(c)
e3
:
SetCode
(
EVENT_BE_BATTLE_TARGET
)
c
:
RegisterEffect
(
e3
)
end
SUMMON_VALUE_NOUVELLEZ
=
0x8000
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
5
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
=
5
and
Duel
.
GetDecktopGroup
(
tp
,
5
):
FilterCount
(
Card
.
IsAbleToHand
,
nil
)
>
0
end
Duel
.
SetTargetPlayer
(
tp
)
end
...
...
@@ -79,7 +80,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
Release
(
g
,
REASON_EFFECT
)
~=
2
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
):
GetFirst
()
if
tc
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
>
0
then
tc
:
RegisterFlagEffect
(
100420029
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
100420029
,
3
)
)
if
tc
then
Duel
.
SpecialSummon
(
tc
,
SUMMON_VALUE_NOUVELLEZ
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
script/c100420030.lua
View file @
847816ab
...
...
@@ -30,6 +30,7 @@ function s.initial_effect(c)
e3
:
SetCode
(
EVENT_BE_BATTLE_TARGET
)
c
:
RegisterEffect
(
e3
)
end
SUMMON_VALUE_NOUVELLEZ
=
0x8000
function
s
.
desfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
...
...
@@ -74,7 +75,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
Release
(
g
,
REASON_EFFECT
)
~=
2
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
):
GetFirst
()
if
tc
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
>
0
then
tc
:
RegisterFlagEffect
(
100420029
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
100420029
,
3
)
)
if
tc
then
Duel
.
SpecialSummon
(
tc
,
SUMMON_VALUE_NOUVELLEZ
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
script/c100420031.lua
View file @
847816ab
...
...
@@ -31,6 +31,7 @@ function s.initial_effect(c)
e3
:
SetCondition
(
aux
.
TRUE
)
c
:
RegisterEffect
(
e3
)
end
SUMMON_VALUE_NOUVELLEZ
=
0x8000
function
s
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
Duel
.
SetTargetPlayer
(
tp
)
...
...
@@ -72,7 +73,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
Release
(
g
,
REASON_EFFECT
)
~=
2
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
):
GetFirst
()
if
tc
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
>
0
then
tc
:
RegisterFlagEffect
(
100420029
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
100420029
,
3
)
)
if
tc
then
Duel
.
SpecialSummon
(
tc
,
SUMMON_VALUE_NOUVELLEZ
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
script/c100420032.lua
View file @
847816ab
...
...
@@ -31,6 +31,7 @@ function s.initial_effect(c)
e3
:
SetCondition
(
aux
.
TRUE
)
c
:
RegisterEffect
(
e3
)
end
SUMMON_VALUE_NOUVELLEZ
=
0x8000
function
s
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsAbleToDeck
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
end
...
...
@@ -75,7 +76,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
Release
(
g
,
REASON_EFFECT
)
~=
2
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
):
GetFirst
()
if
tc
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
>
0
then
tc
:
RegisterFlagEffect
(
100420029
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
100420029
,
3
)
)
if
tc
then
Duel
.
SpecialSummon
(
tc
,
SUMMON_VALUE_NOUVELLEZ
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
script/c100420033.lua
View file @
847816ab
...
...
@@ -33,6 +33,7 @@ function s.initial_effect(c)
e3
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
c
:
RegisterEffect
(
e3
)
end
SUMMON_VALUE_NOUVELLEZ
=
0x8000
function
s
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x196
,
0x197
)
and
c
:
IsAbleToHand
()
end
...
...
@@ -49,10 +50,10 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
spcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
Get
FlagEffect
(
100420029
)
==
0
return
e
:
GetHandler
():
Get
SummonType
()
&
SUMMON_VALUE_NOUVELLEZ
==
0
end
function
s
.
spcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
Get
FlagEffect
(
100420029
)
>
0
return
e
:
GetHandler
():
Get
SummonType
()
&
SUMMON_VALUE_NOUVELLEZ
>
0
end
function
s
.
relfilter
(
c
)
return
c
:
IsReleasableByEffect
()
and
c
:
IsAttackPos
()
...
...
@@ -73,11 +74,11 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Release
(
tc
,
REASON_EFFECT
)
~=
0
then
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Release
(
tc
,
REASON_EFFECT
)
~=
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
):
GetFirst
()
if
tc
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
>
0
then
tc
:
RegisterFlagEffect
(
100420029
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
100420029
,
3
)
)
if
tc
then
Duel
.
SpecialSummon
(
tc
,
SUMMON_VALUE_NOUVELLEZ
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
end
script/c100420034.lua
View file @
847816ab
...
...
@@ -28,9 +28,10 @@ function s.initial_effect(c)
e2
:
SetOperation
(
s
.
spop
)
c
:
RegisterEffect
(
e2
)
end
SUMMON_VALUE_NOUVELLEZ
=
0x8000
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
aux
.
NegateAnyFilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
e
:
SetLabel
(
e
:
GetHandler
():
Get
FlagEffect
(
100420029
)
)
e
:
SetLabel
(
e
:
GetHandler
():
Get
SummonType
()
&
SUMMON_VALUE_NOUVELLEZ
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
NegateAnyFilter
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
g
,
g
:
GetCount
(),
0
,
0
)
end
...
...
@@ -50,7 +51,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetValue
(
RESET_TURN_SET
)
tc
:
RegisterEffect
(
e2
)
end
local
rg
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
rg
=
Duel
.
GetMatchingGroup
(
Card
.
IsReleasableByEffect
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
if
e
:
GetLabel
()
>
0
and
#
rg
>
0
then
Duel
.
BreakEffect
()
Duel
.
Release
(
rg
,
REASON_EFFECT
)
...
...
@@ -74,11 +75,11 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Release
(
tc
,
REASON_EFFECT
)
~=
0
then
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Release
(
tc
,
REASON_EFFECT
)
~=
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
):
GetFirst
()
if
tc
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
>
0
then
tc
:
RegisterFlagEffect
(
100420029
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
100420029
,
3
)
)
if
tc
then
Duel
.
SpecialSummon
(
tc
,
SUMMON_VALUE_NOUVELLEZ
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
end
end
end
script/c100420035.lua
View file @
847816ab
...
...
@@ -48,7 +48,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
costfilter
(
c
)
return
c
:
GetType
()
&
0x81
==
0x81
and
c
:
IsAbleToDeck
()
return
c
:
GetType
()
&
0x81
==
0x81
and
c
:
IsAbleToDeck
AsCost
()
end
function
s
.
drcost1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
costfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
...
...
@@ -64,7 +64,6 @@ function s.drtg1(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
function
s
.
drop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
end
...
...
script/c100420037.lua
View file @
847816ab
...
...
@@ -3,7 +3,9 @@
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
100420029
)
aux
.
AddRitualProcGreater2
(
c
,
s
.
filter
,
LOCATION_HAND
,
nil
,
nil
,
false
,
s
.
extraop
)
local
e1
=
aux
.
AddRitualProcGreater2
(
c
,
s
.
filter
,
LOCATION_HAND
,
nil
,
nil
,
true
,
s
.
extraop
)
e1
:
SetCategory
(
e1
:
GetCategory
()
|
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
))
c
:
RegisterEffect
(
e1
)
end
function
s
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x196
)
...
...
script/c100420038.lua
View file @
847816ab
...
...
@@ -10,7 +10,7 @@ function s.filter(c,e,tp)
end
function
s
.
extraop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
tc
,
mat
)
if
not
tc
or
not
tc
:
IsCode
(
100420030
)
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Is
Position
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
POS_DEFENSE
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Is
DefensePos
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
if
#
g
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
ChangePosition
(
g
,
POS_FACEUP_ATTACK
)
...
...
script/c100420039.lua
View file @
847816ab
...
...
@@ -24,6 +24,7 @@ function s.initial_effect(c)
e3
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e3
:
SetCountLimit
(
1
,
id
+
o
)
e3
:
SetCost
(
s
.
ritcost
)
c
:
RegisterEffect
(
e3
)
...
...
script/c100420040.lua
View file @
847816ab
...
...
@@ -28,6 +28,7 @@ function s.initial_effect(c)
e2
:
SetOperation
(
s
.
relop
)
c
:
RegisterEffect
(
e2
)
end
SUMMON_VALUE_NOUVELLEZ
=
0x8000
function
s
.
negfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x196
)
and
c
:
GetType
()
&
0x81
==
0x81
end
...
...
@@ -40,29 +41,29 @@ function s.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
end
function
s
.
desfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x196
)
and
c
:
GetType
()
&
0x81
==
0x81
and
c
:
Get
FlagEffect
(
100420029
)
>
0
function
s
.
des
c
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x196
)
and
c
:
GetType
()
&
0x81
==
0x81
and
c
:
Get
SummonType
()
&
SUMMON_VALUE_NOUVELLEZ
>
0
end
function
s
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
if
Duel
.
NegateActivation
(
ev
)
and
rc
:
IsRelateToEffect
(
re
)
and
rc
:
IsDestructable
()
and
Duel
.
IsExistingMatchingCard
(
s
.
desfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
s
.
des
c
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
2
))
then
Duel
.
BreakEffect
()
Duel
.
Destroy
(
rc
,
REASON_EFFECT
)
end
end
function
s
.
relfilter
(
c
,
tp
)
return
c
:
IsCode
(
30243636
)
and
c
:
IsSummonPlayer
(
tp
)
return
c
:
IsCode
(
30243636
)
and
c
:
Is
Faceup
()
and
c
:
Is
SummonPlayer
(
tp
)
end
function
s
.
relcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
s
.
relfilter
,
1
,
nil
,
tp
)
end
function
s
.
reltg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsReleasableByEffect
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
end
function
s
.
relop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsReleasable
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsReleasable
ByEffect
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
if
#
g
>
0
then
Duel
.
Release
(
g
,
REASON_EFFECT
)
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