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
33dd8e02
Commit
33dd8e02
authored
Oct 16, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
39063c86
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
119 additions
and
111 deletions
+119
-111
script/c101007001.lua
script/c101007001.lua
+1
-1
script/c101007003.lua
script/c101007003.lua
+2
-2
script/c101007005.lua
script/c101007005.lua
+3
-3
script/c101007020.lua
script/c101007020.lua
+2
-2
script/c101007021.lua
script/c101007021.lua
+7
-6
script/c101007023.lua
script/c101007023.lua
+1
-1
script/c101007030.lua
script/c101007030.lua
+79
-79
script/c101007031.lua
script/c101007031.lua
+1
-1
script/c101007044.lua
script/c101007044.lua
+2
-2
script/c101007045.lua
script/c101007045.lua
+12
-10
script/c101007046.lua
script/c101007046.lua
+1
-1
script/c101007068.lua
script/c101007068.lua
+4
-0
script/c101007070.lua
script/c101007070.lua
+1
-1
script/c101007100.lua
script/c101007100.lua
+3
-2
No files found.
script/c101007001.lua
View file @
33dd8e02
--キャシー・イヴ
L2
--キャシー・イヴ
L2
--Catche Eve L2
--Catche Eve L2
--scripted by Larry126
--scripted by Larry126
function
c101007001
.
initial_effect
(
c
)
function
c101007001
.
initial_effect
(
c
)
...
...
script/c101007003.lua
View file @
33dd8e02
...
@@ -59,9 +59,9 @@ function c101007003.thfilter(c)
...
@@ -59,9 +59,9 @@ function c101007003.thfilter(c)
end
end
function
c101007003
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c101007003
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c101007003
.
thfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c101007003
.
thfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c101007003
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
e
:
GetHandler
()
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c101007003
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c101007003
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
e
:
GetHandler
()
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c101007003
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
end
end
function
c101007003
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101007003
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c101007005.lua
View file @
33dd8e02
...
@@ -55,14 +55,14 @@ function c101007005.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -55,14 +55,14 @@ function c101007005.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c101007005
.
filter
,
tp
,
0
,
LOCATION_SZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c101007005
.
filter
,
tp
,
0
,
LOCATION_SZONE
,
1
,
1
,
nil
)
e
:
SetLabelObject
(
g
:
GetFirst
())
e
:
SetLabelObject
(
g
:
GetFirst
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
1
-
tp
,
LOCATION_SZONE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
1
-
tp
,
LOCATION_SZONE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
DECK
,
lg
,
1
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
EXTRA
,
lg
,
1
,
tp
,
LOCATION_GRAVE
)
end
end
function
c101007005
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101007005
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
sc
=
e
:
GetLabelObject
()
local
sc
=
e
:
GetLabelObject
()
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
lc
=
g
:
GetFirst
()
local
lc
=
g
:
GetFirst
()
if
lc
==
sc
then
lc
=
g
:
GetNext
()
end
if
lc
==
sc
then
lc
=
g
:
GetNext
()
end
if
lc
and
lc
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoDeck
(
lc
,
nil
,
2
,
REASON_EFFECT
)
>
0
and
sc
and
sc
:
IsRelateToEffect
(
e
)
then
if
lc
and
lc
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoDeck
(
lc
,
nil
,
2
,
REASON_EFFECT
)
>
0
and
lc
:
IsLocation
(
LOCATION_EXTRA
)
and
sc
and
sc
:
IsRelateToEffect
(
e
)
then
Duel
.
Destroy
(
sc
,
REASON_EFFECT
)
Duel
.
Destroy
(
sc
,
REASON_EFFECT
)
end
end
end
end
...
@@ -75,7 +75,7 @@ function c101007005.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -75,7 +75,7 @@ function c101007005.spcon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c101007005
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101007005
.
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
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
tp
,
LOCATION_GRAVE
)
end
end
function
c101007005
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101007005
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c101007020.lua
View file @
33dd8e02
...
@@ -5,7 +5,7 @@ function c101007020.initial_effect(c)
...
@@ -5,7 +5,7 @@ function c101007020.initial_effect(c)
--special summon
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
101007020
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
101007020
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_DRAW
+
CATEGORY_TODECK
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
...
@@ -46,7 +46,7 @@ function c101007020.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -46,7 +46,7 @@ function c101007020.spop(e,tp,eg,ep,ev,re,r,rp)
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
local
ct
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsType
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
TYPE_LINK
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsType
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
TYPE_LINK
)
Duel
.
Draw
(
tp
,
ct
+
1
,
REASON_EFFECT
)
if
Duel
.
Draw
(
tp
,
ct
+
1
,
REASON_EFFECT
)
==
0
then
return
end
Duel
.
ShuffleHand
(
tp
)
Duel
.
ShuffleHand
(
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToDeck
,
tp
,
LOCATION_HAND
,
0
,
ct
,
ct
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToDeck
,
tp
,
LOCATION_HAND
,
0
,
ct
,
ct
,
nil
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_EFFECT
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_EFFECT
)
...
...
script/c101007021.lua
View file @
33dd8e02
...
@@ -18,10 +18,11 @@ function c101007021.initial_effect(c)
...
@@ -18,10 +18,11 @@ function c101007021.initial_effect(c)
e2
:
SetTarget
(
c101007021
.
atktg
)
e2
:
SetTarget
(
c101007021
.
atktg
)
e2
:
SetOperation
(
c101007021
.
atkop
)
e2
:
SetOperation
(
c101007021
.
atkop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e
1
:
Clone
()
local
e3
=
e
2
:
Clone
()
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e3
:
SetHintTiming
(
TIMING_DAMAGE_STEP
,
TIMING_DAMAGE_STEP
+
TIMING_END_PHASE
)
e3
:
SetCondition
(
c101007021
.
atkcon2
)
e3
:
SetCondition
(
c101007021
.
atkcon2
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
...
@@ -29,10 +30,10 @@ function c101007021.indval(e,c)
...
@@ -29,10 +30,10 @@ function c101007021.indval(e,c)
return
c
:
IsType
(
TYPE_LINK
)
return
c
:
IsType
(
TYPE_LINK
)
end
end
function
c101007021
.
atkcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101007021
.
atkcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
10100702
1
)
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
9035198
1
)
end
end
function
c101007021
.
atkcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101007021
.
atkcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsPlayerAffectedByEffect
(
tp
,
10100702
1
)
return
(
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE
or
not
Duel
.
IsDamageCalculated
())
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
9035198
1
)
end
end
function
c101007021
.
tgfilter
(
c
)
function
c101007021
.
tgfilter
(
c
)
return
c
:
IsFaceup
()
return
c
:
IsFaceup
()
...
@@ -43,7 +44,7 @@ end
...
@@ -43,7 +44,7 @@ end
function
c101007021
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c101007021
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c101007021
.
tgfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c101007021
.
tgfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c101007021
.
tgfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c101007021
.
tgfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c101007021
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
c101007021
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c101007021
.
tgfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c101007021
.
tgfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
end
end
...
@@ -51,7 +52,7 @@ function c101007021.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,7 +52,7 @@ function c101007021.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
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101007021
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101007021
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
local
gc
=
g
:
GetFirst
()
local
gc
=
g
:
GetFirst
()
if
Duel
.
SendtoGrave
(
gc
,
REASON_EFFECT
)
~=
0
and
gc
:
IsLocation
(
LOCATION_GRAVE
)
if
Duel
.
SendtoGrave
(
gc
,
REASON_EFFECT
)
~=
0
and
gc
:
IsLocation
(
LOCATION_GRAVE
)
...
...
script/c101007023.lua
View file @
33dd8e02
...
@@ -50,7 +50,7 @@ function c101007023.spop1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -50,7 +50,7 @@ function c101007023.spop1(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c101007023
.
spfilter2
(
c
,
e
,
tp
)
function
c101007023
.
spfilter2
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x71
)
and
not
c
:
IsCode
(
101007023
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
)
return
c
:
IsSetCard
(
0x71
)
and
not
c
:
IsCode
(
101007023
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c101007023
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101007023
.
sptg2
(
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
...
...
script/c101007030.lua
View file @
33dd8e02
...
@@ -5,7 +5,7 @@ function c101007030.initial_effect(c)
...
@@ -5,7 +5,7 @@ function c101007030.initial_effect(c)
--banish
--banish
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
101007030
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
101007030
,
0
))
e1
:
SetCategory
(
CATEGORY_
TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetCategory
(
CATEGORY_
REMOVE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetCountLimit
(
1
,
101007030
)
e1
:
SetCountLimit
(
1
,
101007030
)
...
...
script/c101007031.lua
View file @
33dd8e02
...
@@ -30,7 +30,7 @@ function c101007031.cfilter(c)
...
@@ -30,7 +30,7 @@ function c101007031.cfilter(c)
return
d
:
IsRelateToBattle
()
and
d
:
GetSequence
()
<=
5
or
not
d
:
IsRelateToBattle
()
and
d
:
GetPreviousSequence
()
<=
5
return
d
:
IsRelateToBattle
()
and
d
:
GetSequence
()
<=
5
or
not
d
:
IsRelateToBattle
()
and
d
:
GetPreviousSequence
()
<=
5
end
end
function
c101007031
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101007031
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
()
return
eg
:
IsExists
(
c101007031
.
cfilter
,
1
,
nil
)
end
end
function
c101007031
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101007031
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
tc
=
eg
:
Filter
(
c101007031
.
cfilter
,
nil
):
GetFirst
()
local
tc
=
eg
:
Filter
(
c101007031
.
cfilter
,
nil
):
GetFirst
()
...
...
script/c101007044.lua
View file @
33dd8e02
...
@@ -71,12 +71,12 @@ function c101007044.thfilter(c)
...
@@ -71,12 +71,12 @@ function c101007044.thfilter(c)
return
c
:
IsRace
(
RACE_CYBERSE
)
and
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsAbleToHand
()
return
c
:
IsRace
(
RACE_CYBERSE
)
and
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsAbleToHand
()
end
end
function
c101007044
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101007044
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c101007044
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c101007044
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c101007044
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101007044
.
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
,
c101007044
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101007044
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
...
...
script/c101007045.lua
View file @
33dd8e02
...
@@ -37,17 +37,17 @@ end
...
@@ -37,17 +37,17 @@ end
function
c101007045
.
mfilter
(
c
)
function
c101007045
.
mfilter
(
c
)
return
c
:
IsLevelAbove
(
2
)
and
c
:
IsLinkRace
(
RACE_CYBERSE
)
return
c
:
IsLevelAbove
(
2
)
and
c
:
IsLinkRace
(
RACE_CYBERSE
)
end
end
function
c101007045
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
GetFlagEffect
(
101007045
)
==
0
end
c
:
RegisterFlagEffect
(
101007045
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_DAMAGE_CAL
,
0
,
1
)
end
function
c101007045
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101007045
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
local
a
=
Duel
.
GetAttacker
()
local
d
=
Duel
.
GetAttackTarget
()
local
d
=
Duel
.
GetAttackTarget
()
return
a
:
GetControler
()
==
tp
and
a
:
IsRace
(
RACE_CYBERSE
)
return
a
:
GetControler
()
==
tp
and
a
:
IsRace
(
RACE_CYBERSE
)
or
d
and
d
:
GetControler
()
==
tp
and
d
:
IsRace
(
RACE_CYBERSE
)
or
d
and
d
:
GetControler
()
==
tp
and
d
:
IsRace
(
RACE_CYBERSE
)
end
end
function
c101007045
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
GetFlagEffect
(
101007045
)
==
0
end
c
:
RegisterFlagEffect
(
101007045
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_DAMAGE_CAL
,
0
,
1
)
end
function
c101007045
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101007045
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
a
=
Duel
.
GetAttacker
()
local
a
=
Duel
.
GetAttacker
()
...
@@ -78,7 +78,8 @@ function c101007045.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -78,7 +78,8 @@ function c101007045.atkop(e,tp,eg,ep,ev,re,r,rp)
local
ad
=
a
:
GetTextDefense
()
local
ad
=
a
:
GetTextDefense
()
if
a
:
IsImmuneToEffect
(
e
)
then
if
a
:
IsImmuneToEffect
(
e
)
then
aa
=
a
:
GetBaseAttack
()
aa
=
a
:
GetBaseAttack
()
ad
=
a
:
GetBaseDefense
()
end
ad
=
a
:
GetBaseDefense
()
end
if
aa
<
0
then
aa
=
0
end
if
aa
<
0
then
aa
=
0
end
if
ad
<
0
then
ad
=
0
end
if
ad
<
0
then
ad
=
0
end
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
...
@@ -103,7 +104,8 @@ function c101007045.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -103,7 +104,8 @@ function c101007045.atkop(e,tp,eg,ep,ev,re,r,rp)
local
dd
=
d
:
GetTextDefense
()
local
dd
=
d
:
GetTextDefense
()
if
d
:
IsImmuneToEffect
(
e
)
then
if
d
:
IsImmuneToEffect
(
e
)
then
da
=
d
:
GetBaseAttack
()
da
=
d
:
GetBaseAttack
()
dd
=
d
:
GetBaseDefense
()
end
dd
=
d
:
GetBaseDefense
()
end
if
da
<
0
then
da
=
0
end
if
da
<
0
then
da
=
0
end
if
dd
<
0
then
dd
=
0
end
if
dd
<
0
then
dd
=
0
end
local
e6
=
Effect
.
CreateEffect
(
c
)
local
e6
=
Effect
.
CreateEffect
(
c
)
...
@@ -156,12 +158,12 @@ function c101007045.efcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -156,12 +158,12 @@ function c101007045.efcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
)
and
r
==
REASON_LINK
return
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
)
and
r
==
REASON_LINK
end
end
function
c101007045
.
eftg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101007045
.
eftg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
GetReasonCard
():
GetFlagEffect
(
101007045
)
~
=
0
end
if
chk
==
0
then
return
e
:
GetHandler
():
GetReasonCard
():
GetFlagEffect
(
101007045
)
=
=
0
end
end
end
function
c101007045
.
efop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101007045
.
efop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
rc
=
c
:
GetReasonCard
()
local
rc
=
c
:
GetReasonCard
()
if
rc
:
GetFlagEffect
(
101007045
)
=
=
0
then
return
end
if
rc
:
GetFlagEffect
(
101007045
)
~
=
0
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
101007045
,
2
))
e1
:
SetDescription
(
aux
.
Stringid
(
101007045
,
2
))
e1
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
)
e1
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
)
...
...
script/c101007046.lua
View file @
33dd8e02
...
@@ -38,7 +38,7 @@ function c101007046.desop1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -38,7 +38,7 @@ function c101007046.desop1(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c101007046
.
cfilter
(
c
,
g
)
function
c101007046
.
cfilter
(
c
,
g
)
return
g
:
IsContains
(
c
)
and
not
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
return
g
:
IsContains
(
c
)
end
end
function
c101007046
.
descost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101007046
.
descost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
lg
=
e
:
GetHandler
():
GetLinkedGroup
()
local
lg
=
e
:
GetHandler
():
GetLinkedGroup
()
...
...
script/c101007068.lua
View file @
33dd8e02
...
@@ -8,10 +8,14 @@ function c101007068.initial_effect(c)
...
@@ -8,10 +8,14 @@ function c101007068.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCondition
(
c101007068
.
condition
)
e1
:
SetTarget
(
c101007068
.
target
)
e1
:
SetTarget
(
c101007068
.
target
)
e1
:
SetOperation
(
c101007068
.
activate
)
e1
:
SetOperation
(
c101007068
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c101007068
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetLP
(
tp
)
<
Duel
.
GetLP
(
1
-
tp
)
end
function
c101007068
.
filter
(
c
)
function
c101007068
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
GetBaseAttack
()
>
0
return
c
:
IsFaceup
()
and
c
:
GetBaseAttack
()
>
0
end
end
...
...
script/c101007070.lua
View file @
33dd8e02
...
@@ -12,7 +12,7 @@ function c101007070.initial_effect(c)
...
@@ -12,7 +12,7 @@ function c101007070.initial_effect(c)
--counter
--counter
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetCode
(
EVENT_S
PS
UMMON_SUCCESS
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetOperation
(
c101007070
.
ctop
)
e2
:
SetOperation
(
c101007070
.
ctop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
...
...
script/c101007100.lua
View file @
33dd8e02
--
--封狼雷坊
--card name cant be recognized
--Script by mercury233
--Script by mercury233
function
c101007100
.
initial_effect
(
c
)
function
c101007100
.
initial_effect
(
c
)
--Negate
--Negate
...
@@ -9,6 +8,7 @@ function c101007100.initial_effect(c)
...
@@ -9,6 +8,7 @@ function c101007100.initial_effect(c)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
,
101007100
)
e1
:
SetCondition
(
c101007100
.
condition
)
e1
:
SetCondition
(
c101007100
.
condition
)
e1
:
SetCost
(
c101007100
.
cost
)
e1
:
SetCost
(
c101007100
.
cost
)
e1
:
SetTarget
(
c101007100
.
target
)
e1
:
SetTarget
(
c101007100
.
target
)
...
@@ -20,6 +20,7 @@ function c101007100.initial_effect(c)
...
@@ -20,6 +20,7 @@ function c101007100.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetCountLimit
(
1
,
101007200
)
e2
:
SetCondition
(
c101007100
.
spcon
)
e2
:
SetCondition
(
c101007100
.
spcon
)
e2
:
SetTarget
(
c101007100
.
sptg
)
e2
:
SetTarget
(
c101007100
.
sptg
)
e2
:
SetOperation
(
c101007100
.
spop
)
e2
:
SetOperation
(
c101007100
.
spop
)
...
...
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