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
b366a819
Commit
b366a819
authored
Dec 20, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
92df479e
Changes
31
Hide whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
62 additions
and
41 deletions
+62
-41
script/c100236002.lua
script/c100236002.lua
+1
-1
script/c100236009.lua
script/c100236009.lua
+1
-1
script/c100236015.lua
script/c100236015.lua
+6
-3
script/c100236019.lua
script/c100236019.lua
+2
-2
script/c100236027.lua
script/c100236027.lua
+1
-1
script/c100236031.lua
script/c100236031.lua
+1
-0
script/c100236033.lua
script/c100236033.lua
+1
-1
script/c100238001.lua
script/c100238001.lua
+1
-1
script/c100238004.lua
script/c100238004.lua
+1
-1
script/c100238007.lua
script/c100238007.lua
+3
-1
script/c100238008.lua
script/c100238008.lua
+1
-0
script/c100238010.lua
script/c100238010.lua
+3
-2
script/c100238011.lua
script/c100238011.lua
+2
-0
script/c100238014.lua
script/c100238014.lua
+5
-4
script/c100239002.lua
script/c100239002.lua
+1
-0
script/c101008013.lua
script/c101008013.lua
+14
-14
script/c101008016.lua
script/c101008016.lua
+2
-2
script/c101008017.lua
script/c101008017.lua
+1
-0
script/c101008018.lua
script/c101008018.lua
+1
-1
script/c101008019.lua
script/c101008019.lua
+2
-1
script/c101008031.lua
script/c101008031.lua
+1
-0
script/c101008036.lua
script/c101008036.lua
+1
-1
script/c101008045.lua
script/c101008045.lua
+1
-1
script/c101008052.lua
script/c101008052.lua
+1
-1
script/c101008054.lua
script/c101008054.lua
+1
-0
script/c101008056.lua
script/c101008056.lua
+1
-0
script/c101008059.lua
script/c101008059.lua
+1
-0
script/c101008062.lua
script/c101008062.lua
+2
-0
script/c101008069.lua
script/c101008069.lua
+1
-0
script/c101008072.lua
script/c101008072.lua
+1
-1
script/c101008073.lua
script/c101008073.lua
+1
-1
No files found.
script/c100236002.lua
View file @
b366a819
...
...
@@ -43,7 +43,7 @@ function c100236002.discon(e,tp,eg,ep,ev,re,r,rp)
end
function
c100236002
.
discost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
,
nil
)
end
function
c100236002
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
...
...
script/c100236009.lua
View file @
b366a819
...
...
@@ -25,7 +25,7 @@ function c100236009.filter(c,e,tp)
return
c
:
IsSetCard
(
0x8
)
and
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
end
function
c100236009
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c100236009
.
filter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
Is
Controler
(
tp
)
and
chkc
:
Is
Location
(
LOCATION_GRAVE
)
and
c100236009
.
filter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c100236009
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
...
...
script/c100236015.lua
View file @
b366a819
...
...
@@ -31,7 +31,7 @@ end
function
c100236015
.
filter
(
c
,
e
,
tp
,
re
)
return
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsSetCard
(
0xa3
)
and
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
IsReason
(
REASON_COST
)
and
c
==
re
:
GetHandler
()
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsCanBe
EffectTarget
(
e
)
and
c
:
IsCanBe
SpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c100236015
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
...
...
@@ -46,12 +46,15 @@ function c100236015.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
Duel
.
SetTargetCard
(
tg
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
tg
,
1
,
0
,
0
)
Duel
.
SetChainLimit
(
c100236015
.
chlimit
)
end
function
c100236015
.
chlimit
(
e
,
ep
,
tp
)
return
tp
==
ep
end
function
c100236015
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
then
tc
:
RegisterFlagEffect
(
100236015
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
,
e
:
GetHandler
():
GetFieldID
())
end
end
...
...
script/c100236019.lua
View file @
b366a819
...
...
@@ -8,7 +8,7 @@ function c100236019.initial_effect(c)
--spsummon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
100236019
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_
TOHAND
+
CATEGORY_SEARCH
+
CATEGORY_
SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetRange
(
LOCATION_MZONE
)
...
...
@@ -28,7 +28,7 @@ function c100236019.thfilter(c)
return
c
:
IsCode
(
94770493
)
and
c
:
IsAbleToHand
()
end
function
c100236019
.
spfilter
(
c
,
e
,
tp
,
mc
)
return
not
c
:
IsCode
(
100236019
)
and
c
:
IsSetCard
(
0x107f
)
and
mc
:
IsCanBeXyzMaterial
(
c
)
return
not
c
:
IsCode
(
100236019
)
and
c
:
Is
Type
(
TYPE_XYZ
)
and
c
:
Is
SetCard
(
0x107f
)
and
mc
:
IsCanBeXyzMaterial
(
c
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
end
function
c100236019
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
script/c100236027.lua
View file @
b366a819
...
...
@@ -11,8 +11,8 @@ function c100236027.initial_effect(c)
--scale
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
100236027
,
0
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCountLimit
(
1
,
100236027
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTarget
(
c100236027
.
target
)
...
...
script/c100236031.lua
View file @
b366a819
...
...
@@ -17,6 +17,7 @@ function c100236031.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_POSITION
+
CATEGORY_DISABLE
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
,
100236031
)
e1
:
SetCondition
(
c100236031
.
poscon
)
...
...
script/c100236033.lua
View file @
b366a819
...
...
@@ -49,7 +49,7 @@ function c100236033.operation(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterFlagEffect
(
100236033
,
RESET_EVENT
+
0x1220000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
100236033
,
1
))
e3
:
SetCategory
(
CATEGORY_
TOHAND
+
CATEGORY_SEARCH
)
e3
:
SetCategory
(
CATEGORY_
DESTROY
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetCode
(
EVENT_BATTLED
)
e3
:
SetLabelObject
(
tc
)
...
...
script/c100238001.lua
View file @
b366a819
...
...
@@ -9,7 +9,7 @@ function c100238001.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsRace
,
RACE_WARRIOR
))
e1
:
SetValue
(
500
)
...
...
script/c100238004.lua
View file @
b366a819
...
...
@@ -8,7 +8,7 @@ function c100238004.initial_effect(c)
--tohand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
100238004
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
+
CATEGORY_
TOGRAVE
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
+
CATEGORY_
DECKDES
+
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
,
100238004
)
...
...
script/c100238007.lua
View file @
b366a819
...
...
@@ -34,10 +34,12 @@ function c100238007.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
GetAttackTarget
():
CreateEffectRelation
(
e
)
end
function
c100238007
.
opetation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
at
=
Duel
.
GetAttackTarget
()
if
at
:
IsRelateToEffect
(
e
)
then
Duel
.
ChangePosition
(
at
,
POS_FACEUP_ATTACK
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
()
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
...
...
script/c100238008.lua
View file @
b366a819
...
...
@@ -34,6 +34,7 @@ function c100238008.initial_effect(c)
end
function
c100238008
.
tdfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
IsAbleToExtra
()
and
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
())
end
function
c100238008
.
tdtg
(
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
c100238008
.
tdfilter
(
chkc
)
end
...
...
script/c100238010.lua
View file @
b366a819
...
...
@@ -49,9 +49,10 @@ function c100238010.atktg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
end
function
c100238010
.
atkop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
()
)
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
...
...
script/c100238011.lua
View file @
b366a819
...
...
@@ -66,6 +66,8 @@ function c100238011.cttg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
nil
,
1
,
0
,
0x1151
)
end
function
c100238011
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
c100238011
.
ctfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
tc
=
g
:
GetFirst
()
while
tc
do
...
...
script/c100238014.lua
View file @
b366a819
...
...
@@ -8,18 +8,19 @@ function c100238014.initial_effect(c)
--spsummon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
100238014
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_BATTLE_DESTROYED
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
,
100238014
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCode
(
EVENT_BATTLE_DESTROYED
)
e1
:
SetCost
(
c100238014
.
cost
)
e1
:
SetTarget
(
c100238014
.
target
)
e1
:
SetOperation
(
c100238014
.
activate
)
c
:
RegisterEffect
(
e1
)
--recover
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
100238014
,
0
))
e2
:
SetDescription
(
aux
.
Stringid
(
100238014
,
1
))
e2
:
SetCategory
(
CATEGORY_RECOVER
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
...
...
@@ -35,7 +36,7 @@ function c100238014.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c100238014
.
filter
(
c
,
e
,
tp
)
return
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsReason
(
REASON_BATTLE
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
and
c
:
IsCanBe
EffectTarget
(
e
)
and
c
:
IsCanBe
SpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
function
c100238014
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
...
...
script/c100239002.lua
View file @
b366a819
...
...
@@ -15,6 +15,7 @@ function c100239002.initial_effect(c)
local
e2
=
e1
:
Clone
()
e2
:
SetDescription
(
aux
.
Stringid
(
100239002
,
1
))
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCountLimit
(
1
,
100239002
)
e2
:
SetTarget
(
c100239002
.
distg2
)
e2
:
SetOperation
(
c100239002
.
disop2
)
...
...
script/c101008013.lua
View file @
b366a819
...
...
@@ -28,25 +28,25 @@ function c101008013.initial_effect(c)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e3
)
--to hand
local
e
3
=
Effect
.
CreateEffect
(
c
)
e
3
:
SetDescription
(
aux
.
Stringid
(
101008013
,
2
))
e
3
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e
3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e
3
:
SetCode
(
EVENT_TO_GRAVE
)
e
3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e
3
:
SetCountLimit
(
1
,
101008013
+
200
)
e
3
:
SetTarget
(
c101008013
.
thtg
)
e
3
:
SetOperation
(
c101008013
.
thop
)
c
:
RegisterEffect
(
e
3
)
local
e
4
=
Effect
.
CreateEffect
(
c
)
e
4
:
SetDescription
(
aux
.
Stringid
(
101008013
,
2
))
e
4
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e
4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e
4
:
SetCode
(
EVENT_TO_GRAVE
)
e
4
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e
4
:
SetCountLimit
(
1
,
101008013
+
200
)
e
4
:
SetTarget
(
c101008013
.
thtg
)
e
4
:
SetOperation
(
c101008013
.
thop
)
c
:
RegisterEffect
(
e
4
)
end
function
c101008013
.
cfilter
(
c
)
return
not
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x
10
dc
)
function
c101008013
.
cfilter
(
c
,
tp
)
return
not
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0xdc
)
and
c
:
IsAbleToGraveAsCost
()
and
(
c
:
IsLocation
(
LOCATION_HAND
)
or
c
:
IsFaceup
())
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
end
function
c101008013
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c101008013
.
cfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c101008013
.
cfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
(),
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101008013
.
cfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101008013
.
cfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
e
:
GetHandler
(),
tp
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
function
c101008013
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
script/c101008016.lua
View file @
b366a819
...
...
@@ -24,10 +24,10 @@ function c101008016.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c101008016
.
cfilter
(
c
)
return
c
:
IsSetCard
(
0x121
)
and
not
c
:
IsCode
(
101008016
)
return
c
:
Is
Faceup
()
and
c
:
Is
SetCard
(
0x121
)
and
not
c
:
IsCode
(
101008016
)
end
function
c101008016
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c101008016
.
cfilter
,
tp
,
LOCATION_
MZONE
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c101008016
.
cfilter
,
tp
,
LOCATION_
ONFIELD
,
0
,
1
,
nil
)
end
function
c101008016
.
tgfilter
(
c
)
return
c
:
IsRace
(
RACE_ZOMBIE
)
and
c
:
IsAbleToGrave
()
...
...
script/c101008017.lua
View file @
b366a819
...
...
@@ -20,6 +20,7 @@ function c101008017.initial_effect(c)
e2
:
SetCategory
(
CATEGORY_TOGRAVE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCountLimit
(
1
,
101008017
+
100
)
e2
:
SetCondition
(
c101008017
.
descon
)
e2
:
SetTarget
(
c101008017
.
destg
)
...
...
script/c101008018.lua
View file @
b366a819
...
...
@@ -59,7 +59,7 @@ function c101008018.atkfilter(c)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_DRAGON
)
end
function
c101008018
.
atkval
(
e
,
c
)
return
Duel
.
GetMatchingGroupCount
(
c101008018
.
atkfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_
ONFIELD
,
0
,
nil
)
*-
500
return
Duel
.
GetMatchingGroupCount
(
c101008018
.
atkfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_
MZONE
,
0
,
nil
)
*-
500
end
function
c101008018
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_EFFECT
+
REASON_BATTLE
)
~=
0
and
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
...
...
script/c101008019.lua
View file @
b366a819
...
...
@@ -60,7 +60,7 @@ function c101008019.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c101008019
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
end
end
...
...
@@ -91,5 +91,6 @@ function c101008019.thop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101008019
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
:
GetHandler
())
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
script/c101008031.lua
View file @
b366a819
...
...
@@ -16,6 +16,7 @@ function c101008031.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
101008031
,
2
))
e2
:
SetCategory
(
CATEGORY_DRAW
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_BATTLE_DESTROYING
)
e2
:
SetCountLimit
(
1
,
101008015
+
100
)
...
...
script/c101008036.lua
View file @
b366a819
...
...
@@ -52,7 +52,7 @@ function c101008036.get_zone(c,seq)
return
zone
end
function
c101008036
.
spfilter
(
c
,
e
,
tp
,
seq
)
if
not
(
c
:
IsType
(
TYPE_LINK
)
and
c
:
IsRace
(
RACE_CYBERSE
))
then
return
false
end
if
not
(
c
:
IsType
(
TYPE_LINK
)
and
c
:
IsRace
(
RACE_CYBERSE
)
and
c
:
GetLink
()
==
4
)
then
return
false
end
local
zone
=
c101008036
.
get_zone
(
c
,
seq
)
return
zone
~=
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
,
tp
,
zone
)
end
...
...
script/c101008045.lua
View file @
b366a819
...
...
@@ -10,7 +10,7 @@ function c101008045.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
101008045
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCountLimit
(
1
,
101008045
)
e1
:
SetCost
(
c101008045
.
cost
)
...
...
script/c101008052.lua
View file @
b366a819
...
...
@@ -17,7 +17,7 @@ function c101008052.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
101008052
,
0
))
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_D
AMAGE_STEP
+
EFFECT_FLAG_D
ELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetCountLimit
(
1
,
101008052
+
100
)
e2
:
SetCondition
(
c101008052
.
thcon
)
...
...
script/c101008054.lua
View file @
b366a819
...
...
@@ -89,6 +89,7 @@ function c101008054.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetLabelObject
(
tc
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
if
not
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
then
return
end
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
...
...
script/c101008056.lua
View file @
b366a819
...
...
@@ -40,6 +40,7 @@ function c101008056.activate(e,tp,eg,ep,ev,re,r,rp)
if
tc
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
then
local
g2
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
c101008056
.
spfilter2
),
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
,
tc
)
if
#
g2
<=
0
or
not
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
101008056
,
0
))
then
return
end
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tc2
=
g2
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
if
tc2
and
Duel
.
SpecialSummonStep
(
tc2
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
...
...
script/c101008059.lua
View file @
b366a819
...
...
@@ -72,6 +72,7 @@ function c101008059.activate2(e,tp,eg,ep,ev,re,r,rp)
local
g2
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
g1
:
Merge
(
g2
)
Duel
.
SpecialSummon
(
g1
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
fid
=
c
:
GetFieldID
()
local
sc
=
g1
:
GetFirst
()
while
sc
do
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
script/c101008062.lua
View file @
b366a819
...
...
@@ -4,6 +4,7 @@
function
c101008062
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TODECK
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
101008062
+
EFFECT_COUNT_CODE_OATH
)
...
...
@@ -63,6 +64,7 @@ function c101008062.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
function
c101008062
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
...
...
script/c101008069.lua
View file @
b366a819
...
...
@@ -50,6 +50,7 @@ function c101008069.adtg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c101008069
.
adfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
function
c101008069
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
c101008069
.
adfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
tc
=
g
:
GetFirst
()
while
tc
do
...
...
script/c101008072.lua
View file @
b366a819
...
...
@@ -15,7 +15,7 @@ function c101008072.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCountLimit
(
1
,
101008072
)
e2
:
SetCondition
(
c101008072
.
condition
)
e2
:
SetTarget
(
c101008072
.
target
)
e2
:
SetOperation
(
c101008072
.
operation
)
...
...
script/c101008073.lua
View file @
b366a819
...
...
@@ -36,7 +36,7 @@ function c101008073.spcon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
>
0
end
function
c101008073
.
spfilter
(
c
,
e
,
tp
,
code
)
return
c
:
IsSetCard
(
0x109
)
and
not
c
:
IsCode
(
code
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x109
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
code
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c101008073
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
...
...
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