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
90d11870
Commit
90d11870
authored
Mar 06, 2021
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
f85314ca
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
48 additions
and
41 deletions
+48
-41
script/c100416003.lua
script/c100416003.lua
+4
-2
script/c100416004.lua
script/c100416004.lua
+3
-2
script/c100416005.lua
script/c100416005.lua
+6
-4
script/c100416006.lua
script/c100416006.lua
+3
-1
script/c100416008.lua
script/c100416008.lua
+5
-4
script/c100416010.lua
script/c100416010.lua
+6
-8
script/c100416011.lua
script/c100416011.lua
+2
-2
script/c100416012.lua
script/c100416012.lua
+4
-4
script/c100416013.lua
script/c100416013.lua
+1
-0
script/c100416019.lua
script/c100416019.lua
+3
-5
script/c100416023.lua
script/c100416023.lua
+1
-1
script/c100416024.lua
script/c100416024.lua
+4
-1
script/c100416026.lua
script/c100416026.lua
+4
-2
script/c100416034.lua
script/c100416034.lua
+1
-4
script/c100416035.lua
script/c100416035.lua
+1
-1
No files found.
script/c100416003.lua
View file @
90d11870
...
...
@@ -44,7 +44,8 @@ function c100416003.spfilter(c,e,tp,atk)
end
function
c100416003
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
,
tp
)
>
0
and
Duel
.
IsExistingTarget
(
c100416003
.
tgfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
,
tp
)
>
0
and
Duel
.
IsExistingTarget
(
c100416003
.
tgfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
c100416003
.
tgfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
e
,
tp
)
e
:
SetLabelObject
(
g1
:
GetFirst
())
...
...
@@ -59,7 +60,8 @@ function c100416003.spop(e,tp,eg,ep,ev,re,r,rp)
local
tg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
lc
=
tg
:
GetFirst
()
if
lc
==
tc
then
lc
=
tg
:
GetNext
()
end
if
lc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
lc
,
0
,
tp
,
1
-
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsControler
(
1
-
tp
)
then
if
lc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
lc
,
0
,
tp
,
1
-
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsControler
(
1
-
tp
)
then
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
end
end
...
...
script/c100416004.lua
View file @
90d11870
...
...
@@ -5,7 +5,7 @@ function c100416004.initial_effect(c)
--draw
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
100416004
,
0
))
e1
:
SetCategory
(
CATEGORY_DRAW
+
CATEGORY_TOHAND
)
e1
:
SetCategory
(
CATEGORY_DRAW
+
CATEGORY_TOHAND
+
CATEGORY_SEARCH
+
CATEGORY_HANDES
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_TO_GRAVE
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
...
...
@@ -40,7 +40,8 @@ function c100416004.drfilter(c)
return
not
c
:
IsCode
(
100416004
)
and
c
:
IsSetCard
(
0x264
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
function
c100416004
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
1
-
tp
,
1
)
and
Duel
.
IsExistingMatchingCard
(
c100416004
.
drfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
1
-
tp
,
1
)
and
Duel
.
IsExistingMatchingCard
(
c100416004
.
drfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
1
-
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
...
...
script/c100416005.lua
View file @
90d11870
...
...
@@ -42,7 +42,10 @@ function c100416005.spfilter(c,e,tp)
end
function
c100416005
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
and
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
c100416005
.
spfilter
),
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
,
e
,
tp
)
and
Duel
.
SelectYesNo
(
1
-
tp
,
aux
.
Stringid
(
100416005
,
2
))
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
and
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
c100416005
.
spfilter
),
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
,
e
,
tp
)
and
Duel
.
SelectYesNo
(
1
-
tp
,
aux
.
Stringid
(
100416005
,
2
))
then
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
HINTMSG_SPSUMMON
)
local
tc
=
Duel
.
SelectMatchingCard
(
1
-
tp
,
aux
.
NecroValleyFilter
(
c100416005
.
spfilter
),
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
e
,
tp
):
GetFirst
()
...
...
@@ -50,13 +53,11 @@ function c100416005.spop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e2
)
end
...
...
@@ -68,7 +69,8 @@ function c100416005.spfilter2(c,e,tp)
end
function
c100416005
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c100416005
.
spfilter2
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c100416005
.
spfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c100416005
.
spfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c100416005
.
spfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
...
...
script/c100416006.lua
View file @
90d11870
...
...
@@ -42,7 +42,9 @@ function c100416006.thfilter(c,tp)
end
function
c100416006
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
and
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
c100416006
.
thfilter
),
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
,
tp
)
and
Duel
.
SelectYesNo
(
1
-
tp
,
aux
.
Stringid
(
100416006
,
2
))
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
and
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
c100416006
.
thfilter
),
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
,
tp
)
and
Duel
.
SelectYesNo
(
1
-
tp
,
aux
.
Stringid
(
100416006
,
2
))
then
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
1
-
tp
,
aux
.
NecroValleyFilter
(
c100416006
.
thfilter
),
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
tp
)
...
...
script/c100416008.lua
View file @
90d11870
...
...
@@ -62,15 +62,15 @@ function c100416008.cfilter(c,tp)
return
c
:
IsPreviousControler
(
1
-
tp
)
and
c
:
IsPreviousLocation
(
LOCATION_GRAVE
)
and
c
:
GetOriginalType
()
&
TYPE_MONSTER
~=
0
end
function
c100416008
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c100416008
.
cfilter
,
1
,
e
:
GetHandler
()
,
tp
)
return
eg
:
IsExists
(
c100416008
.
cfilter
,
1
,
nil
,
tp
)
end
function
c100416008
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
Get
FieldGroup
(
tp
,
0
,
LOCATION_ONFIELD
)
local
g
=
Duel
.
Get
MatchingGroup
(
Card
.
IsAbleToGrave
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
if
chk
==
0
then
return
#
g
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g
,
1
,
0
,
0
)
end
function
c100416008
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
Get
FieldGroup
(
tp
,
0
,
LOCATION_ONFIELD
)
local
g
=
Duel
.
Get
MatchingGroup
(
Card
.
IsAbleToGrave
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
if
#
g
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
...
...
@@ -88,7 +88,8 @@ function c100416008.spfilter(c,e,tp)
return
not
c
:
IsCode
(
100416008
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
+
ATTRIBUTE_DARK
)
and
c
:
IsRace
(
RACE_REPTILE
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c100416008
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c100416008
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c100416008
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
end
function
c100416008
.
spop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c100416010.lua
View file @
90d11870
...
...
@@ -7,7 +7,7 @@ function c100416010.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOGRAVE
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
100416010
)
e1
:
SetCountLimit
(
1
,
100416010
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetTarget
(
c100416010
.
target
)
e1
:
SetOperation
(
c100416010
.
activate
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -28,13 +28,11 @@ end
function
c100416010
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c100416010
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
==
0
then
return
end
if
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
==
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
cg
=
Duel
.
GetMatchingGroup
(
c100416010
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
ct
=
cg
:
GetClassCount
(
Card
.
GetCode
)
if
ct
<
5
then
return
end
if
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
c100416010
.
spfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
and
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
>
0
and
Duel
.
GetOperatedGroup
():
GetFirst
():
IsLocation
(
LOCATION_GRAVE
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetMatchingGroup
(
c100416010
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
):
GetClassCount
(
Card
.
GetCode
)
>=
5
and
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
c100416010
.
spfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
100416010
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
...
...
script/c100416011.lua
View file @
90d11870
...
...
@@ -34,7 +34,7 @@ function c100416011.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c100416011
.
cfilter
(
c
,
tp
)
return
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
return
c
:
IsPreviousControler
(
tp
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
c
:
GetPreviousRaceOnField
()
&
RACE_REPTILE
~=
0
and
(
c
:
IsReason
(
REASON_BATTLE
)
or
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetReasonPlayer
()
==
1
-
tp
)
end
...
...
@@ -57,7 +57,7 @@ end
function
c100416011
.
tgcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
rp
==
1
-
tp
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
IsPreviousLocation
(
LOCATION_FZONE
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_FZONE
)
and
c
:
IsPreviousControler
(
tp
)
end
function
c100416011
.
tgtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ct
=
Duel
.
GetMatchingGroup
(
Card
.
IsRace
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
RACE_REPTILE
):
GetClassCount
(
Card
.
GetCode
)
...
...
script/c100416012.lua
View file @
90d11870
...
...
@@ -15,9 +15,10 @@ function c100416012.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetHintTiming
(
0
,
TIMING_MAIN_END
)
e2
:
SetCountLimit
(
1
,
100416012
)
e2
:
SetCost
(
c100416012
.
spcost
)
e2
:
SetCondition
(
c100416012
.
spcon
)
e2
:
SetCost
(
c100416012
.
spcost
)
e2
:
SetTarget
(
c100416012
.
sptg
)
e2
:
SetOperation
(
c100416012
.
spop
)
c
:
RegisterEffect
(
e2
)
...
...
@@ -27,8 +28,6 @@ function c100416012.initial_effect(c)
e3
:
SetCategory
(
CATEGORY_TOGRAVE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetCode
(
EVENT_TO_GRAVE
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetCountLimit
(
1
,
100416012
+
100
)
e3
:
SetCondition
(
c100416012
.
tgcon
)
e3
:
SetTarget
(
c100416012
.
tgtg
)
e3
:
SetOperation
(
c100416012
.
tgop
)
...
...
@@ -39,7 +38,8 @@ function c100416012.spcon(e,tp,eg,ep,ev,re,r,rp)
return
ph
==
PHASE_MAIN1
or
ph
==
PHASE_MAIN2
end
function
c100416012
.
rfilter
(
c
,
tp
)
return
c
:
IsRace
(
RACE_REPTILE
)
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
return
c
:
IsRace
(
RACE_REPTILE
)
and
c
:
IsType
(
TYPE_EFFECT
)
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
end
function
c100416012
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c100416012
.
rfilter
,
1
,
nil
,
tp
)
end
...
...
script/c100416013.lua
View file @
90d11870
...
...
@@ -7,6 +7,7 @@ function c100416013.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOKEN
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e1
:
SetCountLimit
(
1
,
100416013
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetTarget
(
c100416013
.
target
)
e1
:
SetOperation
(
c100416013
.
operation
)
...
...
script/c100416019.lua
View file @
90d11870
...
...
@@ -77,7 +77,8 @@ function c100416019.chlimit(e,ep,tp)
return
ep
==
tp
or
e
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
not
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
function
c100416019
.
cfilter
(
c
,
e
,
tp
)
return
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
and
c
:
IsSetCard
(
0x265
)
and
c
:
IsType
(
TYPE_PENDULUM
)
return
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
and
c
:
IsSetCard
(
0x265
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
Duel
.
IsExistingMatchingCard
(
c100416019
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
c
:
GetLeftScale
())
end
function
c100416019
.
spfilter
(
c
,
e
,
tp
,
sc
)
...
...
@@ -91,7 +92,7 @@ end
function
c100416019
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c100416019
.
cfilter
,
1
,
1
,
nil
,
e
,
tp
)
if
Duel
.
Release
(
g
,
REASON_
COS
T
)
>
0
then
if
Duel
.
Release
(
g
,
REASON_
EFFEC
T
)
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c100416019
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
,
g
:
GetFirst
():
GetLeftScale
())
if
sg
:
GetCount
()
>
0
then
...
...
@@ -104,9 +105,6 @@ function c100416019.pfilter(c)
local
rsc
=
c
:
GetRightScale
()
return
(
lsc
%
2
~=
0
or
rsc
%
2
~=
0
)
and
c
:
IsType
(
TYPE_PENDULUM
)
end
function
c100416019
.
actfilter2
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x265
)
and
c
:
IsControler
(
tp
)
end
function
c100416019
.
actcon2
(
e
)
local
a
=
Duel
.
GetAttacker
()
local
tp
=
e
:
GetHandlerPlayer
()
...
...
script/c100416023.lua
View file @
90d11870
...
...
@@ -19,7 +19,7 @@ function c100416023.tpfilter(c)
return
c
:
IsSetCard
(
0x265
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsFaceup
()
and
not
c
:
IsForbidden
()
end
function
c100416023
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsType
(
TYPE_
MONSTER
)
and
c
:
IsSetCard
(
0x265
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsType
(
TYPE_
PENDULUM
)
and
c
:
IsSetCard
(
0x265
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c100416023
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
c100416023
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
)
...
...
script/c100416024.lua
View file @
90d11870
...
...
@@ -39,10 +39,11 @@ function c100416024.initial_effect(c)
c
:
RegisterEffect
(
e4
)
end
function
c100416024
.
thfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x265
)
and
c
:
IsType
(
TYPE_
MONSTER
)
and
c
:
IsAbleToHand
()
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x265
)
and
c
:
IsType
(
TYPE_
PENDULUM
)
and
c
:
IsAbleToHand
()
end
function
c100416024
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c100416024
.
thfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
function
c100416024
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -58,6 +59,7 @@ function c100416024.scfilter(c)
end
function
c100416024
.
sctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c100416024
.
scfilter
,
tp
,
LOCATION_PZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
end
function
c100416024
.
scop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
...
...
@@ -89,6 +91,7 @@ function c100416024.descon(e,tp,eg,ep,ev,re,r,rp)
end
function
c100416024
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
local
g
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
...
...
script/c100416026.lua
View file @
90d11870
...
...
@@ -16,7 +16,8 @@ function c100416026.confilter(c)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x265
)
end
function
c100416026
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c100416026
.
confilter
,
tp
,
LOCATION_PZONE
,
0
,
1
,
nil
)
and
(
re
:
IsActiveType
(
TYPE_MONSTER
)
or
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
))
and
rp
==
1
-
tp
return
Duel
.
IsExistingMatchingCard
(
c100416026
.
confilter
,
tp
,
LOCATION_PZONE
,
0
,
1
,
nil
)
and
(
re
:
IsActiveType
(
TYPE_MONSTER
)
or
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
))
and
rp
==
1
-
tp
end
function
c100416026
.
tdfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsAbleToDeck
()
...
...
@@ -32,7 +33,8 @@ function c100416026.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c100416026
.
tdfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
if
tc
and
Duel
.
SendtoDeck
(
tc
,
nil
,
2
,
REASON_EFFECT
)
~=
0
and
tc
:
IsLocation
(
LOCATION_DECK
+
LOCATION_EXTRA
)
and
Duel
.
IsExistingMatchingCard
(
c100416026
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
then
if
tc
and
Duel
.
SendtoDeck
(
tc
,
nil
,
2
,
REASON_EFFECT
)
~=
0
and
tc
:
IsLocation
(
LOCATION_DECK
)
and
Duel
.
IsExistingMatchingCard
(
c100416026
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
then
Duel
.
BreakEffect
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
script/c100416034.lua
View file @
90d11870
...
...
@@ -73,11 +73,8 @@ end
function
c100416034
.
distg
(
e
,
c
)
return
c
:
GetSummonLocation
()
==
LOCATION_EXTRA
and
c
:
IsLevel
(
0
)
end
function
c100416034
.
cfilter
(
c
,
sp
)
return
c
:
GetSummonPlayer
()
==
sp
end
function
c100416034
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c100416034
.
cfilt
er
,
1
,
nil
,
1
-
tp
)
return
eg
:
IsExists
(
Card
.
IsSummonPlay
er
,
1
,
nil
,
1
-
tp
)
end
function
c100416034
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x261
)
and
c
:
IsAbleToHand
()
...
...
script/c100416035.lua
View file @
90d11870
...
...
@@ -96,7 +96,7 @@ function c100416035.negcon(e,tp,eg,ep,ev,re,r,rp)
return
tg
and
tg
:
IsExists
(
c100416035
.
negfilter
,
1
,
nil
,
tp
)
and
Duel
.
IsChainNegatable
(
ev
)
end
function
c100416035
.
costfilter
(
c
,
tp
)
return
c
:
IsType
(
TYPE_MONSTER
)
--
and (c:IsControler(tp) or c:IsFaceup())
return
c
:
IsType
(
TYPE_MONSTER
)
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
function
c100416035
.
excostfilter
(
c
,
tp
)
return
c
:
IsAbleToRemove
()
and
(
c
:
IsHasEffect
(
100416036
,
tp
)
or
c
:
IsHasEffect
(
100416038
,
tp
))
...
...
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