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
379e9969
Commit
379e9969
authored
Mar 27, 2023
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
ff3f0b92
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
70 additions
and
73 deletions
+70
-73
expansions/pre-release.cdb
expansions/pre-release.cdb
+0
-0
script/c100200230.lua
script/c100200230.lua
+2
-1
script/c100205002.lua
script/c100205002.lua
+3
-2
script/c100206001.lua
script/c100206001.lua
+1
-1
script/c100206002.lua
script/c100206002.lua
+1
-1
script/c100206003.lua
script/c100206003.lua
+7
-7
script/c100206004.lua
script/c100206004.lua
+4
-3
script/c100206005.lua
script/c100206005.lua
+3
-3
script/c100206006.lua
script/c100206006.lua
+5
-3
script/c100206007.lua
script/c100206007.lua
+1
-1
script/c100206009.lua
script/c100206009.lua
+4
-4
script/c100206010.lua
script/c100206010.lua
+2
-1
script/c101111082.lua
script/c101111082.lua
+9
-9
script/c101111083.lua
script/c101111083.lua
+1
-0
script/c101111084.lua
script/c101111084.lua
+4
-4
script/c101111085.lua
script/c101111085.lua
+1
-1
script/c101111088.lua
script/c101111088.lua
+4
-2
script/c101111089.lua
script/c101111089.lua
+7
-6
script/c101111090.lua
script/c101111090.lua
+4
-4
script/c101111091.lua
script/c101111091.lua
+1
-1
script/c101111092.lua
script/c101111092.lua
+1
-2
script/c101111201.lua
script/c101111201.lua
+3
-2
script/c101201064.lua
script/c101201064.lua
+2
-15
No files found.
expansions/pre-release.cdb
View file @
379e9969
No preview for this file type
script/c100200230.lua
View file @
379e9969
--神聖なる魔術師
--Saincred Magician
--Saincred Magician
--coded by Lyris
--coded by Lyris
local
s
,
id
,
o
=
GetID
()
local
s
,
id
,
o
=
GetID
()
...
@@ -5,7 +6,7 @@ function s.initial_effect(c)
...
@@ -5,7 +6,7 @@ function s.initial_effect(c)
--flip
--flip
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_DECKDES
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_FLIP
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_FLIP
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetCountLimit
(
1
,
id
)
...
...
script/c100205002.lua
View file @
379e9969
--リンク・デコーダー
--Link Decoder
--Link Decoder
--coded by Lyris
--coded by Lyris
local
s
,
id
,
o
=
GetID
()
local
s
,
id
,
o
=
GetID
()
...
@@ -30,8 +31,8 @@ end
...
@@ -30,8 +31,8 @@ end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
()
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
()
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
end
end
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
script/c100206001.lua
View file @
379e9969
...
@@ -62,10 +62,10 @@ function c100206001.tfop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -62,10 +62,10 @@ function c100206001.tfop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
)
e1
:
SetValue
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
e1
:
SetValue
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
Duel
.
BreakEffect
()
if
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
>
0
if
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c100206001
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c100206001
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
100206001
,
2
))
then
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
100206001
,
2
))
then
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
nil
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
nil
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
tg
)
Duel
.
HintSelection
(
tg
)
...
...
script/c100206002.lua
View file @
379e9969
...
@@ -15,7 +15,7 @@ function c100206002.initial_effect(c)
...
@@ -15,7 +15,7 @@ function c100206002.initial_effect(c)
--destroy
--destroy
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_DESTROY
)
e2
:
SetCategory
(
CATEGORY_DESTROY
)
e2
:
SetType
(
EFFECT_TYPE_
QUICK
_O
)
e2
:
SetType
(
EFFECT_TYPE_
FIELD
+
EFFECT_TYPE_TRIGGER
_O
)
e2
:
SetCode
(
EVENT_BATTLE_START
)
e2
:
SetCode
(
EVENT_BATTLE_START
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetCountLimit
(
1
,
100206002
+
100
)
e2
:
SetCountLimit
(
1
,
100206002
+
100
)
...
...
script/c100206003.lua
View file @
379e9969
...
@@ -29,7 +29,7 @@ function c100206003.initial_effect(c)
...
@@ -29,7 +29,7 @@ function c100206003.initial_effect(c)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_LEAVE_FIELD
)
e3
:
SetCode
(
EVENT_LEAVE_FIELD
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetCondition
(
c100206003
.
spcon
)
e3
:
SetCondition
(
c100206003
.
spcon
)
e3
:
SetTarget
(
c100206003
.
sptg
)
e3
:
SetTarget
(
c100206003
.
sptg
)
e3
:
SetOperation
(
c100206003
.
spop
)
e3
:
SetOperation
(
c100206003
.
spop
)
...
@@ -41,7 +41,7 @@ end
...
@@ -41,7 +41,7 @@ end
function
c100206003
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100206003
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
return
false
end
if
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
return
false
end
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
local
tg
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
local
tg
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
return
tg
and
tg
:
IsExists
(
c100206003
.
discfilter
,
1
,
nil
,
tp
)
and
Duel
.
IsChainDisablable
(
ev
)
return
tg
and
tg
:
IsExists
(
c100206003
.
discfilter
,
1
,
nil
,
tp
)
and
Duel
.
IsChainDisablable
(
ev
)
end
end
...
@@ -57,16 +57,16 @@ function c100206003.disop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -57,16 +57,16 @@ function c100206003.disop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
end
end
end
end
function
c100206003
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x1052
)
and
c
:
IsLevelBelow
(
11
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
and
(
c
:
IsLocation
(
LOCATION_DECK
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
or
c
:
IsLocation
(
LOCATION_EXTRA
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
)
end
function
c100206003
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100206003
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsSummonType
(
SUMMON_TYPE_SPECIAL
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
return
c
:
IsSummonType
(
SUMMON_TYPE_SPECIAL
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
c
:
IsPreviousControler
(
tp
)
and
c
:
GetReasonPlayer
()
==
1
-
tp
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
c
:
IsPreviousControler
(
tp
)
and
c
:
GetReasonPlayer
()
==
1
-
tp
end
end
function
c100206003
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x1052
)
and
c
:
IsLevelBelow
(
11
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
and
(
c
:
IsLocation
(
LOCATION_DECK
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
or
c
:
IsLocation
(
LOCATION_EXTRA
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
)
end
function
c100206003
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c100206003
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c100206003
.
spfilter
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c100206003
.
spfilter
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
)
...
...
script/c100206004.lua
View file @
379e9969
...
@@ -43,19 +43,20 @@ function c100206004.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -43,19 +43,20 @@ function c100206004.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c100206004
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100206004
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
c100206004
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
c100206004
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
#
tg
>
0
and
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
>
0
then
if
#
tg
>
0
and
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
>
0
then
Duel
.
ConfirmCards
(
1
-
tp
,
tg
)
Duel
.
ConfirmCards
(
1
-
tp
,
tg
)
end
end
end
end
function
c100206004
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
25955164
,
62340868
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c100206004
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100206004
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsSummonType
(
SUMMON_TYPE_SPECIAL
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
return
c
:
IsSummonType
(
SUMMON_TYPE_SPECIAL
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
c
:
IsPreviousControler
(
tp
)
and
c
:
GetReasonPlayer
()
==
1
-
tp
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
c
:
IsPreviousControler
(
tp
)
and
c
:
GetReasonPlayer
()
==
1
-
tp
end
end
function
c100206004
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
25955164
,
62340868
)
and
c
:
IsFaceup
()
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c100206004
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c100206004
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c100206004
.
spfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c100206004
.
spfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
end
...
...
script/c100206005.lua
View file @
379e9969
...
@@ -49,14 +49,14 @@ end
...
@@ -49,14 +49,14 @@ end
function
c100206005
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100206005
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateEffect
(
ev
)
Duel
.
NegateEffect
(
ev
)
end
end
function
c100206005
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
62340868
,
98434877
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c100206005
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100206005
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsSummonType
(
SUMMON_TYPE_SPECIAL
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
return
c
:
IsSummonType
(
SUMMON_TYPE_SPECIAL
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
c
:
IsPreviousControler
(
tp
)
and
c
:
GetReasonPlayer
()
==
1
-
tp
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
c
:
IsPreviousControler
(
tp
)
and
c
:
GetReasonPlayer
()
==
1
-
tp
end
end
function
c100206005
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
62340868
,
98434877
)
and
c
:
IsFaceup
()
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c100206005
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c100206005
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c100206005
.
spfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c100206005
.
spfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
end
...
...
script/c100206006.lua
View file @
379e9969
...
@@ -19,7 +19,9 @@ function c100206006.initial_effect(c)
...
@@ -19,7 +19,9 @@ function c100206006.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetHintTiming
(
TIMING_DAMAGE_STEP
)
e1
:
SetCountLimit
(
2
,
100206006
)
e1
:
SetCountLimit
(
2
,
100206006
)
e1
:
SetCondition
(
aux
.
dscon
)
e1
:
SetTarget
(
c100206006
.
atktg
)
e1
:
SetTarget
(
c100206006
.
atktg
)
e1
:
SetOperation
(
c100206006
.
atkop
)
e1
:
SetOperation
(
c100206006
.
atkop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
@@ -56,14 +58,14 @@ function c100206006.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -56,14 +58,14 @@ function c100206006.atkop(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
end
end
end
end
function
c100206006
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
25955164
,
98434877
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c100206006
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100206006
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsSummonType
(
SUMMON_TYPE_SPECIAL
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
return
c
:
IsSummonType
(
SUMMON_TYPE_SPECIAL
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
c
:
IsPreviousControler
(
tp
)
and
c
:
GetReasonPlayer
()
==
1
-
tp
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
c
:
IsPreviousControler
(
tp
)
and
c
:
GetReasonPlayer
()
==
1
-
tp
end
end
function
c100206006
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
25955164
,
98434877
)
and
c
:
IsFaceup
()
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c100206006
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c100206006
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c100206006
.
spfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c100206006
.
spfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
end
...
...
script/c100206007.lua
View file @
379e9969
...
@@ -27,10 +27,10 @@ function c100206007.initial_effect(c)
...
@@ -27,10 +27,10 @@ function c100206007.initial_effect(c)
--destroy
--destroy
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
100206007
,
2
))
e4
:
SetDescription
(
aux
.
Stringid
(
100206007
,
2
))
e4
:
SetCategory
(
CATEGORY_DESTROY
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetCode
(
EVENT_PHASE
+
PHASE_BATTLE_START
)
e4
:
SetCode
(
EVENT_PHASE
+
PHASE_BATTLE_START
)
e4
:
SetRange
(
LOCATION_FZONE
)
e4
:
SetRange
(
LOCATION_FZONE
)
e4
:
SetCategory
(
CATEGORY_DESTROY
)
e4
:
SetCountLimit
(
1
)
e4
:
SetCountLimit
(
1
)
e4
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e4
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e4
:
SetCondition
(
c100206007
.
descon
)
e4
:
SetCondition
(
c100206007
.
descon
)
...
...
script/c100206009.lua
View file @
379e9969
...
@@ -4,11 +4,11 @@ function c100206009.initial_effect(c)
...
@@ -4,11 +4,11 @@ function c100206009.initial_effect(c)
aux
.
AddCodeList
(
c
,
25955164
,
62340868
,
98434877
)
aux
.
AddCodeList
(
c
,
25955164
,
62340868
,
98434877
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
100206009
,
0
))
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
TIMING_DAMAGE_STEP
)
e1
:
SetCountLimit
(
1
,
100206009
)
e1
:
SetCountLimit
(
1
,
100206009
)
e1
:
SetCondition
(
c100206009
.
condition
)
e1
:
SetCondition
(
c100206009
.
condition
)
e1
:
SetTarget
(
c100206009
.
target
)
e1
:
SetTarget
(
c100206009
.
target
)
...
@@ -16,7 +16,7 @@ function c100206009.initial_effect(c)
...
@@ -16,7 +16,7 @@ function c100206009.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--to hand
--to hand
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
100206009
,
2
))
e2
:
SetDescription
(
aux
.
Stringid
(
100206009
,
1
))
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetRange
(
LOCATION_GRAVE
)
...
@@ -27,7 +27,7 @@ function c100206009.initial_effect(c)
...
@@ -27,7 +27,7 @@ function c100206009.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c100206009
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100206009
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
aux
.
dscon
()
and
Duel
.
GetLP
(
tp
)
<
Duel
.
GetLP
(
1
-
tp
)
return
Duel
.
GetLP
(
tp
)
<
Duel
.
GetLP
(
1
-
tp
)
end
end
function
c100206009
.
filter
(
c
)
function
c100206009
.
filter
(
c
)
return
c
:
IsOriginalSetCard
(
0x1052
)
and
c
:
IsFaceup
()
return
c
:
IsOriginalSetCard
(
0x1052
)
and
c
:
IsFaceup
()
...
...
script/c100206010.lua
View file @
379e9969
...
@@ -5,7 +5,7 @@ function c100206010.initial_effect(c)
...
@@ -5,7 +5,7 @@ function c100206010.initial_effect(c)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
100206010
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
100206010
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_
REMOVE
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_
DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
100206010
)
e1
:
SetCountLimit
(
1
,
100206010
)
...
@@ -52,6 +52,7 @@ function c100206010.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -52,6 +52,7 @@ function c100206010.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
tg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
tg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
end
end
Duel
.
HintSelection
(
tg
)
Duel
.
Destroy
(
tg
,
REASON_EFFECT
)
Duel
.
Destroy
(
tg
,
REASON_EFFECT
)
end
end
end
end
...
...
script/c101111082.lua
View file @
379e9969
...
@@ -21,15 +21,15 @@ function s.initial_effect(c)
...
@@ -21,15 +21,15 @@ function s.initial_effect(c)
e1
:
SetOperation
(
s
.
spop
)
e1
:
SetOperation
(
s
.
spop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--remove
--remove
local
e
3
=
Effect
.
CreateEffect
(
c
)
local
e
2
=
Effect
.
CreateEffect
(
c
)
e
3
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e
2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e
3
:
SetCategory
(
CATEGORY_REMOVE
)
e
2
:
SetCategory
(
CATEGORY_REMOVE
)
e
3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e
2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e
3
:
SetCode
(
EVENT_BATTLED
)
e
2
:
SetCode
(
EVENT_BATTLED
)
e
3
:
SetCondition
(
s
.
rmcon
)
e
2
:
SetCondition
(
s
.
rmcon
)
e
3
:
SetTarget
(
s
.
rmtg
)
e
2
:
SetTarget
(
s
.
rmtg
)
e
3
:
SetOperation
(
s
.
rmop
)
e
2
:
SetOperation
(
s
.
rmop
)
c
:
RegisterEffect
(
e
3
)
c
:
RegisterEffect
(
e
2
)
end
end
s
.
spchecks
=
aux
.
CreateChecks
(
Card
.
IsAttribute
,{
ATTRIBUTE_LIGHT
,
ATTRIBUTE_LIGHT
,
ATTRIBUTE_DARK
,
ATTRIBUTE_DARK
})
s
.
spchecks
=
aux
.
CreateChecks
(
Card
.
IsAttribute
,{
ATTRIBUTE_LIGHT
,
ATTRIBUTE_LIGHT
,
ATTRIBUTE_DARK
,
ATTRIBUTE_DARK
})
function
s
.
spcostfilter
(
c
)
function
s
.
spcostfilter
(
c
)
...
...
script/c101111083.lua
View file @
379e9969
...
@@ -10,6 +10,7 @@ function s.initial_effect(c)
...
@@ -10,6 +10,7 @@ function s.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetCategory
(
CATEGORY_TOGRAVE
)
e1
:
SetCategory
(
CATEGORY_TOGRAVE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetCondition
(
s
.
condition
)
e1
:
SetCondition
(
s
.
condition
)
...
...
script/c101111084.lua
View file @
379e9969
...
@@ -12,15 +12,15 @@ function s.initial_effect(c)
...
@@ -12,15 +12,15 @@ function s.initial_effect(c)
e1
:
SetOperation
(
s
.
activate
)
e1
:
SetOperation
(
s
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
s
.
tgfilter
(
c
)
function
s
.
tgfilter
(
c
,
e
)
return
c
:
IsFaceup
()
and
c
:
IsLevelAbove
(
0
)
return
c
:
IsFaceup
()
and
c
:
IsLevelAbove
(
0
)
and
c
:
IsCanBeEffectTarget
(
e
)
end
end
function
s
.
gcheck
(
sg
,
tp
)
function
s
.
gcheck
(
sg
,
tp
)
return
sg
:
IsExists
(
Card
.
IsControler
,
1
,
nil
,
tp
)
return
sg
:
IsExists
(
Card
.
IsControler
,
1
,
nil
,
tp
)
end
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chkc
then
return
false
end
local
g
=
Duel
.
GetMatchingGroup
(
s
.
tgfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
tgfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
e
)
if
chk
==
0
then
return
g
:
CheckSubGroup
(
s
.
gcheck
,
2
,
2
,
tp
)
end
if
chk
==
0
then
return
g
:
CheckSubGroup
(
s
.
gcheck
,
2
,
2
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
id
,
0
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
id
,
0
))
local
sg
=
g
:
SelectSubGroup
(
tp
,
s
.
gcheck
,
false
,
2
,
2
,
tp
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
s
.
gcheck
,
false
,
2
,
2
,
tp
)
...
@@ -62,5 +62,5 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -62,5 +62,5 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
s
.
splimit
(
e
,
c
)
function
s
.
splimit
(
e
,
c
)
return
not
c
:
IsRace
(
e
:
GetLabel
())
return
c
:
IsLocation
(
LOCATION_EXTRA
)
and
not
c
:
IsRace
(
e
:
GetLabel
())
end
end
script/c101111085.lua
View file @
379e9969
...
@@ -5,7 +5,7 @@ function s.initial_effect(c)
...
@@ -5,7 +5,7 @@ function s.initial_effect(c)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetCategory
(
CATEGORY_REMOVE
+
CATEGORY_TOHAND
)
e1
:
SetCategory
(
CATEGORY_REMOVE
+
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
id
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCountLimit
(
1
,
id
+
EFFECT_COUNT_CODE_OATH
)
...
...
script/c101111088.lua
View file @
379e9969
...
@@ -62,8 +62,10 @@ end
...
@@ -62,8 +62,10 @@ end
function
s
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
if
#
g
>
0
then
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
end
function
s
.
afilter
(
c
)
function
s
.
afilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x192
)
and
c
:
IsSummonLocation
(
LOCATION_EXTRA
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x192
)
and
c
:
IsSummonLocation
(
LOCATION_EXTRA
)
...
...
script/c101111089.lua
View file @
379e9969
...
@@ -8,7 +8,7 @@ function s.initial_effect(c)
...
@@ -8,7 +8,7 @@ function s.initial_effect(c)
--atk up
--atk up
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_MAIN_END
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_MAIN_END
)
...
@@ -22,7 +22,7 @@ function s.initial_effect(c)
...
@@ -22,7 +22,7 @@ function s.initial_effect(c)
--sp summon
--sp summon
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e2
:
SetCategory
(
CATEGORY_TOEXTRA
)
e2
:
SetCategory
(
CATEGORY_TOEXTRA
+
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
...
@@ -39,7 +39,7 @@ function s.atkfilter(c)
...
@@ -39,7 +39,7 @@ function s.atkfilter(c)
return
c
:
IsFaceup
()
and
c
:
GetBaseAttack
()
>
0
return
c
:
IsFaceup
()
and
c
:
GetBaseAttack
()
>
0
end
end
function
s
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
s
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
s
.
atkfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
s
.
atkfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
s
.
atkfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
s
.
atkfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
s
.
atkfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
s
.
atkfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
...
@@ -49,7 +49,8 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -49,7 +49,8 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
local
atk
=
tc
:
GetBaseAttack
()
local
atk
=
tc
:
GetBaseAttack
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
atk
>
0
then
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
atk
>
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
...
@@ -74,10 +75,10 @@ function s.spfilter(c,e,tp)
...
@@ -74,10 +75,10 @@ function s.spfilter(c,e,tp)
return
c
:
IsCode
(
101111201
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsCode
(
101111201
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
s
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsExtraDeckMonster
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsExtraDeckMonster
()
and
Duel
.
SendtoDeck
(
c
,
nil
,
SEQ_DECKTOP
,
REASON_EFFECT
)
~=
0
and
c
:
IsLocation
(
LOCATION_EXTRA
)
then
and
Duel
.
SendtoDeck
(
c
,
nil
,
SEQ_DECKTOP
,
REASON_EFFECT
)
~=
0
and
c
:
IsLocation
(
LOCATION_EXTRA
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
spfilter
),
tp
,
LOCATION_GRAVE
+
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
spfilter
),
tp
,
LOCATION_GRAVE
+
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
#
g
>
0
then
if
#
g
>
0
then
...
...
script/c101111090.lua
View file @
379e9969
...
@@ -19,8 +19,8 @@ function s.initial_effect(c)
...
@@ -19,8 +19,8 @@ function s.initial_effect(c)
--special summon
--special summon
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e2
:
SetCategory
(
CATEGORY_TOEXTRA
)
e2
:
SetCategory
(
CATEGORY_TOEXTRA
+
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_
O
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_
F
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCountLimit
(
1
)
...
@@ -81,10 +81,10 @@ function s.spfilter(c,e,tp)
...
@@ -81,10 +81,10 @@ function s.spfilter(c,e,tp)
return
c
:
IsCode
(
101111087
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsCode
(
101111087
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
s
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsExtraDeckMonster
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsExtraDeckMonster
()
and
Duel
.
SendtoDeck
(
c
,
nil
,
SEQ_DECKTOP
,
REASON_EFFECT
)
~=
0
and
c
:
IsLocation
(
LOCATION_EXTRA
)
then
and
Duel
.
SendtoDeck
(
c
,
nil
,
SEQ_DECKTOP
,
REASON_EFFECT
)
~=
0
and
c
:
IsLocation
(
LOCATION_EXTRA
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
spfilter
),
tp
,
LOCATION_GRAVE
+
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
spfilter
),
tp
,
LOCATION_GRAVE
+
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
#
g
>
0
then
if
#
g
>
0
then
...
...
script/c101111091.lua
View file @
379e9969
...
@@ -5,7 +5,7 @@ function s.initial_effect(c)
...
@@ -5,7 +5,7 @@ function s.initial_effect(c)
--activate
--activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e1
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
+
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
id
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCountLimit
(
1
,
id
+
EFFECT_COUNT_CODE_OATH
)
...
...
script/c101111092.lua
View file @
379e9969
...
@@ -9,7 +9,6 @@ function s.initial_effect(c)
...
@@ -9,7 +9,6 @@ function s.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetRange
(
LOCATION_SZONE
)
e1
:
SetTarget
(
s
.
target
)
e1
:
SetTarget
(
s
.
target
)
e1
:
SetOperation
(
s
.
activate
)
e1
:
SetOperation
(
s
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
@@ -29,7 +28,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -29,7 +28,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
eg
:
IsExists
(
s
.
dgfilter
,
1
,
nil
,
e
,
tp
)
and
#
sg
>=
3
end
if
chk
==
0
then
return
eg
:
IsExists
(
s
.
dgfilter
,
1
,
nil
,
e
,
tp
)
and
#
sg
>=
3
end
local
dg
=
eg
local
dg
=
eg
if
#
eg
>
1
then
if
#
eg
>
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
DESTROY
)
dg
=
eg
:
FilterSelect
(
tp
,
s
.
dgfilter
,
1
,
1
,
nil
,
e
,
tp
)
dg
=
eg
:
FilterSelect
(
tp
,
s
.
dgfilter
,
1
,
1
,
nil
,
e
,
tp
)
end
end
Duel
.
SetTargetCard
(
dg
)
Duel
.
SetTargetCard
(
dg
)
...
...
script/c101111201.lua
View file @
379e9969
...
@@ -59,7 +59,7 @@ function s.filter(c,e,tp)
...
@@ -59,7 +59,7 @@ function s.filter(c,e,tp)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
s
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
s
.
filter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
s
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingTarget
(
s
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
...
@@ -86,11 +86,12 @@ function s.scon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -86,11 +86,12 @@ function s.scon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
stg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
stg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsSetCard
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
0x192
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsSetCard
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
0x192
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsSynchroSummonable
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
nil
,
g
)
end
if
chk
==
0
then
return
#
g
>
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsSynchroSummonable
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
nil
,
g
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
end
function
s
.
sop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
sop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsSetCard
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
0x192
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsSetCard
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
0x192
)
if
#
g
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sc
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsSynchroSummonable
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
nil
,
g
):
GetFirst
()
local
sc
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsSynchroSummonable
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
nil
,
g
):
GetFirst
()
if
sc
then
Duel
.
SynchroSummon
(
tp
,
sc
,
nil
,
g
)
end
if
sc
then
Duel
.
SynchroSummon
(
tp
,
sc
,
nil
,
g
)
end
...
...
script/c101201064.lua
View file @
379e9969
...
@@ -16,24 +16,11 @@ end
...
@@ -16,24 +16,11 @@ end
function
s
.
costfilter
(
c
)
function
s
.
costfilter
(
c
)
return
c
:
IsLevelAbove
(
0
)
and
c
:
IsFaceupEx
()
and
c
:
IsAbleToGraveAsCost
()
return
c
:
IsLevelAbove
(
0
)
and
c
:
IsFaceupEx
()
and
c
:
IsAbleToGraveAsCost
()
end
end
function
s
.
costgoal
(
g
)
return
g
:
GetSum
(
Card
.
GetLevel
)
==
10
end
function
s
.
gcheck
(
g
)
return
g
:
GetSum
(
Card
.
GetLevel
)
<=
10
end
function
s
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
costfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
costfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
nil
)
if
chk
==
0
then
if
chk
==
0
then
return
g
:
CheckWithSumEqual
(
Card
.
GetLevel
,
10
,
1
,
#
g
)
end
aux
.
GCheckAdditional
=
s
.
gcheck
local
res
=
g
:
CheckSubGroup
(
s
.
costgoal
,
1
,
#
g
)
aux
.
GCheckAdditional
=
nil
return
res
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
aux
.
GCheckAdditional
=
s
.
gcheck
local
sg
=
g
:
SelectWithSumEqual
(
tp
,
Card
.
GetLevel
,
10
,
1
,
#
g
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
s
.
costgoal
,
false
,
1
,
#
g
)
aux
.
GCheckAdditional
=
nil
Duel
.
SendtoGrave
(
sg
,
REASON_COST
)
Duel
.
SendtoGrave
(
sg
,
REASON_COST
)
end
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
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