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
94605e55
Commit
94605e55
authored
Dec 12, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update scripts
parent
67a24820
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
164 additions
and
57 deletions
+164
-57
script/c100200174.lua
script/c100200174.lua
+61
-0
script/c100260004.lua
script/c100260004.lua
+52
-0
script/c100337001.lua
script/c100337001.lua
+4
-4
script/c100337002.lua
script/c100337002.lua
+7
-6
script/c100337003.lua
script/c100337003.lua
+4
-4
script/c100337033.lua
script/c100337033.lua
+17
-23
script/c100337051.lua
script/c100337051.lua
+19
-20
No files found.
script/c100200174.lua
0 → 100644
View file @
94605e55
--焔聖騎士-リナルド
--Scripted by nekrozar
function
c100200174
.
initial_effect
(
c
)
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCountLimit
(
1
,
100200174
)
e1
:
SetCondition
(
c100200174
.
sprcon
)
e1
:
SetOperation
(
c100200174
.
sprop
)
c
:
RegisterEffect
(
e1
)
--to hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
100200174
,
0
))
e2
:
SetCategory
(
CATEGORY_TOHAND
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetCountLimit
(
1
,
100200274
)
e2
:
SetTarget
(
c100200174
.
thtg
)
e2
:
SetOperation
(
c100200174
.
thop
)
c
:
RegisterEffect
(
e2
)
end
function
c100200174
.
sprfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
end
function
c100200174
.
sprcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c100200174
.
sprfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c100200174
.
sprop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EFFECT_ADD_TYPE
)
e1
:
SetValue
(
TYPE_TUNER
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TOFIELD
)
c
:
RegisterEffect
(
e1
)
end
function
c100200174
.
thfilter
(
c
)
return
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
())
and
((
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
not
c
:
IsCode
(
100200174
))
or
c
:
IsType
(
TYPE_EQUIP
))
and
c
:
IsAbleToHand
()
end
function
c100200174
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
+
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
c100200174
.
thfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c100200174
.
thfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c100200174
.
thfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
end
function
c100200174
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
end
end
script/c100260004.lua
0 → 100644
View file @
94605e55
--オルターガイスト・プークエリ
--Scripted by nekrozar
function
c100260004
.
initial_effect
(
c
)
--hand link
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_EXTRA_LINK_MATERIAL
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCountLimit
(
1
,
100260004
)
e1
:
SetValue
(
c100260004
.
matval
)
c
:
RegisterEffect
(
e1
)
--to hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
100260004
,
0
))
e2
:
SetCategory
(
CATEGORY_TOHAND
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetCountLimit
(
1
,
100260104
+
EFFECT_COUNT_CODE_DUEL
)
e2
:
SetCondition
(
c100260004
.
thcon
)
e2
:
SetTarget
(
c100260004
.
thtg
)
e2
:
SetOperation
(
c100260004
.
thop
)
c
:
RegisterEffect
(
e2
)
end
function
c100260004
.
mfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsSetCard
(
0x103
)
end
function
c100260004
.
exmfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_HAND
)
and
c
:
IsCode
(
100260004
)
end
function
c100260004
.
matval
(
e
,
c
,
mg
)
return
c
:
IsSetCard
(
0x103
)
and
mg
:
IsExists
(
c100260004
.
mfilter
,
1
,
nil
)
and
not
mg
:
IsExists
(
c100260004
.
exmfilter
,
1
,
nil
)
end
function
c100260004
.
cfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsSetCard
(
0x103
)
and
c
:
IsType
(
TYPE_LINK
)
and
c
:
IsSummonType
(
SUMMON_TYPE_LINK
)
end
function
c100260004
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c100260004
.
cfilter
,
1
,
nil
,
tp
)
end
function
c100260004
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c100260004
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
end
end
script/c100337001.lua
View file @
94605e55
...
...
@@ -26,8 +26,8 @@ function c100337001.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c100337001
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x9d
)
and
(
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
or
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
))
return
c
:
IsSetCard
(
0x9d
)
and
(
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
or
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
))
end
function
c100337001
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
@@ -40,8 +40,8 @@ function c100337001.operation(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
c100337001
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
):
GetFirst
()
if
not
tc
then
return
end
local
spos
=
0
if
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
then
spos
=
spos
+
POS_FACEUP_DEFENSE
end
if
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN
)
then
spos
=
spos
+
POS_FACEDOWN_DEFENSE
end
if
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
then
spos
=
spos
+
POS_FACEUP_DEFENSE
end
if
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN
_DEFENSE
)
then
spos
=
spos
+
POS_FACEDOWN_DEFENSE
end
if
spos
~=
0
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
spos
)
if
tc
:
IsFacedown
()
then
...
...
script/c100337002.lua
View file @
94605e55
...
...
@@ -26,8 +26,8 @@ function c100337002.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c100337002
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x9d
)
and
(
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
or
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
))
and
not
c
:
IsCode
(
100337002
)
return
c
:
IsSetCard
(
0x9d
)
and
not
c
:
IsCode
(
100337002
)
and
(
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
or
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
)
)
end
function
c100337002
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
@@ -40,8 +40,8 @@ function c100337002.operation(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
c100337002
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
):
GetFirst
()
if
not
tc
then
return
end
local
spos
=
0
if
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
then
spos
=
spos
+
POS_FACEUP_DEFENSE
end
if
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN
)
then
spos
=
spos
+
POS_FACEDOWN_DEFENSE
end
if
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
then
spos
=
spos
+
POS_FACEUP_DEFENSE
end
if
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN
_DEFENSE
)
then
spos
=
spos
+
POS_FACEDOWN_DEFENSE
end
if
spos
~=
0
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
spos
)
if
tc
:
IsFacedown
()
then
...
...
@@ -53,10 +53,11 @@ function c100337002.spcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsReason
(
REASON_EFFECT
)
end
function
c100337002
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x9d
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
)
and
not
c
:
IsCode
(
100337002
)
return
c
:
IsSetCard
(
0x9d
)
and
not
c
:
IsCode
(
100337002
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
)
end
function
c100337002
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c100337002
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c100337002
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c100337002
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c100337003.lua
View file @
94605e55
...
...
@@ -26,8 +26,8 @@ function c100337003.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c100337003
.
filter
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x9d
)
and
(
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
or
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
))
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x9d
)
and
(
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
or
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
))
end
function
c100337003
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
c100337003
.
filter
(
chkc
,
e
,
tp
)
end
...
...
@@ -41,8 +41,8 @@ function c100337003.operation(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
if
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
local
spos
=
0
if
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
then
spos
=
spos
+
POS_FACEUP_DEFENSE
end
if
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN
)
then
spos
=
spos
+
POS_FACEDOWN_DEFENSE
end
if
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
then
spos
=
spos
+
POS_FACEUP_DEFENSE
end
if
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN
_DEFENSE
)
then
spos
=
spos
+
POS_FACEDOWN_DEFENSE
end
if
spos
~=
0
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
spos
)
if
tc
:
IsFacedown
()
then
...
...
script/c100337033.lua
View file @
94605e55
...
...
@@ -29,8 +29,8 @@ function c100337033.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c100337033
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x9d
)
and
(
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
or
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
))
return
c
:
IsSetCard
(
0x9d
)
and
(
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
or
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
))
end
function
c100337033
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c100337033
.
filter
(
chkc
,
e
,
tp
)
end
...
...
@@ -44,8 +44,8 @@ function c100337033.operation(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
if
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
local
spos
=
0
if
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
then
spos
=
spos
+
POS_FACEUP_DEFENSE
end
if
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN
)
then
spos
=
spos
+
POS_FACEDOWN_DEFENSE
end
if
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
then
spos
=
spos
+
POS_FACEUP_DEFENSE
end
if
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN
_DEFENSE
)
then
spos
=
spos
+
POS_FACEDOWN_DEFENSE
end
if
spos
~=
0
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
spos
)
if
tc
:
IsFacedown
()
then
...
...
@@ -56,20 +56,17 @@ end
function
c100337033
.
cfilter
(
c
)
return
c
:
IsSetCard
(
0x9d
)
and
c
:
IsAbleToRemoveAsCost
()
end
function
c100337033
.
posfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCanTurnSet
()
end
function
c100337033
.
poscost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c100337033
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
c
)
and
c
:
IsAbleToRemoveAsCost
()
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c100337033
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
c
)
local
rg
=
Group
.
FromCards
(
c
,
g
:
GetFirst
()
)
Duel
.
Remove
(
r
g
,
POS_FACEUP
,
REASON_COST
)
g
:
AddCard
(
c
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
end
function
c100337033
.
postg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
b1
=
Duel
.
IsExistingMatchingCard
(
Card
.
IsFacedown
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
local
b2
=
Duel
.
IsExistingMatchingCard
(
c100337033
.
posfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
local
b2
=
Duel
.
IsExistingMatchingCard
(
Card
.
IsCanTurnSet
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
if
chk
==
0
then
return
b1
or
b2
end
local
s
=
0
if
b1
and
not
b2
then
...
...
@@ -85,22 +82,19 @@ function c100337033.postg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
nil
,
1
,
0
,
0
)
end
function
c100337033
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
nil
if
e
:
GetLabel
()
==
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_POSCHANGE
)
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsFacedown
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
if
e
:
GetLabel
()
==
1
then
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsFacedown
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
ChangePosition
(
g
:
GetFirst
(),
POS_FACEUP_DEFENSE
)
end
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_POSCHANGE
)
g
=
Duel
.
SelectMatchingCard
(
tp
,
c100337033
.
posfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
local
tc
=
g
:
GetFirst
()
if
tc
:
IsFaceup
()
then
Duel
.
ChangePosition
(
tc
,
POS_FACEDOWN_DEFENSE
)
else
Duel
.
ChangePosition
(
tc
,
POS_FACEUP_DEFENSE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsCanTurnSet
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
ChangePosition
(
g
:
GetFirst
(),
POS_FACEDOWN_DEFENSE
)
end
end
end
script/c100337051.lua
View file @
94605e55
...
...
@@ -53,14 +53,11 @@ end
function
c100337051
.
splimit
(
e
,
se
,
sp
,
st
)
return
bit
.
band
(
st
,
SUMMON_TYPE_FUSION
)
==
SUMMON_TYPE_FUSION
end
function
c100337051
.
disfilter
(
c
)
return
c
:
IsFaceup
()
and
not
c
:
IsDisabled
()
and
((
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsType
(
TYPE_EFFECT
))
or
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
))
end
function
c100337051
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
Is
Location
(
LOCATION_ONFIELD
)
and
c100337051
.
disfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c100337051
.
disfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
if
chkc
then
return
chkc
:
Is
OnField
()
and
aux
.
disfilter1
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
aux
.
disfilter1
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c100337051
.
disfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
aux
.
disfilter1
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
end
function
c100337051
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
@@ -80,36 +77,38 @@ function c100337051.disop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetValue
(
RESET_TURN_SET
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e2
)
if
tc
:
IsType
(
TYPE_TRAPMONSTER
)
then
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetCode
(
EFFECT_DISABLE_TRAPMONSTER
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e3
)
end
end
end
function
c100337051
.
thfilter
(
c
,
tp
)
local
b
=
c
:
IsType
(
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
)
return
c
:
IsSetCard
(
0x9d
)
and
c
:
IsAbleToHand
()
and
(
not
b
or
(
b
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
>
0
))
end
function
c100337051
.
thfilter2
(
c
)
function
c100337051
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x9d
)
and
c
:
IsAbleToHand
()
end
function
c100337051
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c100337051
.
thfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c100337051
.
thfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
nil
,
1
,
tp
,
1
)
end
function
c100337051
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c100337051
.
thfilter2
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
if
g
:
GetCount
()
>
0
and
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
~=
0
then
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
if
g
:
GetFirst
():
IsLocation
(
LOCATION_HAND
+
LOCATION_EXTRA
)
and
ct
>
0
then
Duel
.
ShuffleHand
(
tp
)
if
g
:
GetFirst
():
IsLocation
(
LOCATION_HAND
)
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
>
0
then
Duel
.
BreakEffect
()
Duel
.
ShuffleHand
(
tp
)
Duel
.
DiscardHand
(
tp
,
aux
.
TRUE
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
,
nil
)
end
end
end
function
c100337051
.
FShaddollFilter
(
c
,
fc
)
return
c
:
IsFusionSetCard
(
0x9d
)
and
c
:
IsCanBeFusionMaterial
(
fc
)
and
not
c
:
IsHasEffect
(
6205579
)
return
c
:
IsFusionSetCard
(
0x9d
)
and
c
:
IsCanBeFusionMaterial
(
fc
)
end
function
c100337051
.
FShaddollExFilter
(
c
,
fc
)
return
c
:
IsFaceup
()
and
c100337051
.
FShaddollFilter
(
c
,
fc
)
...
...
@@ -137,7 +136,7 @@ function c100337051.FShaddollCondition()
local
c
=
e
:
GetHandler
()
local
mg
=
g
:
Filter
(
c100337051
.
FShaddollFilter
,
nil
,
c
)
local
tp
=
e
:
GetHandlerPlayer
()
local
fc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
5
)
local
fc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
FZONE
,
0
)
local
exg
=
nil
if
fc
and
fc
:
IsHasEffect
(
81788994
)
and
fc
:
IsCanRemoveCounter
(
tp
,
0x16
,
3
,
REASON_EFFECT
)
then
exg
=
Duel
.
GetMatchingGroup
(
c100337051
.
FShaddollExFilter
,
tp
,
0
,
LOCATION_MZONE
,
mg
,
c
)
...
...
@@ -153,7 +152,7 @@ function c100337051.FShaddollOperation()
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
gc
,
chkf
)
local
c
=
e
:
GetHandler
()
local
mg
=
eg
:
Filter
(
c100337051
.
FShaddollFilter
,
nil
,
c
)
local
fc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
SZONE
,
5
)
local
fc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_
FZONE
,
0
)
local
exg
=
nil
if
fc
and
fc
:
IsHasEffect
(
81788994
)
and
fc
:
IsCanRemoveCounter
(
tp
,
0x16
,
3
,
REASON_EFFECT
)
then
exg
=
Duel
.
GetMatchingGroup
(
c100337051
.
FShaddollExFilter
,
tp
,
0
,
LOCATION_MZONE
,
mg
,
c
)
...
...
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